No project description provided
Project description
python-masscan
python-masscan is a python library which helps in using masscan port scanner.
.. image:: https://badge.fury.io/py/python-masscan.svg :target: https://badge.fury.io/py/python-masscan
.. image:: https://img.shields.io/badge/python-2.7|3.7-brightgreen.svg :target: https://www.python.org/
.. image:: https://img.shields.io/github/issues/MyKings/python-masscan.svg
:alt: GitHub issues
:target: https://github.com/MyKings/python-masscan/issues
.. image:: https://img.shields.io/github/forks/MyKings/python-masscan.svg :alt: GitHub forks :target: https://github.com/MyKings/python-masscan/network
.. image:: https://img.shields.io/github/stars/MyKings/python-masscan.svg :alt: GitHub stars :target: https://github.com/MyKings/python-masscan/stargazers
.. image:: https://img.shields.io/github/license/MyKings/python-masscan.svg :alt: GitHub license :target: https://github.com/MyKings/python-masscan/blob/master/LICENSE
INSTALL
.. code-block:: bash
$ pip install python-masscan
USAGE
.. code-block:: python
import masscan
mas = masscan.PortScanner() mas.scan('172.0.8.78/24', ports='22,80,8080', arguments='--max-rate 1000') print(mas.scan_result)
Result
.. code-block:: json
{
"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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.