MyKings / python-masscan

python-masscan is a python library which helps in using masscan port scanner.
https://pypi.org/project/python-masscan/
GNU General Public License v3.0
281 stars 60 forks source link

Threading Feature #9

Closed arbazkiraak closed 5 years ago

arbazkiraak commented 6 years ago

Hello @MyKings ,

How about adding a threading to masscan for faster result ?

MyKings commented 5 years ago

@arbazkiraak

Sorry, there is no plan to support this feature, but you can control the scanning speed by setting the masscan "--rate" parameter. Note that adjusting this parameter will take up a lot of network bandwidth on your server.

>>> import masscan
>>> mas = masscan.PortScanner()
>>> mas.scan('192.168.168.0.1/24', ports='22,80,8080', arguments='--rate=10000')
[2018-09-17 09:12:06,064] [DEBUG] [masscan.py 10 line] Scan parameters: "masscan -oX - 192.168.0.1/24 -p 22,80,8080 --rate=10000"