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

UDP ports ignored during scan #55

Open secure-xxx opened 1 year ago

secure-xxx commented 1 year ago

Hello, i run the command, but only TCP ports are scanning

host="192.168.0.1" mas = masscan.PortScanner() mas.scan(f'{host}', 'ports=U:1-65535,T:1-65535', 'arguments=-sS --max-rate 1000')

output: {'command_line': 'masscan -oJ - 192.168.0.1 -p U:1-65535,T:1-65535 -sS --max-rate 1000', 'scan': {'192.168.0.1': [{'port': 443, 'proto': 'tcp', 'status': 'open', 'reason': 'syn-ack', 'ttl': 59}, {'port': 53, 'proto': 'tcp', 'status': 'open', 'reason': 'syn-ack', 'ttl': 62}, {'port': 80, 'proto': 'tcp', 'status': 'open', 'reason': 'syn-ack', 'ttl': 53}]}}

No UDP ports were found, but they are present