Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos

Security Basics: Re: how to find a port that some programs are using?

Re: how to find a port that some programs are using?

From: Kenneth Kalmer <kenneth.kalmer_at_gmail.com>
Date: Sat, 26 Feb 2005 18:54:59 +0200

On Mon, 21 Feb 2005 18:50:53 +0200 (EET), Panos
<epp719_at_aretousa.epp.teiher.gr> wrote:
> see fuser
> fuser -n tcp 80 gives u the process id of the program running on port 80
> on tcp protocol, here web
> same way for udp. fuser -n udp *port*
> > Hi, I'm really sorry about the newbie question, but there it goes:
> >
> > I have some programs that makes a conection on it server, and I must
> > know which port these programs are using.
> >
> > I'm under linux, if anyone knows some tool or something like this I'd be
> > grateful.

netstat -lp --numeric-ports

> >
> > Thanks

Pleasure

> >
>
>

-- 
Kenneth Kalmer
kenneth.kalmer_at_gmail.com
http://opensourcery.blogspot.com
Received on Mar 01 2005
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]