Skip to main content

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

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

Metadata

Release files for python-masscan 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-masscan 1.0.0
File Size Uploaded Provenance Actions
python-masscan-1.0.0.tar.gz 7.7 kB Without provenance Details for python-masscan-1.0.0.tar.gz

Release files / python-masscan-1.0.0.tar.gz

Download URL python-masscan-1.0.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4e822681de29dd0d4807f8b9b4904f61b69f8f7b0e7c06caf03f6183ea6b4907
BLAKE2b-256 checksum
How to use checksums
001d224c6387034f6d828023640603bc98625f0397f67a71ea9cf0b7afbcb7a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for python-masscan 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page