Skip to main content

Python NMAP library enabling you to start async nmap tasks, parse and compare/diff scan results

Project description

Code status

Build Status

Use cases

libnmap is a python library enabling python developpers to manipulate nmap process and data.

libnmap is what you were looking for if you need to implement the following:

  • automate or schedule nmap scans on a regular basis

  • manipulate nmap scans results to do reporting

  • compare and diff nmap scans to generate graphs

  • batch process scan reports

The above uses cases will be easy to implement with the help of the libnmap modules.

libnmap modules

The lib currently offers the following modules:

  • process: enables you to launch nmap scans

  • parse: enables you to parse nmap reports or scan results (only XML so far) from a file, a string,…

  • report: enables you to manipulate a parsed scan result and de/serialize scan results in a json format

  • diff: enables you to see what changed between two scans

  • common: contains basic nmap objects like NmapHost and NmapService. It is to note that each object can be “diff()ed” with another similar object.

  • plugins: enables you to support datastores for your scan results directly in the “NmapReport” object. from report module:

  • mongodb: insert/get/getAll/delete

  • sqlalchemy: insert/get/getAll/delete

  • aws s3: insert/get/getAll/delete

  • csv: todo (easy to implement)

  • elastic search: todo

Documentation

All the documentation is available on read the docs. This documentation contains small code samples that you directly reuse.

Dependencies

libnmap has by default no dependencies.

The only additional python modules you’ll have to install depends if you wish to use libnmap to store reports on an exotic data store via libnmap’s independents plugins.

Below the list of optional dependencies:

Install

You can install libnmap via pip:

pip install libnmap

or via git:

$ git clone https://github.com/savon-noir/python-libnmap.git
$ cd python-libnmap
$ python setup.py install

Examples

Some codes samples are available in the examples directory or in the documentation.

Contributors

Mike @bmx0r Boutillier for S3 and SQL-Alechemy plugins and for the constructive critics. Thanks!

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-libnmap-0.5.1.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

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

python-libnmap-0.5.1.linux-x86_64.exe (97.4 kB view details)

Uploaded Source

File details

Details for the file python-libnmap-0.5.1.tar.gz.

File metadata

File hashes

Hashes for python-libnmap-0.5.1.tar.gz
Algorithm Hash digest
SHA256 3d93988b4e2f124ae8c4120f48d69b7801380c46264de2d9ccd2c3dbd3b34138
MD5 b71db2eb972c2386c22f4c9e3109f966
BLAKE2b-256 52ca2b92224bc455366a9933f3d67720736498ca38ed7fd7e67732af28e081f7

See more details on using hashes here.

File details

Details for the file python-libnmap-0.5.1.linux-x86_64.exe.

File metadata

File hashes

Hashes for python-libnmap-0.5.1.linux-x86_64.exe
Algorithm Hash digest
SHA256 ab77d199727c001b615e99e11efaeaff898719b655f2d6927705590bfbc784ca
MD5 42d47ab9214bdeeb684fb3ace2033327
BLAKE2b-256 160d0faae7569dc9c276dfad3b00bfee4b7959a7fd9cefd923d0fed9eb8553f6

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