Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Commit

Permalink
added smb discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
utkusen committed Apr 29, 2017
1 parent 0dd34f7 commit a44caaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions leviathan.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
'ssh': 'ssh',
'ftp': 'ftp',
'telnet': 'telnet',
'smb': 'smb',
'rdp': 'rdp',
'mysql': 'mysql',
}
Expand Down Expand Up @@ -192,7 +193,7 @@ def shodan_auto_query():
print """
Enter Protocol
(Examples:ssh, ftp, telnet, rdp, mysql):
(Examples:ssh, ftp, telnet, smb, rdp, mysql):
"""
protocol = raw_input(">>")
try:
Expand Down Expand Up @@ -336,7 +337,7 @@ def masscan():
print """
Enter Protocol
(Examples:ssh, ftp, telnet, rdp, mysql):
(Examples:ssh, ftp, telnet, smb, rdp, mysql):
"""
protocol = raw_input(">>")
res = mass_scan(ip_range, protocol)
Expand Down
4 changes: 2 additions & 2 deletions lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ def id_generator():
def get_protocol_by_service(protocol, service):
return {
'censys': {'ftp': '"21/ftp"', 'ssh': '"22/ssh"', 'telnet': '"23/telnet"'}.get(protocol, False),
'massscan': {'ftp': '-p21', 'ssh': '-p22', 'telnet': '-p23', 'rdp': '-p3389',
'massscan': {'ftp': '-p21', 'ssh': '-p22', 'telnet': '-p23', 'smb': '-p445' , 'rdp': '-p3389',
'mysql': '-p3306'}.get(protocol, False)
}.get(service,
{'ftp': '21', 'ssh': '22', 'telnet': '23', 'rdp': '3389',
{'ftp': '21', 'ssh': '22', 'telnet': '23', 'smb': '445' , 'rdp': '3389',
'mysql': '3306'}.get(protocol, False))


Expand Down

0 comments on commit a44caaa

Please sign in to comment.