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

Broken Output #49

Closed Besix2 closed 1 year ago

Besix2 commented 1 year ago

When I use the example script it only returns the cli command.

{"command_line": "masscan -oJ - 172.0.8.78/24 -p 22,80,8080 --max-rate 1000", "scan": {}}

Its not even starting scanning. It just skips the scanning process.

Blotz commented 1 year ago

It appears you are running the example code off the README.md

This appears to be running correctly. The issue is that 127.x.x.x is a reserved ip range and unless you have set up something to run on it, there wont be any ip addresses on that network.

In otherwords, because 127.x.x.x is a reserved ip range, there will not be any available ip addresses to scan. This is why the "scan": {} section is empty.

Try changing the target ip range to something more likely to run something such as 192.168.0.1/24 or 192.168.0.1/24 or 1.1.1.1. hope this helps!

Besix2 commented 1 year ago

I already tried it with 0.0.0.0-255.255.255.255 and the normal mass an returned values but the not the script.

Besix2 commented 1 year ago

Turns out I need sudo else masscan wont return anything.