Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

listen all local open ports

#With nmap:
nmap -p- "0.0.0.0"

# check each service:
sudo lsof -i -P | grep LISTEN | grep $PORT_NUMBER
 
PREVIOUS NEXT
Tagged: #listen #local #open #ports
ADD COMMENT
Topic
Name
5+8 =