From owner-freebsd-questions Thu Aug 23 9:17:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.the-i-pa.com (mail.the-i-pa.com [151.201.71.132]) by hub.freebsd.org (Postfix) with SMTP id 0B7D437B408 for ; Thu, 23 Aug 2001 09:17:10 -0700 (PDT) (envelope-from wmoran@iowna.com) Received: (qmail 64884 invoked from network); 23 Aug 2001 16:30:42 -0000 Received: from unknown (HELO iowna.com) (151.201.71.193) by mail.the-i-pa.com with SMTP; 23 Aug 2001 16:30:42 -0000 Message-ID: <3B852B3A.D946377A@iowna.com> Date: Thu, 23 Aug 2001 12:11:39 -0400 From: Bill Moran X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Luke Boyett , questions@freebsd.org Subject: Re: How to discover what process is listening on a port References: <3B8522F2.A92EE889@iowna.com> <20010823114236.N15752@setel.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG If there's not a legitimate service on the port, is there a trick to making it recogized it (other than editing /etc/services?) For example, one port that's open is 1023 ... netstat won't let me do: netstat -lp 1023 -Bill Luke Boyett wrote: > > > There's a way to do this with the "netstat" command, isn't there? > > I just scanned a computer as a security audit and found some ports > > open that I don't recognize. I want to find out what process on the > > machine has those ports open. > > netstat -lp will do the trick. You can also use lsof statically > compiled on a known safe machine if you think netstat may have been > trojaned. > > -- > Luke Boyett > PGP Key ID = DEC7301B To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message