Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: Scans failing on Win32 - failures differ depending on args len (maybe)
From: jah <jah () zadkiel plus com>
Date: Fri, 07 Oct 2011 14:13:08 +0100

On 07/10/2011 13:59, Gisle Vanem wrote:
nmap -F -v -d -n 195.166.128.231
VC++   - FAIL - route_dst_generic: Failed to obtain system routes:
               getsysroutes_dnet: sysroutes_dnet_find_interfaces()
               failed
Cygwin - FAIL - pcap_open_live(eth0, 256, 0, 2) FAILED.
               Reported error: Error opening adapter:
               The system cannot find the device specified. (20).
               Will wait 5 seconds then retry.
               ... Call to pcap_open_live() failed three times.
MS-DOS - SUCCESS

Just curious; what DOS platform/compiler did you use? I cannot see
any way to build nmap on MS-DOS. Re. the failures, have you studied
the itnerface/routing table? "nmap --iflist".

Hi Gilse,

I built the Release binary under Cygwin using the mswin32/makefile
with Visual Studio Express VC++ 2010 on XP SP3.
The results of the scans were from the Release binary executed from
the MS-DOS and Cygwin shells and the Debug binary was executed from
within VC++.

The output of nmap --iflist looks fine to me and is as follows:
************************INTERFACES************************
DEV  (SHORT) IP/MASK                     TYPE        UP   MTU  MAC
eth0 (eth0)  192.168.1.15/24             ethernet    up   1500 00:19:21:3D:3F:CE
eth0 (eth0)  fe80::219:21ff:fe3d:3fce/64 ethernet    up   1500 00:19:21:3D:3F:CE
lo0  (lo0)   127.0.0.1/0                 loopback    up   1520
tun0 (tun0)  fe80::ffff:ffff:fffd/64     point2point down 1280
tun1 (tun1)  (null)/0                    point2point up   1280
tun2 (tun2)  fe80::5efe:c0a8:10f/64      point2point up   1280
lo1  (lo1)   ::1/64                      loopback    up   1500
lo1  (lo1)   fe80::1/64                  loopback    up   1500

DEV    WINDEVICE
eth0   \Device\NPF_{3F5D3A0C-7937-48BD-B9FD-B8B36D8884DD}
eth0   \Device\NPF_{3F5D3A0C-7937-48BD-B9FD-B8B36D8884DD}
lo0    <none>
tun0   \Device\NPF_{A4AA2BB0-17C2-48D0-B92D-2C2C7F577DD0}
tun1   <none>
tun2   <none>
lo1    <none>
lo1    <none>
<none> \Device\NPF_GenericDialupAdapter

**************************ROUTES**************************
DST/MASK           DEV  GATEWAY
255.255.255.255/32 eth0 192.168.1.15
192.168.1.255/32   eth0 192.168.1.15
192.168.1.15/32    lo0  127.0.0.1
192.168.1.0/24     eth0 192.168.1.15
127.0.0.0/8        lo0  127.0.0.1
224.0.0.0/4        eth0 192.168.1.15
0.0.0.0/0          eth0 192.168.1.1

Regards,

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


  By Date           By Thread  

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