Scanning localhost with Nmap

Mega Carder

Guru
BFD MEMBER
LEGEND
ULTIMATE
SELLER
SUPREME
MEMBER
BFD Legacy
Joined
Mar 14, 2025
Messages
1,348
Reaction score
15,591
Deposit
6,350$
Firstly, always make sure to keep your system updated:

Centos:
Code:
yum update

Debian/Ubuntu:
Code:
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 Bottom