Nmap Development mailing list archives

Re: Error with --iflist, 4.22SOC1 on win32 system (XPsp2)


From: Ionreflex <ionreflex () gmail com>
Date: Fri, 13 Jul 2007 11:34:05 -0400

Gotcha! Well I was still here, so I gave it a try, the command completed
perfectly...

C:\Program Files\nmap-4.22SOC2>nmap --iflist

Starting Nmap 4.22SOC2 ( http://insecure.org ) at 2007-07-13 11:23 Est
(heure d'
ÚtÚ)
************************INTERFACES************************
DEV  (SHORT) IP/MASK        TYPE     UP   MAC
eth0 (eth0)  (null)/0       ethernet down 54:55:43:44:52:04
eth1 (eth1)  (null)/0       ethernet down 00:10:A4:AA:B6:D8
eth2 (eth2)  172.16.0.11/28 ethernet up   00:02:A5:BF:19:A4
lo0  (lo0)   127.0.0.1/8    loopback up

DEV  WINDEVICE
eth0 \Device\NPF_{9413D723-A09D-44B7-AD90-68A24CE59C82}
eth1 \Device\NPF_{712EEFC3-2026-4C5F-97B1-3064FEDAFD8F}
eth2 \Device\NPF_{3AD27E6D-628E-4C70-B111-FDD6706FDE82}
lo0  \Device\NPF_GenericDialupAdapter

**************************ROUTES**************************
DST/MASK           DEV  GATEWAY
172.16.255.255/32  eth2 172.16.0.11
255.255.255.255/32 eth2 172.16.0.11
255.255.255.255/32 eth2 172.16.0.11
172.16.0.11/32     lo0  127.0.0.1
255.255.255.255/32 eth2 172.16.0.11
172.16.0.0/4       eth2 172.16.0.11
127.0.0.0/0        lo0  127.0.0.1
224.0.0.0/0        eth2 172.16.0.11
0.0.0.0/0          eth2 172.16.0.1


C:\Program Files\nmap-4.22SOC2>

Keep on the good work!

Seeya



Ion

2007/7/13, Eddie Bell <ejlbell () gmail com>:

On 13/07/07, Ionreflex <ionreflex () gmail com> wrote:

I'll see what I can do, but I'm going hiking in the Adirondack
tomorrow... I'll do it if I can otherwise I'll do it first thing monday...


Have fun hiking while I'm stuck inside hacking on code :p I think I've
found the cause. I passed some parameters to a function
in the incorrect order. Attached it a patched exe. There is no rush to
test it,  just give it a try when you have the time

thanks
 - eddie


2007/7/12, Eddie Bell < ejlbell () gmail com>:

I had some other things to do today but tomorrow all my attention will
be on it!
I might send you another patched exe if you'd be so kind as to test it
for me.

On 12/07/07, Ionreflex <ionreflex () gmail com> wrote:

BTW, 4.22SOC2 crash identically... I was pretty sure it would, but
now it's confirmed!


2007/7/11, Eddie Bell < ejlbell () gmail com<https://mail.google.com/mail?view=cm&tf=0&to=ejlbell () gmail com>
:

Thanks for the details. Tomorrow I am going to take a deeper look
at
this and get it fixed

On 11/07/07, Ionreflex <ionreflex () gmail com<https://mail.google.com/mail?view=cm&tf=0&to=ionreflex () 
gmail com>>
wrote:
Sorry about the continuous posting, but maybe this could be
relevant : I'm
trying to run nmap on my work laptop, which has 5 network
connections :


MS Loopback adapter (to connect to my coLinux when no outside
network is
available);
Intel PRO/100 VM;
Xircom CreditCard Ethernet 10/100 + Modem 56 Parent;
Compaq WLAN MultiPort W200 (this one is deactivated, since the
laptop is
hardwired to the network);
and of course the usual internal loopback ( 127.0.0.1);
Just in case, I'll paste the results of the command with
4.21ALPHA4 (I think
I forgot to do so...) :

C:\Program Files\nmap- 4.21ALPHA4>nmap --iflist

Starting Nmap 4.21ALPHA4 ( http://insecure.org ) at 2007-07-11
17:25 Est
(heure
d'ÚtÚ)
************************INTERFACES************************
DEV  (SHORT) IP/MASK        TYPE     UP   MAC
eth0 (eth0)  (null)/0       ethernet down 54:55:43:44:52:04
eth1 (eth1)  (null)/0       ethernet down 00:10:A4:AA:B6:D8
eth2 (eth2)  172.16.0.11/28 ethernet up   00:02:A5:BF:19:A4
lo0  (lo0)   127.0.0.1/8     loopback up

**************************ROUTES**************************
DST/MASK           DEV  GATEWAY
172.16.255.255/32  eth2 172.16.0.11
255.255.255.255/32 eth2 172.16.0.11
255.255.255.255/32 eth2 172.16.0.11
172.16.0.11/32     lo0   127.0.0.1
 255.255.255.255/32 eth2 172.16.0.11
172.16.0.0/4       eth2 172.16.0.11
127.0.0.0/0         lo0   127.0.0.1
224.0.0.0/0        eth2 172.16.0.11
0.0.0.0/0          eth2 172.16.0.1


C:\Program Files\nmap-4.21ALPHA4>

That should be it... I hope!



2007/7/11, Ionreflex < ionreflex () gmail com<https://mail.google.com/mail?view=cm&tf=0&to=ionreflex () 
gmail com>>:
BTW, you just gave me a way to dive back in programming : I'm
gonna port
the project to MinGW, that should be boiling hot enough!

Also, I installed MS Visual Studio Express and tried to
generate nmap from
SVN, but I didn't see any nmap executable in the Debug folder;
the
BuildLog.htm file says something about a "windows.h" file
missing... I'm
gonna check it later, googling it found some links...



2007/7/11, Ionreflex < ionreflex () gmail com<https://mail.google.com/mail?view=cm&tf=0&to=ionreflex () 
gmail com>
:

Nope!




2007/7/11, Eddie Bell < ejlbell () gmail com<https://mail.google.com/mail?view=cm&tf=0&to=ejlbell () 
gmail com>
:
Damm, back to the drawing board :)  One question did this
message
appear last time it crashed?

"Assertion failed: row < numRows, file
c:\cygwin\home\eddie\nmap-dev\soc07\nmap\n
mapoutputtable.cc, line 162"


On 11/07/07, Ionreflex < ionreflex () gmail 
com<https://mail.google.com/mail?view=cm&tf=0&to=ionreflex () gmail com>>
wrote:
Oups, I just gave a try to the executable you sent me,
but it didn't
work...

C:\Program Files\nmap- 4.22SOC1>nmap --iflist

Starting Nmap 4.22SOC1 ( http://insecure.org ) at
2007-07-11 10:41
Est
(heure d'
ÚtÚ)

************************INTERFACES************************
DEV  (SHORT) IP/MASK        TYPE     UP   MAC
eth0 (eth0)  (null)/0       ethernet down
54:55:43:44:52:04
eth1 (eth1)  (null)/0       ethernet down
00:10:A4:AA:B6:D8
eth2 (eth2)   172.16.0.11/28 ethernet up
00:02:A5:BF:19:A4
lo0  (lo0)   127.0.0.1/8     loopback up

Assertion failed: row < numRows, file
c:\cygwin\home\eddie\nmap-dev\soc07\nmap\n
mapoutputtable.cc, line 162

I've also attached the image of the popup that occurs...



Ion

2007/7/11, Eddie Bell < ejlbell () gmail com<https://mail.google.com/mail?view=cm&tf=0&to=ejlbell 
() gmail com>
:
hi,

Well there are about 101 different ways to do it on
windows. The
easiest is probably with visual studio express, you
can get it
here
( http://msdn.microsoft.com/vstudio/express/ ).
Once its
installed all
you have to do is open the visual studio project file
which is
located
in mswin32 (in the nmap svn directory)

Then click the build command, once it has finished the
nmap binary
should be in mswin32\Debug\nmap.exe :)

I know it can be hard to get into development.
Probably the
easiest
and least time consuming way is to start of with an
NSE
script. I'm lucky that I have the free time and
occasionally get
paid
for working on nmap. Then again you have a daughter
and I guess a
wife
so have priorities else where!

I've attached the patched exe. You'll have to unzip it
and rename
the
extension to .exe (gmail doesn't let you sens files
with exe
extensions)

cheers
- eddie

On 11/07/07, Ionreflex < ionreflex () gmail 
com<https://mail.google.com/mail?view=cm&tf=0&to=ionreflex () gmail com>>
wrote:
Hey Eddie,

As a professional procrastinator, I've just
installed
TortoiseSVN and
did a
checkout of the Nmap repository... Yeah, it worked!
But I don't
have any
compiler available, my programmer years are lost
more than a
decade
ago... I
would really like to do it, but it would take time
if I do it
alone...
so we
have 2 choices : you could help me with insights on
the
following steps
to
set it up properly, or as you offered sending me a
patched nmap
executable...

I would prefer the first choice, but I know it could
be
difficult on
your
side, most of it being the time factor, and I can
see how deep
you are
participating in the Nmap project...

Eventually I would really like to dive deeper in the
project
myself...
maybe
when Luna-fée shall start going to school (she's 8
months old!
:o)

Okeydokey, enough said, I'm personnally ashamed of
myself for
asking,
but
then again, I've got nothing to loose right ?

Seeya around, and at the least, don't forget the
patched
executable! ;o)

PS : paleez forgive my englitch!



Ion

2007/7/10, Eddie Bell < ejlbell () gmail 
com<https://mail.google.com/mail?view=cm&tf=0&to=ejlbell () gmail com>
:
Hi,

I can't reproduce this but I think it is to do
with the null
interfaces. I've applied a fix to SVN could you
test it and
see if it
fixes your problem. If you want a patched nmap.exeinstead I
can send
it to you privately

thanks
- eddie

On 10/07/07, Ionreflex < ionreflex () gmail 
com<https://mail.google.com/mail?view=cm&tf=0&to=ionreflex () gmail com>>
wrote:
Hey all,

Just updated my system with latest stable
version of
winpcap, then
unzip
version 4.22SOC1 into its own folder to give it
a try...

C:\Program Files\nmap- 4.22SOC1>nmap -V

Nmap version 4.22SOC1 ( http://insecure.org )

C:\Program Files\nmap- 4.22SOC1>nmap --iflist

Starting Nmap 4.22SOC1 ( http://insecure.org )
at 2007-07-09
23:03
Est
(heure d'
ÚtÚ)



************************INTERFACES************************
DEV  (SHORT) IP/MASK        TYPE     UP   MAC
eth0 (eth0)  (null)/0       ethernet down
54:55:43:44:52:04
eth1 (eth1)  (null)/0       ethernet down
00:10:A4:AA:B6:D8
eth2 (eth2)   172.16.0.11/28 ethernet up
00:02:A5:BF:19:A4
lo0  (lo0)   127.0.0.1/8     loopback up


C:\Program Files\nmap- 4.22SOC1>

... as you can see, --iflist crashed nmap,
showing an
internal error
(I've
attached the file 5a25_appcompat.txt, hoping it
can help
someone...)

I tried the command with 4.21ALPHA4, everything
was ok,
reboot but
still
the
same!

I'm kinda lost... anybody has inputs ?



_______________________________________________
Sent through the nmap-dev mailing list

http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

























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


Current thread: