Skip to main content

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.6|2.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') print mas.scan_result

Result

.. code-block:: json { "masscan": { "scanstats": { "uphosts": "6", "timestr": "2017-03-23 18:09:28", "downhosts": "0", "totalhosts": "6", "elapsed": "2" }, "command_line": "masscan -oX - 172.0.8.78/24 -p 22,80,8080" }, "scan": { "172.0.8.222": { "tcp": { "22": { "state": "open", "reason": "syn-ack", "reason_ttl": "64" }, "80": { "state": "open", "reason": "syn-ack", "reason_ttl": "64" } } }, "172.0.8.205": { "tcp": { "80": { "state": "open", "reason": "syn-ack", "reason_ttl": "128" } } }, "172.0.8.207": { "tcp": { "8080": { "state": "open", "reason": "syn-ack", "reason_ttl": "128" } } }, "172.0.8.206": { "tcp": { "8080": { "state": "open", "reason": "syn-ack", "reason_ttl": "128" } } }, "172.0.8.203": { "tcp": { "22": { "state": "open", "reason": "syn-ack", "reason_ttl": "64" }, "80": { "state": "open", "reason": "syn-ack", "reason_ttl": "64" }, "8080": { "state": "open", "reason": "syn-ack", "reason_ttl": "64" } } }, "172.0.8.202": { "tcp": { "22": { "state": "open", "reason": "syn-ack", "reason_ttl": "64" }, "80": { "state": "open", "reason": "syn-ack", "reason_ttl": "64" }, "8080": { "state": "open", "reason": "syn-ack", "reason_ttl": "64" } } } } }

Contributors

REFERENCE

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

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-0.1.3.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_masscan-0.1.3-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file python-masscan-0.1.3.tar.gz.

File metadata

  • Download URL: python-masscan-0.1.3.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15

File hashes

Hashes for python-masscan-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2037f3839b367f9625ea005a9657ef7eda80ed9f5dbbd680e64f51014c327fcf
MD5 1f157b0475991cabd2b25eb56fbb1581
BLAKE2b-256 84841ebf64158cd996958b3979984b731c675321fbca16b36009c6289914ae06

See more details on using hashes here.

File details

Details for the file python_masscan-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: python_masscan-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15

File hashes

Hashes for python_masscan-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1de2d5da1f6b21b9be6fc98e9fe9093df2a8018af50464c7cbbb610bc86e3abc
MD5 c5886c428994c85fbd00e1e77af6ec94
BLAKE2b-256 3edbca12b56c2a7b1113d208e85b92f7206423dc6e2fc571ee18ddbe18307b54

See more details on using hashes here.

Supported by

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