Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adds support for sips uri (with explicit port number) when converting…

… input from sipdump
  • Loading branch information...
commit 41d4c6832cb2391da163d9242242b390519b25fe 1 parent cd82a48
Julien Perrot authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 run/sipdump2john.py
View
6 run/sipdump2john.py
@@ -11,7 +11,11 @@ def process_file(filename):
for line in f.readlines():
line = line.rstrip().replace('"', '*').replace(':', '*')
data = line.split('*')
- print "%s-%s:$sip$*%s" % (data[0], data[1], line)
+ # Handle the case when the port number is not explicit
+ # in the uri field, in that case, adds an empty field
+ if len(data) == 13:
+ data.insert(7, '')
+ print "%s-%s:$sip$*%s" % (data[0], data[1], '*'.join(data))
if __name__ == "__main__":
if len(sys.argv) < 2:
Please sign in to comment.
Something went wrong with that request. Please try again.