In 37 port_scanner Scanner 192 168 timeout In 38 time scan xrange 6553

1
2
3
4
5
6
7
8
9
In [37]: s=port_scanner.Scanner('192.168.1.3',timeout=1)
In [38]: %time r=s.scan(*xrange(1,65536))
CPU times: user 16.52 s, sys: 9.18 s, total: 25.70 s
Wall time: 28.37 s
In [40]: %time r=s.slow_scan(*xrange(1,65536))
CPU times: user 148.46 s, sys: 9.31 s, total: 157.76 s
Wall time: 179.89 s