tubby wrote:
I have a program written in Python that checks a class B network (65536
hosts) for web servers. It does a simple TCP socket connect to port 80
and times out after a certain periods of time. The program is threaded
and can do all of the hosts in about 15 minutes or so. I'd like
I have a program written in Python that checks a class B network (65536
hosts) for web servers. It does a simple TCP socket connect to port 80
and times out after a certain periods of time. The program is threaded
and can do all of the hosts in about 15 minutes or so. I'd like to make
it so
tubby wrote:
Right now I'm just prototyping and the threaded hosts portion
works very well for my needs. I'd just like to add a threaded
ports check and wanted to know if anyone had done something
similar in Python.
Taken the vast amount of threads you'll need, there will be a big
overhead.
Bjoern Schliessmann wrote:
tubby wrote:
Right now I'm just prototyping and the threaded hosts portion
works very well for my needs. I'd just like to add a threaded
ports check and wanted to know if anyone had done something
similar in Python.
Taken the vast amount of threads you'll need,
tubby wrote:
Have you tried it? Nmap is sequential.
RTFM?
| NMAP(1)Nmap Reference GuideNMAP(1)
| [...]
| TIMING AND PERFORMANCE
| [...] While Nmap utilizes parallelism and many advanced
| algorithms to accelerate these scans, the user has ultimate
|
Bjoern Schliessmann wrote:
tubby wrote:
Have you tried it? Nmap is sequential.
RTFM?
I urge you to actually try it and see for yourself. From my experience,
it sucks... even when only doing 1 port it takes hours regarless of what
the man page implies.
I'll figure it out, thanks, Tubby.
Bjoern Schliessmann wrote:
RTFM?
One last things... here's a *very* small sample netstat output from a
threaded py script:
tcp0 1 192.168.1.100:41066 192.168.17.132:www SYN_SENT
tcp0 1 192.168.1.100:46412 192.168.5.132:www SYN_SENT
tcp0