[lug] netstat?
Scott A. Herod
herod at interact-tv.com
Fri Dec 8 15:30:05 MST 2000
Yes. But some ports from netstat -a are given only numeric
local addresses. For example, the dreaded rpc.statd with its
nice buffer-overflow attack only shows a numeric value. ( To
think that such a Trojan Horse came from someone at Transmeta.
Look at the authors list on the man page. ) In my parania, I
like to see what netstat says, and when I see an unknown numeric
port that my machine is listening to, I'd like to be able to
match it with a process.
Scott
"Trever C. Trader" wrote:
>
> Hey Scott-
>
> try 'netstat -na |grep -i listen'
> if you are unsure what a port is then you can 'grep -i XXX /etc/services'
> where XXX is the port that you are inquiring about.
>
> On Fri, 8 Dec 2000, Scott A. Herod wrote:
>
> > Hello
> >
> > Is there a way to see what process is listening to which port?
> > The netstat manpage suggests that there should be a -p flag but
> > when I try that I get a message about -p being unknown. Alternately,
> > what does /proc/###/fd mean when some of the descriptors are
> > called "socket"?
> >
> > Basically, I want to see what is listening to some of the numeric
> > ports that I see from netstat.
> >
> > Thanks,
> >
> > Scott
> >
More information about the LUG
mailing list