projectdiscovery / naabu

A fast port scanner written in go with a focus on reliability and simplicity. Designed to be used in combination with other tools for attack surface discovery in bug bounties and pentests
https://projectdiscovery.io
MIT License
4.71k stars 549 forks source link

[bug] privileged scan on macOS doesn't show the result #95

Closed izadgot closed 3 years ago

izadgot commented 4 years ago

Environment macOS Catalina version 10.15.7 go 1.15.2 naabu version v2.0.2

issue When I uses privileged scan (SYN scan) on macOS, naabu does not show the open port of target host. I use Wireshark to monitor packets and found that it work normally (has SYN packet send to the target host and in case that port open, target host response with SYN-ACK packet), but I not sure why naabu does not show opened port in output.

SYN scan

image

CONNECT scan

image
ipanda432 commented 4 years ago

https://superuser.com/questions/887887/different-behavior-sudo-nmap-vs-just-nmap According to this as a privileged user instead of TCP connect, TCP SYN stealth is used. Assuming that this is comman for all scans that run on macos , I think the reason for the results not showing up maybe that naabu syn/connect probe based scanning which cant hanlde TCP syn stealth.