Home page logo

nmap-dev logo Nmap Development mailing list archives

Understanding "-S" option on configurations whith several IP addresses.
From: Korostelev Andrew <preacherandrew () mail ru>
Date: Tue, 30 Oct 2007 10:55:32 +0300


I have question about "-S" option. Namely in cases of several IP-addresses
on one NIC.

Here is my case.

Two host whith Windows 2000:
host A have one NIC with two IP addresses - 
host B one NIC whit one IP address -

How can I use nmap on first host for testing second host?

If I run "nmap -S -e eth0" I get
lot of messages "WARNING: Unable to find appropriate interface for system route..." and last message: 
"NmapArpCache() can only take IPv4 addresses. Sorry.

If I delete second IP address on host A, then all OK - and whith option
("nmap -S -e eth0") and whithout option

After some debugging I see that nmap get strange results on configurations
whith several IP. Nmap use only one from IP address (first from returned GetIpAddrTable)
 and all tests carry out on that address.
For example, host have two IP - and,
and default gateway -
Nmap calls GetIpAddrTable.  GetIpAddrTable returns as first IP address,
and as second address. Nmap take address and try verify
default gateway using that address.  When nmap comparing and nmap prints out:
"WARNING: Unable to find appropriate interface for system route to"
I guess in this case nmap must using other IP address of the host -

Sent through the nmap-dev mailing list
Archived at http://SecLists.Org

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]