Security Basics mailing list archives

Re: see which programs are opening ports


From: Bryan Allen <bda () mirrorshades net>
Date: Tue, 8 Mar 2005 13:21:51 -0500


On Mar 8, 2005, at 6:27 AM, 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)?

man netstat

Or, more than likely what you want:

netstat -p

Also look at lsof.
--

Bryan Allen
bda () mirrorshades net

cyberpunk is dead. long live cyberpunk.


Current thread: