Nmap Development mailing list archives

Re: A bug, probably another bug and a probable patch


From: jah <jah () zadkiel plus com>
Date: Tue, 03 Jun 2008 01:40:32 +0100

On 03/06/2008 01:02, Mike pattrick wrote:
Second bug:
The error occurs when you flip the hardware wifi switch at the front
of the computer to the off position and run "nmap --iflist". The error
is a failed assertion. This one is a little wired, I got a few of my
friends to test it out and they had mixed results, some hit the bug,
some didn't. It was tested on two R60's and a T60, both R60's
experienced the error while the T60 didn't.

I'm writing a patch for it right now but I would like it if some other
people with laptops that have hardware wifi switches tested this out.
  
Hi,

I tried it on a Z61 with XP SP3.
I had Nmap 4.23RC3 installed and when I turned the hardware wireless
switch off I saw that --iflist IP address for that adapter reported as
"(null)" and got a warning about no interface for route to 255.255.255.255
I installed 4.65 and tried --iflist twice after turning off the hardware
switch.  The first was mere seconds after flipping the switch and
--iflist showed the interface was down. The second time was a few
seconds later and I got the assert failure.  See attached.

jah
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Program Files>cd Nmap

**<H/W switch ON>**
C:\Program Files\Nmap>nmap --iflist

Starting Nmap 4.23RC3 ( http://insecure.org ) at 2008-06-03 01:17 GMT Daylight Time
************************INTERFACES************************
DEV  (SHORT) IP/MASK         TYPE     UP MAC
eth0 (eth0)  192.168.1.19/24 ethernet up 00:13:CE:8A:74:3C
lo0  (lo0)   127.0.0.1/8     loopback up

DEV WINDEVICE
lo0 \Device\NPF_{08CFDE0B-16EF-4DBB-B93C-386AB69B65FF}

**************************ROUTES**************************
DST/MASK           DEV  GATEWAY
192.168.1.255/32   eth0 192.168.1.19
192.168.1.19/32    lo0  127.0.0.1
255.255.255.255/32 eth0 192.168.1.19
192.168.1.0/0      eth0 192.168.1.19
127.0.0.0/0        lo0  127.0.0.1
224.0.0.0/0        eth0 192.168.1.19
0.0.0.0/0          eth0 192.168.1.1


**<H/W switch OFF>**
C:\Program Files\Nmap>nmap --iflist

Starting Nmap 4.23RC3 ( http://insecure.org ) at 2008-06-03 01:17 GMT Daylight Time
************************INTERFACES************************
DEV  (SHORT) IP/MASK     TYPE     UP   MAC
eth0 (eth0)  (null)/0    ethernet down 00:13:CE:8A:74:3C
lo0  (lo0)   127.0.0.1/8 loopback up

DEV WINDEVICE
lo0 \Device\NPF_{08CFDE0B-16EF-4DBB-B93C-386AB69B65FF}

WARNING: Unable to find appropriate interface for system route to 255.255.255.25
5

**************************ROUTES**************************
DST/MASK    DEV GATEWAY
127.0.0.0/0 lo0 127.0.0.1


**<H/W switch ON>**
C:\Program Files\Nmap>nmap --iflist

Starting Nmap 4.65 ( http://nmap.org ) at 2008-06-03 01:21 GMT Daylight Time
************************INTERFACES************************
DEV  (SHORT) IP/MASK         TYPE     UP MAC
eth0 (eth0)  192.168.1.19/24 ethernet up 00:13:CE:8A:74:3C
lo0  (lo0)   127.0.0.1/8     loopback up

DEV WINDEVICE
lo0 \Device\NPF_{08CFDE0B-16EF-4DBB-B93C-386AB69B65FF}

**************************ROUTES**************************
DST/MASK           DEV  GATEWAY
192.168.1.255/32   eth0 192.168.1.19
192.168.1.19/32    lo0  127.0.0.1
255.255.255.255/32 eth0 192.168.1.19
192.168.1.0/0      eth0 192.168.1.19
127.0.0.0/0        lo0  127.0.0.1
224.0.0.0/0        eth0 192.168.1.19
0.0.0.0/0          eth0 192.168.1.1


**<H/W switch OFF>**
C:\Program Files\Nmap>nmap --iflist

Starting Nmap 4.65 ( http://nmap.org ) at 2008-06-03 01:22 GMT Daylight Time
************************INTERFACES************************
DEV  (SHORT) IP/MASK         TYPE     UP   MAC
eth0 (eth0)  192.168.1.19/24 ethernet down 00:13:CE:8A:74:3C
lo0  (lo0)   127.0.0.1/8     loopback up

DEV WINDEVICE
lo0 \Device\NPF_{08CFDE0B-16EF-4DBB-B93C-386AB69B65FF}

**************************ROUTES**************************
DST/MASK           DEV  GATEWAY
192.168.1.255/32   eth0 192.168.1.19
192.168.1.19/32    lo0  127.0.0.1
255.255.255.255/32 eth0 192.168.1.19
192.168.1.0/0      eth0 192.168.1.19
127.0.0.0/0        lo0  127.0.0.1
224.0.0.0/0        eth0 192.168.1.19
0.0.0.0/0          eth0 192.168.1.1


**<H/W switch OFF>**
C:\Program Files\Nmap>nmap --iflist

Starting Nmap 4.65 ( http://nmap.org ) at 2008-06-03 01:22 GMT Daylight Time
Assertion failed: sin->sin_family == AF_INET6, file .\nbase_misc.c, line 155

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:\Program Files\Nmap>

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

Current thread: