Skip to content

Repository files navigation

python-masscan

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

GitHub issuesGitHub forksGitHub starsGitHub license

INSTALL

$ pip install python-masscan

USAGE

importmasscanmas=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.

Topics

Resources

Stars

284 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages