Security Basics mailing list archives

Re: see which programs are opening ports


From: "Maxime Ducharme" <mducharme () cybergeneration com>
Date: Tue, 8 Mar 2005 15:40:54 -0500

Hello

Some Linux distro have netstat with a "-p"
option which will show PID of the process

netstat -anp

You may also take a look at "lsof" program

HTH

Maxime Ducharme
Programmeur / Spécialiste en sécurité réseau

----- Original Message ----- 
From: "Tahis Vera" <tahis.vera () gmail com>
To: "Security Basics" <security-basics () securityfocus com>
Sent: Tuesday, March 08, 2005 6:27 AM
Subject: see which programs are opening ports


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



Current thread: