- 使用
MultProcessing + Gevent
加速扫描
$ python main.py --help
_____ _____ _____ __ __ __ __ _____ __ _ _ _____ _____ _____ _____
| _ \ | _ \ / _ \ \ \ / / \ \ / / / ___/ | \ | | | | | ___| | ___| | ____| | _ \
| |_| | | |_| | | | | | \ \/ / \ \/ / | |___ | \| | | | | |__ | |__ | |__ | |_| |
| ___/ | _ / | | | | } { \ / \___ \ | |\ | | | | __| | __| | __| | _ /
| | | | \ \ | |_| | / /\ \ / / ___| | | | \ | | | | | | | | |___ | | \ \
|_| |_| \_\ \_____/ /_/ \_\ /_/ /_____/ |_| \_| |_| |_| |_| |_____| |_| \_\
usage: main.py [-h] [--start_ip [START_IP]] [--end_ip [END_IP]]
[--process_num [PROCESS_NUM]] [--thread_num [THREAD_NUM]]
optional arguments:
-h, --help show this help message and exit
--start_ip [START_IP]
--end_ip [END_IP]
--process_num [PROCESS_NUM] according to your num of processors
--thread_num [THREAD_NUM]
$: ~/ipsnifer$ python main.py --start_ip=111.11.184.51 --end_ip=111.11.185.51 \
--process_num=4 --thread_num=400
good http://111.11.184.51:80
good http://111.11.184.51:81
good http://111.11.184.51:8080
good http://111.11.184.51:9999