Home page logo
/

nmap-dev logo Nmap Development mailing list archives

nmap 4.22S0C7 multiple IP address on one NIC in Win2000
From: preacherandrew () mail ru
Date: Tue, 23 Oct 2007 09:18:52 +0400

Hi, Fyodor.

My config:
Windows 2000; one NIC; in TCP/IP properties set multiple IP addresses

nmap prints out:
"WARNING: Unable to find appropriate interface for system route to ..."

I've downloaded sources of nmap and did some debugging.

It appears nmap uses only one of my IP adresses (first IP from those
returned by GetIpAddrTable).
In my config IP addresses are 192.168.160.12, 192.168.2.3,
192.168.230.107 (and first IP returned by GetIpAddrTable is
192.168.2.3).
In my test I ran "nmap 192.168.160.1". But nmap used only my ip 192.168.2.3 (and
can't reach 192.168.160.1 from this IP).

In source intf-win32.c:
 427: entry->intf_len = sizeof(ebuf);
 428: _ifrow_to_entry(intf, &intf->iftable->table[i], entry);

and then inside function "_ifrow_to_entry":
 memset(entry, 0, sizeof(*entry));

In result field "entry->intf_len" is 0. Threrefore code fragment "set aliases"
(strings 153-158 in "intf-win32.c")  is never executing.

 Andrew.


P.S. sorry for my English.



_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


  By Date           By Thread  

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