Python NMAP library enabling you to start async nmap tasks, parse and compare/diff scan results
libnmap is a python library enabling python developers to manipulate nmap process and data.
libnmap is what you were looking for if you need to implement the following:
The above uses cases will be easy to implement with the help of the libnmap modules.
The lib currently offers the following modules:
- mongodb: insert/get/getAll/delete
- sqlalchemy: insert/get/getAll/delete
- aws s3: insert/get/getAll/delete (not supported for python3 since boto is not supporting py3)
- csv: todo (easy to implement)
- elastic search: todo
All the documentation is available on read the docs. This documentation contains small code samples that you directly reuse.
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:
The libnmap code is tested against the following python interpreters:
You can install libnmap via pip:
pip install python-libnmap
or via git:
$ git clone https://github.com/savon-noir/python-libnmap.git $ cd python-libnmap $ python setup.py install
Some codes samples are available in the examples directory or in the documentation.
Among other example, you notice an sample code pushing nmap scan reports in an ElasticSearch instance and allowing you to create fancy dashboards in Kibana like the screenshot below:
Mike @bmx0r Boutillier for S3 and SQL-Alechemy plugins and for the constructive critics. Thanks!