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

fix: Copy hosts list to a temporary file to workaround argv lenght limit #52

Open Oreeeee opened 1 year ago

Oreeeee commented 1 year ago

When there are a lot of hosts, there will be an error due to argv size limit. This PR works around this, by copying hosts to a file in /tmp and providing it to masscan using -iL argument. This way the user can provide more hosts into the scanner.