Python Communicate() With Nmap
My Code: #!/usr/bin/python ## test communicate() # Import the module import subprocess # Ask the user for input host = raw_input('Enter a host to map: ') # Set up the echo c
Solution 1:
From the documentation:
The main effects of
T0
are serializing the scan so only one port is scanned at a time, and waiting five minutes between sending each probe.
The -F
argument means "scan only 100 ports," but at five minutes between probes, that's a minimum of 8 hours and 20 minutes, just for the port scan phase. That's assuming that none of those probes gets dropped and retransmitted, and that the target responds to all of them.
In the vast majority of cases, -T3
(the default) is just fine. With a fast connection and not a ton of targets, -T4
is even reliable. Unless your target is actively detecting and blocking scans, -T2
is the slowest you'll ever need to go.
Post a Comment for "Python Communicate() With Nmap"