Skip to content

Commit

Permalink
Merge pull request #36 from linuxmaniac/master
Browse files Browse the repository at this point in the history
provide python install
  • Loading branch information
Pepelux authored Oct 23, 2023
2 parents a2dfe49 + e882695 commit 475e855
Show file tree
Hide file tree
Showing 51 changed files with 252 additions and 96 deletions.
26 changes: 26 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
"features": {
"ghcr.io/devcontainers-contrib/features/black:2": {},
"ghcr.io/devcontainers-contrib/features/isort:2": {}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# general things to ignore
build/
dist/
*.egg-info/
*.egg
*.py[cod]
__pycache__/
*.so
*~

# due to using tox and pytest
.tox
.cache
File renamed without changes.
4 changes: 2 additions & 2 deletions arpspoof.py → bin/arpspoof
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.arpspoof import ArpSpoof
from lib.params import get_spoof_args
from sippts.arpspoof import ArpSpoof
from sippts.lib.params import get_spoof_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions rtcpbleed.py → bin/rtcpbleed
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.rtcpbleed import RTCPBleed
from lib.params import get_rtcpbleed_args
from sippts.rtcpbleed import RTCPBleed
from sippts.lib.params import get_rtcpbleed_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions rtpbleed.py → bin/rtpbleed
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.rtpbleed import RTPBleed
from lib.params import get_rtpbleed_args
from sippts.rtpbleed import RTPBleed
from sippts.lib.params import get_rtpbleed_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions rtpbleedflood.py → bin/rtpbleedflood
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.rtpbleedflood import RTPBleedFlood
from lib.params import get_rtcbleed_flood_args
from sippts.rtpbleedflood import RTPBleedFlood
from sippts.lib.params import get_rtcbleed_flood_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions rtpbleedinject.py → bin/rtpbleedinject
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.rtpbleedinject import RTPBleedInject
from lib.params import get_rtcbleed_inject_args
from sippts.rtpbleedinject import RTPBleedInject
from sippts.lib.params import get_rtcbleed_inject_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions sipcrack.py → bin/sipcrack
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.sipcrack import SipDigestCrack
from lib.params import get_sipcrack_args
from sippts.sipcrack import SipDigestCrack
from sippts.lib.params import get_sipcrack_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions sipdigestleak.py → bin/sipdigestleak
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
__email__ = "[email protected]"

from sys import setdlopenflags
from modules.sipdigestleak import SipDigestLeak
from lib.params import get_sipdigestleak_args
from sippts.sipdigestleak import SipDigestLeak
from sippts.lib.params import get_sipdigestleak_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions sipdump.py → bin/sipdump
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.sipdump import SipDump
from lib.params import get_sipdump_args
from sippts.sipdump import SipDump
from sippts.lib.params import get_sipdump_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions sipenumerate.py → bin/sipenumerate
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.sipenumerate import SipEnumerate
from lib.params import get_sipenumerate_args
from sippts.sipenumerate import SipEnumerate
from sippts.lib.params import get_sipenumerate_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions sipexten.py → bin/sipexten
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.sipexten import SipExten
from lib.params import get_sipexten_args
from sippts.sipexten import SipExten
from sippts.lib.params import get_sipexten_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions sipflood.py → bin/sipflood
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.sipflood import SipFlood
from lib.params import get_sipflood_args
from sippts.sipflood import SipFlood
from sippts.lib.params import get_sipflood_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions sipfuzzer.py → bin/sipfuzzer
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from lib.params import get_sipfuzzer_args
from modules.sipfuzzer import SipFuzzer
from sippts.lib.params import get_sipfuzzer_args
from sippts.sipfuzzer import SipFuzzer


def main():
Expand Down
4 changes: 2 additions & 2 deletions sipinvite.py → bin/sipinvite
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.sipinvite import SipInvite
from lib.params import get_sipinvite_args
from sippts.sipinvite import SipInvite
from sippts.lib.params import get_sipinvite_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions sipping.py → bin/sipping
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.sipping import SipPing
from lib.params import get_sipping_args
from sippts.sipping import SipPing
from sippts.lib.params import get_sipping_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions siprcrack.py → bin/siprcrack
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.siprcrack import SipRemoteCrack
from lib.params import get_sipremotecrack_args
from sippts.siprcrack import SipRemoteCrack
from sippts.lib.params import get_sipremotecrack_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions sipscan.py → bin/sipscan
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.sipscan import SipScan
from lib.params import get_sipscan_args
from sippts.sipscan import SipScan
from sippts.lib.params import get_sipscan_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions sipsend.py → bin/sipsend
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.sipsend import SipSend
from lib.params import get_sipsend_args
from sippts.sipsend import SipSend
from sippts.lib.params import get_sipsend_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions sipsniff.py → bin/sipsniff
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.sipsniff import SipSniff
from lib.params import get_sniff_args
from sippts.sipsniff import SipSniff
from sippts.lib.params import get_sniff_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions siptshark.py → bin/siptshark
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.siptshark import SipShark
from lib.params import get_tshark_args
from sippts.siptshark import SipShark
from sippts.lib.params import get_tshark_args


def main():
Expand Down
4 changes: 2 additions & 2 deletions wssend.py → bin/wssend
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from modules.wssend import WsSend
from lib.params import get_wssend_args
from sippts.wssend import WsSend
from sippts.lib.params import get_wssend_args


def main():
Expand Down
88 changes: 88 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
[project]
name = "sippts"
version = "3.4.dev0"
description = "Tools to audit VoIP servers and devices using SIP protocol"
readme = "README.md"
requires-python = ">=3.7"
license = {file = "LICENSE.txt"}
dynamic = ["dependencies"]

authors = [
{name = "Jose Luis Verdeguer", email = "[email protected]" }
]

maintainers = [
{name = "Victor Seva", email = "[email protected]" }
]

# Classifiers help users find your project by categorizing it.
#
# For a list of valid classifiers, see https://pypi.org/classifiers/
# classifiers = [ # Optional
# # How mature is this project? Common values are
# # 3 - Alpha
# # 4 - Beta
# # 5 - Production/Stable
# "Development Status :: 3 - Alpha",
#
# # Indicate who your project is intended for
# "Intended Audience :: Developers",
# "Topic :: Software Development :: Build Tools",
#
# # Pick your license as you wish
# "License :: OSI Approved :: MIT License",
#
# # Specify the Python versions you support here. In particular, ensure
# # that you indicate you support Python 3. These classifiers are *not*
# # checked by "pip install". See instead "python_requires" below.
# "Programming Language :: Python :: 3",
# "Programming Language :: Python :: 3.7",
# "Programming Language :: Python :: 3.8",
# "Programming Language :: Python :: 3.9",
# "Programming Language :: Python :: 3.10",
# "Programming Language :: Python :: 3.11",
# "Programming Language :: Python :: 3 :: Only",
# ]

# List additional groups of dependencies here (e.g. development
# dependencies). Users will be able to install these using the "extras"
# syntax, for example:
#
# $ pip install sampleproject[dev]
#
# Similar to `dependencies` above, these must be valid existing
# projects.
#[project.optional-dependencies] # Optional
#dev = ["check-manifest"]
#test = ["coverage"]

# List URLs that are relevant to your project
#
# This field corresponds to the "Project-URL" and "Home-Page" metadata fields:
# https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use
# https://packaging.python.org/specifications/core-metadata/#home-page-optional
#
# Examples listed include a pattern for specifying where the package tracks
# issues, where the source is hosted, where to say thanks to the package
# maintainers, and where to support the project financially. The key is
# what's used to render the link text on PyPI.
[project.urls] # Optional
"Homepage" = "https://github.com/Pepelux/sippts"
"Bug Reports" = "https://github.com/Pepelux/sippts/issues"

# This is configuration specific to the `setuptools` build backend.
# If you are using a different build backend, you will need to change this.
[tool.setuptools]
# If there are data files included in your packages that need to be
# installed, specify them here.
#package-data = {"sample" = ["*.dat"]}

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"] }

[build-system]
# These are the assumed default build requirements from pip:
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
requires = ["setuptools>=43.0.0", "wheel"]
build-backend = "setuptools.build_meta"

29 changes: 29 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"""Shim setup file to allow for editable install."""

from setuptools import setup

scripts=[
"bin/arpspoof",
"bin/rtcpbleed",
"bin/rtpbleed",
"bin/rtpbleedflood",
"bin/rtpbleedinject",
"bin/sipcrack",
"bin/sipdigestleak",
"bin/sipdump",
"bin/sipenumerate",
"bin/sipexten",
"bin/sipflood",
"bin/sipfuzzer",
"bin/sipinvite",
"bin/sipping",
"bin/siprcrack",
"bin/sipscan",
"bin/sipsend",
"bin/sipsniff",
"bin/siptshark",
"bin/wssend",
]

if __name__ == "__main__":
setup(scripts=scripts)
6 changes: 3 additions & 3 deletions modules/arpspoof.py → src/sippts/arpspoof.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
import platform
import socket
from IPy import IP
from lib.functions import get_machine_default_ip, ip2long, get_default_gateway_linux, get_default_gateway_mac, enable_ip_route, disable_ip_route, ip2long, long2ip
from lib.color import Color
from lib.logos import Logo
from .lib.functions import get_machine_default_ip, ip2long, get_default_gateway_linux, get_default_gateway_mac, enable_ip_route, disable_ip_route, ip2long, long2ip
from .lib.color import Color
from .lib.logos import Logo


class ArpSpoof:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 475e855

Please sign in to comment.