Skip to content

MyKings/python-masscan

Repository files navigation

python-masscan

python-masscan is a python library which helps in using masscan port scanner.

GitHub issues GitHub forks GitHub stars GitHub license

INSTALL

$ pip install python-masscan

USAGE

import masscan


 mas = masscan.PortScanner()
 mas.scan('192.168.1.1', ports='22,1900', arguments='--max-rate 1000')
 print(mas.scan_result)

Result

{
"command_line": "masscan -oJ - 192.168.1.1 -p 80,1900",
"scan": {
    "192.168.1.1": [
        {
            "status": "open",
            "reason": "syn-ack",
            "ttl": 64,
            "port": 1900,
            "proto": "tcp"
        },
        {
            "status": "open",
            "reason": "syn-ack",
            "ttl": 64,
            "port": 80,
            "proto": "tcp"
        }
    ]
}

}

Contributors

REFERENCE

https://bitbucket.org/xael/python-nmap/