How to repair this nmap error when doing scan with sudo?

1.6k views Asked by At

im using nethunter on Termux. Anytime I try to perform -O scan on nmap it gives this error: nmap: netutil.cc:3197: int route_dst_netlink(const sockaddr_storage*, route_nfo*, const char*, const sockaddr_storage*): Assertion `p != NULL' failed.

Aborted

But -sT scans work. Anytime it needs root privilages it doesnt work. Thanks for helping me out Best regards

I tried sudo apt upgrade nmap and it didnt help

1

There are 1 answers

0
Amigo Hacker On

Please include --unprivileged at end of your command, example:

nmap -v -A target.com --unprivileged