Re: see which programs are opening ports

From: Bryan Allen (bda_at_mirrorshades.net)
Date: 03/08/05

  • Next message: Peter Rodger: "Port open - help"
    Date: Tue, 8 Mar 2005 13:21:51 -0500
    To: Security Basics <security-basics@securityfocus.com>
    
    

    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.
    

  • Next message: Peter Rodger: "Port open - help"