Skip to main content

No project description provided

Project description


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

.. image:: :target:

.. image::|3.7-brightgreen.svg :target:

.. image::
:alt: GitHub issues :target:

.. image:: :alt: GitHub forks :target:

.. image:: :alt: GitHub stars :target:

.. image:: :alt: GitHub license :target:


.. code-block:: bash

$ pip install python-masscan


.. code-block:: python

import masscan

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


.. code-block:: json

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




Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-masscan-1.0.0.tar.gz (7.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page