Security Consulting
  Unix Administration     Firewall     Intrusion Detection     Network Security     Hacking     MORE     HOME    

Ports

  • A lot of times you want to know what program is listening on a certain port. Do the following:
      netstat -a
    1. lsof -i proto:port,port e.g. lsof -i tcp:25,21
      lsof -p processnumber open files of a certain process.
      lsof -r repeats the command in an endless loop
      fuser -n proto port e.g. fuser -n tcp 21
  • Check your running RPC-services:
      rpcinfo -p
    1. ifconfig -au shows all UP interfaces



    CopyLeft (l) 2003 by Raffael Marty