Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/the-c0d3r/pynmap

A serious attempt to implement multi-threading to nmap module, which would result in faster scanning speed. I know that one can write NSE scripts for multi-threaded scanning with it, but I wanted to try it on python.
https://github.com/the-c0d3r/pynmap

multi-threading nmap python scanner

Last synced: about 1 month ago
JSON representation

A serious attempt to implement multi-threading to nmap module, which would result in faster scanning speed. I know that one can write NSE scripts for multi-threaded scanning with it, but I wanted to try it on python.

Awesome Lists containing this project

README

        

# pynmap
A serious(Tried to be) attempt to implement multi-threading to nmap module, which would result in faster scanning speed. I know that one can write NSE scripts for multi-threaded scanning with it, but I wanted to try it on python.

Usage :
- `python pingsweep.py -t 192.168.1.0/24`

### Changelog
- refactored common classes into lib package
- rewritten pingsweep using python's built-in concurrent module, instead of rolling my own worker threads. This reduced the code into barely 50 lines of code.
- updated the code into python3.5 and above, since type annotations are only available from python3.5 and above.

Result
======
When I first created this repo, nmap scanner I was using (can't remember the version) took about 27 seconds to scan 192.168.1.0/24 range, but this program can do that within 5 seconds. But now, things have changed, and new nmap version 7.70 can do the same in 2.3 seconds. But still, this would be a good experiment to try to beat nmap speed. Maybe write a custom scapy packet generator to scan manually?

![](https://i.imgur.com/CRGlEX4.png)

![image of result](http://i.imgur.com/Im87Hj0.png)

![image of result](http://i.imgur.com/WZoEJTL.png)

Requirement
===========
python3.5 and above