Nmap Development mailing list archives

nmap --iflist bug on Windows


From: Niels Bohr <niels.bohr () spielbank-sh de>
Date: Mon, 9 May 2016 14:59:38 +0000

Hi,

I'm writing a GUI, script collection for nmap and came across following problem:

Running nmap 7.12 on a Windows 7 x64 PC the -iflist outputs the wrong netmask if you have multiple ip's on 1 interface 
with different netmasks.
If you configure a 192.168.0.1/24 and 10.0.0.1/8 as ip on the same network card, nmap outputs either:
192.168.0.1/24
10.0.0.1/24

Or

10.0.0.1/8
192.168.0.1/8

The netmask is correct for the first ip found on the device on then used for the second.

I tested the same on debian linux with nmap 6.47, the output is correct.

Kind regards
Niels




_________________________________________________________________________________________________

Diese E-Mail und ihre etwaig vorhandenen Anh?nge sind ausschlie?lich f?r den beabsichtigten Empf?nger bestimmt und 
k?nnen vertrauliche Informationen enthalten. Jegliche vom Absender nicht ausdr?cklich oder durch eindeutiges 
schl?ssiges Verhalten (welches nicht mit der ?bersendung der E-Mail begr?ndet wird) beabsichtigte Ver?ffentlichung, 
Vervielf?ltigung, Weiterleitung oder anderweitige Verwertung ist untersagt und kann straf- oder zivilrechtlich verfolgt 
werden. Falls Sie diese E-Mail irrt?mlich erhalten haben, bitten wir Sie um kurze Nachricht per Telefon oder Fax. Bitte 
l?schen Sie die E-Mail und alle eventuell vorhandenen Kopien unverz?glich von Ihrem Computer-System und veranlassen Sie 
die L?schung etwaig vorhandener Backups auf anderen Datentr?gern, wenn Sie nicht der beabsichtigte Empf?nger sein 
sollten.

This e-mail, its content and any files transmitted with it are confidential and may be legally privileged. If you 
receive it in error or if you are not the intended recipient you must not copy, distribute or take any action in 
reliance upon it. Please notify us immediately by telephone or fax and delete the e-mail, its attachments and any 
existing backups.

Spielbank SH GmbH * Eggerstedtstr.1 * 24103 Kiel
Tel.: +49 (431) 981 55 - 0 * Fax: +49 (431) 981 55 - 20  *  www.spielbank-sh.de
Registergericht AG Kiel HRB 4371 * Steuernummer 19 297 297 92 * UID (VAT)-N?. DE812971534
Gesch?ftsf?hrer:  J?rgen Kiehne





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

Current thread: