Security Basics mailing list archives

Re: see which programs are opening ports


From: Casey Mees <casey.mees () gmail com>
Date: Tue, 08 Mar 2005 10:05:51 -0800

I use lsof in most instances.

/usr/bin/lsof -i:[port number] (i.e. /usr/bin/lsof -i:80)

I am sure there are other options that may yield more information, use
the man page for more information.

Casey


On Tue, 2005-03-08 at 13:27 +0200, Tahis Vera wrote:
Hi all,
I'm using Linux Debian.  I ran nmap on my machine and saw some strange
ports opened.
How can i check which programs are opening which ports, in order to
kill some of them (with ps -aux or top i couldn't see the ports
programs are using)?

thanks

-- 
Casey Mees <casey () quickquote com>


Current thread: