Nmap Development mailing list archives

Re: nmap v6.00 - problems if a wlan interface is installed/activated


From: Djalal Harouni <tixxdz () opendz org>
Date: Sun, 1 Jul 2012 21:45:24 +0100

Hi Tom,

Thanks for testing.

On Sat, Jun 30, 2012 at 02:12:04PM +0200, Tom Eichstaedt wrote:
[...]
1) ppp-connection enabled:

=================================================================================
Starting Nmap 6.01 ( http://nmap.org ) at 2012-06-30 13:51 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
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)       91.57.162.137/32 point2point up   1492

**************************ROUTES**************************
DST/MASK       DEV    GATEWAY
10.100.0.0/24  lan-1
10.100.1.0/24  wlan-1
192.168.2.0/24 wan-1
=================================================================================

Some routes are not shown (device ppp0).
nmap 5.51:

=================================================================================
(...)
**************************ROUTES**************************
DST/MASK         DEV    GATEWAY
217.0.118.108/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   217.0.118.108
=================================================================================
So it seems that libnetutil/netutil.c:sysroutes_dnet_find_interfaces() was
never correct, I got confused by it...

I've attached a new patch 'patch -p1' for Nmap-6.01, now Nmap should detect
ppp connections, still I'm not conviced since I assume there are other
special setups which perhaps we can't handle...

Tom thanks for your patience.

-- 
tixxdz
http://opendz.org

Attachment: nmap_routes_rework.patch
Description:

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

Current thread: