Tuesday, January 03, 2012

Linux, finding out the hidden process that is using the port

Follow this link, http://tldp.org/HOWTO/Security-Quickstart-HOWTO/appendix.html

netstat -tapn

Active Internet connections (servers and established)

Local Address Foreign Address State PID/Program name
*:printer *:* LISTEN 988/inetd
bigcat:8000 *:* LISTEN 1064/junkbuster
*:time *:* LISTEN 988/inetd
*:x11 *:* LISTEN 1462/X
*:http *:* LISTEN 1078/httpd
bigcat:domain *:* LISTEN 956/named
bigcat:domain *:* LISTEN 956/named
*:ssh *:* LISTEN 972/sshd
*:631 *:* LISTEN 1315/cupsd
*:smtp *:* LISTEN 1051/master



which will be able to show the process