windows10 subsystem ubuntu uses nmap to scan and appears Couldn't open a raw socket. Error: Permission denied (13)

Permissions issue

nmap 127.0.0.1
Starting Nmap 7.93 ( https://nmap.org ) at 2022-10-30 10:29 CST
Couldn't open a raw socket. Error: Permission denied (13)

Error Couldn't open a raw  socket . Error: Permission denied (13)

solution

First try:

Ubuntu does not have windows permissions, even the root user does not have permissions.
Right-click to open the subsystem with administrator permissions, re-scan, and run again

 Then restart the virtual machine to try

If the above solution does not work

Try to enter in the terminal command line of the virtual machine ubuntu system:

snap connect nmap:network-control

Networking for nmap

 

Then re-do the nmap scan

 successfully resolved

Guess you like

Origin blog.csdn.net/m0_58609505/article/details/127596589