Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 21 days 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.
- Host: GitHub
- URL: https://github.com/the-c0d3r/pynmap
- Owner: the-c0d3r
- License: gpl-3.0
- Created: 2015-01-12T03:36:33.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-10-13T06:04:41.000Z (about 6 years ago)
- Last Synced: 2024-08-05T17:42:23.042Z (4 months ago)
- Topics: multi-threading, nmap, python, scanner
- Language: Python
- Homepage:
- Size: 71.3 KB
- Stars: 29
- Watchers: 6
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - 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 t (Python)
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