Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: nmap v6.00 - problems if a wlan interface is installed/activated
From: Tom Eichstaedt <wintermute () tom-e de>
Date: Mon, 04 Jun 2012 13:01:27 +0200

Am 04.06.2012 00:01, schrieb Djalal Harouni:
Hi,

Ok, thanks for reporting this.

Could you please run these commands and send us results (with that
patch).

Yes, of course.

> # ./nmap --iflist -d3
=======================================================================
Starting Nmap 6.00 ( http://nmap.org ) at 2012-06-04 12:33 CEST
Fetchfile found /usr/bin/../share/nmap/nmap-services
PORTS: Using top 1000 ports found open (TCP:1000, UDP:0, SCTP:0)
************************INTERFACES************************
DEV        (SHORT)      IP/MASK          TYPE        UP   MTU   MAC
lo         (lo)         127.0.0.1/8      loopback    up   16436
lan-1 (lan-1) 10.100.0.10/24 ethernet up 1500 00:30:18:4B:9E:CD wan-1 (wan-1) 192.168.2.1/24 ethernet up 1500 00:30:18:4B:9E:CC unused-1 (unused-1) (null)/0 ethernet down 1500 00:30:18:4B:9E:CB unused-2 (unused-2) (null)/0 ethernet down 1500 00:30:18:4B:9E:CA wlan-1 (wlan-1) 10.100.1.10/24 ethernet up 1500 00:1D:0F:FE:BF:C4 mon.wlan-1 (mon.wlan-1) (null)/0 ethernet up 1500 00:1D:0F:FE:BF:C4
ppp0       (ppp0)       xxx.xxx.xxx.xxx/32 point2point up   1492

ROUTES: NONE FOUND(!)
Reason:
=======================================================================

> # ifconfig -a
=======================================================================
lan-1     Link encap:Ethernet  HWaddr 00:30:18:4b:9e:cd
          inet addr:10.100.0.10  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9597 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12546 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1151466 (1.0 MiB)  TX bytes:14362853 (13.6 MiB)
          Interrupt:16 Base address:0xa000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1547 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1547 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:120698 (117.8 KiB)  TX bytes:120698 (117.8 KiB)

mon.wlan-1 Link encap:UNSPEC HWaddr 00-1D-0F-FE-BF-C4-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:206 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28119 (27.4 KiB)  TX bytes:0 (0.0 B)

ppp0      Link encap:Point-to-Point Protocol
inet addr:xxx.xxx.xxx.xxx P-t-P:xxx.xxx.xxx.xxx Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:20232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17590 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:19323473 (18.4 MiB)  TX bytes:2000878 (1.9 MiB)

unused-1  Link encap:Ethernet  HWaddr 00:30:18:4b:9e:cb
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:18 Base address:0xe000

unused-2  Link encap:Ethernet  HWaddr 00:30:18:4b:9e:ca
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:19

wan-1     Link encap:Ethernet  HWaddr 00:30:18:4b:9e:cc
          inet addr:192.168.2.1  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20820 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18178 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19803931 (18.8 MiB)  TX bytes:2423212 (2.3 MiB)
          Interrupt:17 Base address:0xc000

wlan-1    Link encap:Ethernet  HWaddr 00:1d:0f:fe:bf:c4
          inet addr:10.100.1.10  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6855 errors:0 dropped:8 overruns:0 frame:0
          TX packets:6735 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:878570 (857.9 KiB)  TX bytes:5438773 (5.1 MiB)
=======================================================================

> # cat /proc/net/route
=======================================================================
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT ppp0 00000000 xxxxxxxx 0003 0 0 0 00000000 0 0 0 lan-1 0000640A 00000000 0001 0 0 0 00FFFFFF 0 0 0 wlan-1 0001640A 00000000 0001 0 0 0 00FFFFFF 0 0 0 wan-1 0002A8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0 ppp0 xxxxxxxx 00000000 0005 0 0 0 FFFFFFFF 0 0 0
=======================================================================

> # ip addr show
=======================================================================
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: lan-1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:30:18:4b:9e:cd brd ff:ff:ff:ff:ff:ff
    inet 10.100.0.10/24 scope global lan-1
3: wan-1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:30:18:4b:9e:cc brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.1/24 scope global wan-1
4: unused-1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:30:18:4b:9e:cb brd ff:ff:ff:ff:ff:ff
5: unused-2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:30:18:4b:9e:ca brd ff:ff:ff:ff:ff:ff
6: wlan-1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:1d:0f:fe:bf:c4 brd ff:ff:ff:ff:ff:ff
    inet 10.100.1.10/24 scope global wlan-1
7: mon.wlan-1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN qlen 1000
    link/ieee802.11/radiotap 00:1d:0f:fe:bf:c4 brd ff:ff:ff:ff:ff:ff
8: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc pfifo_fast state UNKNOWN qlen 3
    link/ppp
    inet xxx.xxx.xxx.xxx peer xxx.xxx.xxx.xxx/32 scope global ppp0
=======================================================================

> # ip route show
=======================================================================
default via xxx.xxx.xxx.xxx dev ppp0
10.100.0.0/24 dev lan-1  proto kernel  scope link  src 10.100.0.10
10.100.1.0/24 dev wlan-1  proto kernel  scope link  src 10.100.1.10
192.168.2.0/24 dev wan-1  proto kernel  scope link  src 192.168.2.1
xxx.xxx.xxx.xxx dev ppp0  proto kernel  scope link  src xxx.xxx.xxx.xxx
=======================================================================

> If you can also send the same results of Nmap v5.51 that would be a plus.

> # ./nmap --iflist -d3
=======================================================================
Starting Nmap 5.51 ( http://nmap.org ) at 2012-06-04 12:45 CEST
************************INTERFACES************************
DEV    (SHORT)  IP/MASK          TYPE        UP MTU   MAC
lo     (lo)     127.0.0.1/8      loopback    up 16436
lan-1  (lan-1)  10.100.0.10/24   ethernet    up 1500  00:30:18:4B:9E:CD
wan-1  (wan-1)  192.168.2.1/24   ethernet    up 1500  00:30:18:4B:9E:CC
wlan-1 (wlan-1) 10.100.1.10/24   ethernet    up 1500  00:1D:0F:FE:BF:C4
ppp0   (ppp0)   xxx.xxx.xxx.xxx/32 point2point up 1492

**************************ROUTES**************************
DST/MASK         DEV    GATEWAY
xxx.xxx.xxx.xxx/32 ppp0
10.100.0.0/24    lan-1
10.100.1.0/24    wlan-1
192.168.2.0/24   wan-1
0.0.0.0/0        ppp0   xxx.xxx.xxx.xxx
=======================================================================

(The other results are identically, because it's the same box.)

> I'll try to investigate it.

Thanks a lot.

Cheers, Tom
_______________________________________________
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 ]