How to find IP address of a machine on network?

NoOp glgxg at sbcglobal.net
Fri Jan 16 21:44:29 UTC 2009


On 01/16/2009 01:07 PM, Chris Mohler wrote:
> On Sat, Jan 17, 2009 at 2:48 PM, Charles Darwin <DarwinsKernel at gmail.com> wrote:
>>
>> On Jan 16, 2009, at 3:32 PM, Chris Mohler wrote:
>>
>> sudo nmap -sP 10.0.1.*
>>
>> That was nice but still `dns-sd -B _ssh._tcp .` is faster. How do you tell
>> nmap to only look for those that broadcast ssh?
> 
> sudo nmap -p 22 10.0.1.*
> [sudo] password for XXXXXXX:
> 
> Starting Nmap 4.62 ( http://nmap.org ) at 2009-01-16 15:05 CST
> Interesting ports on X.X.X.X:
> PORT   STATE  SERVICE
> 22/tcp closed ssh
> MAC Address: XXXXXXXXXXX (Apple Computer)
> 
> Interesting ports on X.X.X.X:
> PORT   STATE  SERVICE
> 22/tcp closed ssh
> 
> Nmap done: 256 IP addresses (2 hosts up) scanned in 5.686 seconds
> 
> Chris
> 

I installed zenmap (use the intrepid version if you are using hardy as
the hardy version doesn't include an .desktop file for the
Applications|Internet menu):
http://packages.ubuntu.com/intrepid/zenmap
[installs just fine on hardy]
and found it pretty useful/interesting.

You can enter commands as from the CLI and save as a profile addition.
For example in answer to Charles Darwin's question, I just created a
command profile to scan for ssh and:

nmap  -p22 x.x.x.*
========
Starting Nmap 4.53 ( http://insecure.org ) at 2009-01-16 13:37 PST
Interesting ports on x.x.x.x:
PORT   STATE  SERVICE
22/tcp closed ssh
MAC Address: x:x:x:x:x:x (Cisco-Linksys)

Interesting ports on x.x.x.x:
PORT   STATE SERVICE
22/tcp open  ssh

Interesting ports on <systemname> (x.x.x.x):
PORT   STATE    SERVICE
22/tcp filtered ssh
MAC Address: x:x:x:x:x:x (Intel)

Interesting ports on <systemname> (x.x.x.x):
PORT   STATE  SERVICE
22/tcp closed ssh
MAC Address: x:x:x:x:x:x (Intel)

Interesting ports on <systemname> (x.x.x.x):
PORT   STATE SERVICE
22/tcp open  ssh
MAC Address: x:x:x:x:x:x (Asustek Computer)

Interesting ports on x.x.x.x:
PORT   STATE    SERVICE
22/tcp filtered ssh
MAC Address: x:x:x:x:x:x (Netgear)

Nmap done: 256 IP addresses (6 hosts up) scanned in 3.001 seconds
========

You can even save the scans, open a saved scan etc. Pretty nice GUI overall.

http://nmap.org/book/zenmap.html






More information about the ubuntu-users mailing list