Skip to content

chuanjiesun/py_nmap_with_https_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

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'

Releases

No releases published

Packages

No packages published

Languages