[cfgeeks] Port Allocation
Liston Bias
bias at pobox.com
Mon Mar 12 10:12:07 EST 2007
Thanks... The -F helps.
Also, The version of lsof if was using (from sunfreeware.com) apparently
has bug in it that was causing it to not display port mapping right.
Replacing it with a patched version solved that and it seems to do exactly
what I need.
I use netstat -an a lot to see what is happening, but it is not helping me
to figure out what non-standard services are running. Sure, if I see port
25 then I'm looking for processes with names like qmail, postfix, or
sendmail.
With lsof, I can tell which command started the process that is listening
on port X like websphere on port 9270. I can then check for startup
scripts & versions.
Thanks,
Liston
On Mon, 12 Mar 2007, Kevin Korb wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> The -F option is preventing a full scan.
>
> - --
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> Kevin Korb Phone: (407) 252-6853
> Systems Administrator Internet:
> FutureQuest, Inc. Kevin at FutureQuest.net (work)
> Orlando, Florida kmk at sanitarium.net (personal)
> Web page: http://www.sanitarium.net/
> PGP public key available on web site.
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
>
> On Mon, 12 Mar 2007, Liston Bias wrote:
>
>> Date: Mon, 12 Mar 2007 10:42:19 -0400 (EDT)
>> From: Liston Bias <bias at pobox.com>
>> To: Central Florida Geeks <cfgeeks at mail.cfgeeks.org>
>> Subject: [cfgeeks] Port Allocation
>>
>> Hello,
>>
>> I am trying to automap network services on Sun Solaris server.
>>
>> I'm using the following, but neither seems to provide complete/accurate
>> results for all IP addresses on a systems quickly.
>>
>> Does anyone else have tips/tricks/scripts for doing this?
>>
>>
>> # nmap -A -T4 -F {IP}
>>
>> # lsof -i
>>
>>
>> Thanks,
>> Liston
More information about the cfgeeks
mailing list