skip to navigation
skip to content

Not Logged In

python-libnmap 0.2.3

('A Python NMAP library enabling you to launch nmap scans', 'parse and compare (diff) scan results')

Latest Version: 0.4.6

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 for instance
  • compare and diff nmap scans to generate graphs for instance
  • 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: only plugin implemented so far, ultra basic, for POC purpose only
  • sqlalchemy: on-going
  • 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:

  • sqlite3
  • pymongo

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!

 
File Type Py Version Uploaded on Size
python-libnmap-0.2.3.tar.gz (md5) Source 2013-06-10 24KB
  • Downloads (All Versions):
  • 107 downloads in the last day
  • 601 downloads in the last week
  • 1917 downloads in the last month