[NTLUG:Discuss] Identifying port use in Linux

Cameron hrothgar at endor.hsutx.edu
Wed Aug 29 18:00:40 CDT 2001


* seth at springboardgroup.com [2001.08.29 17:26]:
: At 04:46 PM 8/29/01 -0500, you wrote:
: >
: >         I scanned my linux box with a windows program called Netranger, and
: >it said under Trojans that my port 6000 (X-11-XWindows System or The Thing
: >Trojan) and port 1024 says Netspy Trojan. How can I identify what ports are
: >being used in linux, and what is using them? Thanks
: 
: my favorite is: netstat -an |grep LISTEN
: you can then use the fuser command to identify what process is related to
: the socket.
: 
: Seth

If you have the procinfo package installed, you can also use the
`socklist` script to show you a lot of the same info, but in a
different way.  It does the fuser stuff for you.
-- 
cameron
[ Smoking cures weight problems... eventually. ]



More information about the Discuss mailing list