Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Compromised FBSD/Apache

From: Skip Carter <skip(at)taygeta.com>
Date: Mon Nov 25 2002 - 13:08:36 EST

> Out of curiosity what is the Linux and Solaris equivalents for doing

> > >"fstat" is your friend -- it can tell you which process holds the
> > >listening socket descriptor. On FreeBSD you have to use 'netstat -aAn'
> > >first to find the address of the protocol control block (PCB), and then
> > >grep for that in the output of 'fstat'. For example:
> > >
> > >12:44 [6] $ netstat -aAn | fgrep '*.80'
> > >c49e0a40 tcp4 0 0 *.80 *.*
> > LISTEN

For Linux you can use 'fuser' as an equivalent:

        fuser -n tcp 80
returns a list of processes that have TCP port 80 open.

'lsof' ('list of open files') is also suitable for doing this and is available on practially
any *nix OS.

        lsof -n | grep TCP | grep http

Skip

-- 
 Dr. Everett (Skip) Carter      Phone: 831-641-0645 FAX:  831-641-0647
 Taygeta Scientific Inc.        INTERNET: skip@taygeta.com
 1340 Munras Ave., Suite 314    WWW: 
http://www.taygeta.com
 Monterey, CA. 93940            












----------------------------------------------------------------------------
This list is provided by the SecurityFocus ARIS analyzer service.
For more information on this free incident handling, management 
and tracking system please see: 
http://aris.securityfocus.com
Received on Tue Nov 26 01:17:49 2002
Do you need help?X

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:01:51 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library