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

on macOS, mas.scan doesn't work. #48

Open StupidRepo opened 1 year ago

StupidRepo commented 1 year ago

When I try running masscan itself on Terminal, it gives me output. In Python3, it doesn't work FIXED: Run python3 as sudo.

MyKings commented 1 year ago

@StupidRepo This is the result of using python 3.10.7 on macOS:

$ python3 -V
Python 3.10.7

$ python3 example.py
masscan version: v1.3.2
masscan command line: masscan -oJ - 10.*.*.* -p T:80,1900
{"command_line": "masscan -oJ - 10.*.*.* -p T:80,1900", "scan": {"10.*.*.*": [{"port": 80, "proto": "tcp", "status": "open", "reason": "syn-ack", "ttl": 62}]}}
Host: 10.*.*.* [{'port': 80, 'proto': 'tcp', 'status': 'open', 'reason': 'syn-ack', 'ttl': 62}]
StupidRepo commented 1 year ago

Without sudo?

Besix2 commented 1 year ago

masscan needs sudo to work so maybe thats the fault