Security

Security Releated Info

To scan the open ports in the system

  nmap -sS -O -F -vvv <ip-address>

List the Listening portn in system

  netstat -an|grep LISTEN

List the ip, port number and process

  lsof -i -nP
  lsof -i :587 
  lsof -i :smtp 
  lsof -i @labrat.remote.net 
  lsof -i TCP:4350 
  lsof -i UDP:4350

Listing open files

  lsof /dirname

Listing open NFS files

   lsof -N

Listing open file from process id

   lsof -p <pid>

More info

  http://www.opensource.apple.com/darwinsource/10.3/lsof-12/lsof/00QUICKSTART