Advertisement
Apathy42

Find ports and ips of servers running from host machine with names

Feb 23rd, 2025
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | Source Code | 0 0
  1. #fIND ports and ips of servers running from host machine with names
  2. sudo netstat -tulpn | grep LISTEN
  3. sudo lsof -i -n -P | grep LISTEN
  4. sudo ss -ltnp
  5. sudo ss -tulpn | grep LISTEN
  6. sudo lsof -i -n -P | grep sshd | grep LISTEN
  7. sudo nmap -sTU -O IP-address-Here
  8.  
  9. #This is for Port 22..
  10. sudo lsof -i:22
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement