I am trying to get familiar with hacking and networking by doing HackTheBox challenges. At starting point Oopsie I am supposed to use command nmap -sS -A 10.10.10.28. However, after running it in Ubuntu 20.04 I got following error: Starting Nmap 7.91 ( https://nmap.org ) at 2021-01-25 20:07 CET Couldn't open a raw socket. Error: Permission denied (13). At https://github.com/microsoft/WSL/issues/2039 I read, that this feature is not implemented in nmap. Is there any way to open a raw socket in my operating system with this tool?
Asked
Active
Viewed 4.9k times
14
Marek Mudron
- 143
2 Answers
42
Did you install nmap using:
sudo snap install nmap
or
sudo apt install nmap
I had this same issue, I installed using snap and was getting the same error as you. If that is the case remove the snap install and use apt:
sudo snap remove nmap
sudo apt install nmap
Run a command with nmap, if you get the error:
bash: /snap/bin/nmap: No such file or directory
use the following command to let go of the cached link:
hash -r
run nmap again, this worked for me.
Giacomo1968
- 58,727
soul
- 436