Scanning localhost with Nmap

Asphyxia

Owner
Administrator
Apr 25, 2015
1,845
2
2,199
327
Firstly, always make sure to keep your system updated:

Centos:
Code:
yum update

Debian/Ubuntu:
Code:
apt update
apt upgrade -y

---

Now install Nmap:

Centos: yum install nmap
Debian/Ubuntu: apt install nmap

---

Now we can Nmap localhost on either system:
Code:
nmap -sU -sT -p0-65535 localhost

You will now have a full TCP/UDP scan of your localhost system. Make sure to pay close attention to these ports now, services running on these ports need to be secured or use a firewall to block access.
 
Top