Skip to content

Latest commit

 

History

History
13 lines (13 loc) · 561 Bytes

README.md

File metadata and controls

13 lines (13 loc) · 561 Bytes

python-nmap_with_https_detect

python-nmap lib is an excellent lib for binding nmap.
but it can't detect protocol https by default, it's not so convenient sometime.
this code add https protocol detection in python-nmap.

How to use?

The usage is similar to original python-nmap lib,just a little different in https detection.

p = scan_result['scan']['127.0.0.1']['tcp']['443']
if p['name'] == 'http' and p['tunnel'] == 'ssl':
    service = 'https'
elif p['name'] == 'ssl' and p['tunnel'] == 'ssl':
    service = 'https'