In 31 port_scanner Scanner 192 168 timeout In 32 time scan xrange 6553

1
2
3
4
5
6
7
8
9
In [31]: s=port_scanner.Scanner('192.168.1.3',timeout=1)
In [32]: %time r=s.scan(*xrange(1,65536))
CPU times: user 17.10 s, sys: 9.90 s, total: 27.00 s
Wall time: 30.27 s
In [34]: %time r=s.slow_scan(*xrange(1,65536))
CPU times: user 150.30 s, sys: 9.95 s, total: 160.25 s
Wall time: 192.15 s