Skip to content

Commit

Permalink
moved sipcrack to sipdigestcrack and sipdump to sippcapdump
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepelux committed Jan 8, 2024
1 parent f04355d commit 8b439b5
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 18 deletions.
6 changes: 3 additions & 3 deletions bin/sipcrack → bin/sipdigestcrack
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ __license__ = "GPL"
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "[email protected]"

from sippts.sipcrack import SipDigestCrack
from sippts.lib.params import get_sipcrack_args
from sippts.sipdigestcrack import SipDigestCrack
from sippts.lib.params import get_sipdigestcrack_args


def main():
# Values
file, verbose, wordlist, bruteforce, charset, max, min, prefix, suffix = get_sipcrack_args()
file, verbose, wordlist, bruteforce, charset, max, min, prefix, suffix = get_sipdigestcrack_args()

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

from sippts.sipdump import SipDump
from sippts.lib.params import get_sipdump_args
from sippts.sippcapdump import SipPCAPDump
from sippts.lib.params import get_sippcapdump_args


def main():
file, ofile = get_sipdump_args()
file, ofile = get_sippcapdump_args()

s = SipDump()
s = SipPCAPDump()
s.file = file
s.ofile = ofile

Expand Down
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ devel:
- added param -header to insert custom headers
- global:
- bug fixes
- Renamed script sipdump to sippcapdump
- Renamed script sipcrack to sipdigestcrack

v3.3 (Nov/2022):
- sipflood:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"bin/rtpbleed",
"bin/rtpbleedflood",
"bin/rtpbleedinject",
"bin/sipcrack",
"bin/sipdigestcrack",
"bin/sipdigestleak",
"bin/sipdump",
"bin/sippcapdump",
"bin/sipenumerate",
"bin/sipexten",
"bin/sipflood",
Expand Down
2 changes: 1 addition & 1 deletion src/sippts/lib/logos.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_logo(self):
▀▄▄▄▄▄▀▄▄▄▀▄▄▄▀▀▀▀▀▄▄▄▄▄▀▄▄▄▀▀▄▄▀▀▄▄▄▄▀▀▄▄▄▀▄▄▄▀▄▄▄▄▄▀▄▄▀▄▄▀▄▄▀▄▄▀▀▄▄▄▀▀▄▄▄▄▄▀
'''

if self.script == 'sipdump':
if self.script == 'sippcapdump':
return '''
██████████████████████████████████████████████
█─▄▄▄▄█▄─▄█▄─▄▄─███▄─▄▄▀█▄─██─▄█▄─▀█▀─▄█▄─▄▄─█
Expand Down
4 changes: 2 additions & 2 deletions src/sippts/lib/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def get_sipinvite_args():
sys.exit(1)


def get_sipcrack_args():
def get_sipdigestcrack_args():
parser = argparse.ArgumentParser(
formatter_class=lambda prog: argparse.RawDescriptionHelpFormatter(
prog, max_help_position=50),
Expand Down Expand Up @@ -657,7 +657,7 @@ def get_sipenumerate_args():
sys.exit(1)


def get_sipdump_args():
def get_sippcapdump_args():
parser = argparse.ArgumentParser(
formatter_class=lambda prog: argparse.RawDescriptionHelpFormatter(
prog, max_help_position=50),
Expand Down
6 changes: 3 additions & 3 deletions src/sippts/sipcrack.py → src/sippts/sipdigestcrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def read_data(self):
word_start = ''

try:
with io.open("sipcrack.res", "r", newline=None, encoding="latin-1") as fd:
with io.open("sipdigestcrack.res", "r", newline=None, encoding="latin-1") as fd:
for pline in fd:
try:
pl = pline.replace('\n', '')
Expand Down Expand Up @@ -200,7 +200,7 @@ def save_file(self, wl, usr, pwd):
print(self.c.WHITE + '\nSaving restore data ...')

try:
with io.open("sipcrack.res", "r", newline=None, encoding="latin-1") as fd:
with io.open("sipdigestcrack.res", "r", newline=None, encoding="latin-1") as fd:
for pline in fd:
try:
pl = pline.replace('\n', '')
Expand Down Expand Up @@ -238,7 +238,7 @@ def save_file(self, wl, usr, pwd):
self.charset, self.prefix, self.suffix, usr, b64pwd)
lines.append(pl)

with open('sipcrack.res', 'w+') as f:
with open('sipdigestcrack.res', 'w+') as f:
for l in lines:
f.write(l+'\n')

Expand Down
6 changes: 3 additions & 3 deletions src/sippts/sipdump.py → src/sippts/sippcapdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
from .lib.logos import Logo


class SipDump:
class SipPCAPDump:
def __init__(self):
self.file = ''
self.ofile = ''

self.c = Color()

def start(self):
tmpfile = 'sipdump.tmp'
tmpfile = 'sippcapdump.tmp'

logo = Logo('sipdump')
logo = Logo('sippcapdump')
logo.print()

print(self.c.BWHITE+'[✓] Input file: %s ...' % self.file)
Expand Down

0 comments on commit 8b439b5

Please sign in to comment.