Skip to content

Commit

Permalink
Move services matchings in importer/Config.py and improve mechanism t…
Browse files Browse the repository at this point in the history
…o get supported service name
  • Loading branch information
koutto committed Jul 23, 2019
1 parent cbce22a commit db9750d
Showing 1 changed file with 0 additions and 68 deletions.
68 changes: 0 additions & 68 deletions lib/core/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,71 +166,3 @@
'telnets',
)


#----------------------------------------------------------------------------------------
# Services

# Service names matching between Nmap and Jok3r
# In particular, unencrypted and encrypted versions of the same protocol are
# differentiated in Nmap (e.g. smtp/smtps, http/https, etc.), but in Jok3r this
# distinction is done by context-specific options
SERVICES_NMAP_TO_JOKER = {
'ajp13' : 'ajp',
'ftp-agent' : 'ftp',
'ftp-proxy' : 'ftp',
'ftps' : 'ftp',
'microsoft-ds' : 'smb',
'netbios-ns' : 'smb',
'ms-sql2000' : 'mssql',
'ms-sql-m' : 'mssql',
'ms-sql-s' : 'mssql',
'ms-wbt-server' : 'rdp',
'rmiregistry' : 'java-rmi',
'http-alt' : 'http',
'http-mgmt' : 'http',
'http-proxy' : 'http',
'http-wmap' : 'http',
'https' : 'http',
'https-alt' : 'http',
'https-wmap' : 'http',
'ssl/http' : 'http',
'ssl/https' : 'http',
'ssl/ssl' : 'http',
'oracle-tns' : 'oracle',
'smtps' : 'smtp',
'telnets' : 'telnets',
}

# Service names matching between Shodan and Jok3r
# In particular, unencrypted and encrypted versions of the same protocol are
# differentiated in Shodan (e.g. smtp/smtps, http/https, etc.), but in Jok3r this
# distinction is done by context-specific options
SERVICES_SHODAN_TO_JOKER = {
'http-simple-new' : 'http',
'https-simple-new': 'http',
'udpxy' : 'http',
'ajp13' : 'ajp',
'dns-udp' : 'dns',
'ftp-agent' : 'ftp',
'ftp-proxy' : 'ftp',
'ftps' : 'ftp',
'microsoft-ds' : 'smb',
'ms-sql2000' : 'mssql',
'ms-sql-m' : 'mssql',
'ms-sql-s' : 'mssql',
'ms-wbt-server' : 'rdp',
'rmiregistry' : 'java-rmi',
'http-alt' : 'http',
'http-mgmt' : 'http',
'http-proxy' : 'http',
'http-wmap' : 'http',
'https' : 'http',
'https-alt' : 'http',
'https-wmap' : 'http',
'http-simple-new' : 'http',
'ssl/http' : 'http',
'oracle-tns' : 'oracle',
'smtps' : 'smtp',
'telnets' : 'telnet',
}

0 comments on commit db9750d

Please sign in to comment.