MyKings / python-masscan

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

Home Page:https://pypi.org/project/python-masscan/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/

About

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

https://pypi.org/project/python-masscan/

License:GNU General Public License v3.0


Languages

Language:Python 100.0%