Security Basics mailing list archives

Re: see which programs are opening ports


From: Sam Evans <wintrmte () gmail com>
Date: Tue, 8 Mar 2005 16:41:58 -0700

You might also try:

netstat -anp

Should display open ports, machines connected to the ports as well as
which application has that port open.

-Sam



On Tue, 8 Mar 2005 18:03:42 -0000, rohithj <rohithj () dsl pipex com> wrote:
You could use 'lsof' ... and pipe it through 'grep' to get the network ports

$ lsof | grep 'IPv.'

----- Original Message -----
From: "Tahis Vera" <tahis.vera () gmail com>
To: "Security Basics" <security-basics () securityfocus com>
Sent: Tuesday, March 08, 2005 11: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: