Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos

Nmap Development: RE: Nmap 4.60 Compilation Errors with Visual Studios 2008

RE: Nmap 4.60 Compilation Errors with Visual Studios 2008

From: Kevin T. Johnston <kjohnston_at_syrres.com>
Date: Wed, 2 Apr 2008 08:22:03 -0400

Thanks, fixed some now get over 100 other errors. I'll keep working on it.

See attached.

Kevin T. Johnston
Systems Administrator, Corporate IT
Syracuse Research Corporation
7502 Round Pond Road
North Syracuse, NY 13212
E-Mail: kjohnston_at_syrres.com
Phone: (315) 452-8061
 

-----Original Message-----
From: snownet_at_gmail.com [mailto:snownet_at_gmail.com] On Behalf Of Mike
pattrick
Sent: Wednesday, April 02, 2008 12:11 AM
To: nmap-dev_at_insecure.org
Cc: kjohnston_at_syrres.com
Subject: Re: Nmap 4.60 Compilation Errors with Visual Studios 2008

> Date: Tue, 1 Apr 2008 16:02:05 -0400
> From: "Kevin T. Johnston" <kjohnston_at_syrres.com>
> Subject: Nmap 4.60 Compilation Errors with Visual Studios 2008
> To: <nmap-dev_at_insecure.org>
> Message-ID: <004f01c89433$426298e0$c727caa0$@com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I get 142 error and 8 warnings compiling NMAP 4.6 under the new Visual
> Studio 2008. Any ideas? Who knows what Microsoft did with latest VS.
I'm
> having difficulty figuring out what the real issue is. Thanks for any
> input. Get a totally different set of errors/warning under VS 2005.
>
> Here's a sample:
> - snip -

Hello Kevin ,

I had the same problem compiling in VS express 2008 on Windows Vista.
It seems that Microsoft decided to implement a few more functions in
their 2008 framework, here is a (Albeit hacky) solution that worked
for me.

In the nbase, dnet, nmap, and nsock subprojects, define the following
preprocessor definitions:

HAVE_INET_PTON
HAVE_INET_NTOP
HAVE_VSNPRINTF

Then, in the nbase subproject:
comment out the 'inet_pton' function in 'inet_pton.c'
comment out the 'inet_ntop' function in 'inet_ntop.c'

Then, comment out the line "#define vsnprintf _vsnprintf'" in the
following files:
os.h - dnet
nbase.h - nbase

Finally, go into tcpip.cc and change the following:

    inet_ntop(AF_INET, frame+38, who_has, sizeof(who_has));
    inet_ntop(AF_INET, frame+28, tell, sizeof(tell));
    Snprintf(arpdesc, sizeof(arpdesc), "who-has %s tell %s", who_has, tell);
  } else { /* ARP REPLY */
    inet_ntop(AF_INET, frame+28, who_has, sizeof(who_has));

to

    inet_ntop(AF_INET, (void*)(frame+38), who_has, sizeof(who_has));
    inet_ntop(AF_INET, (void*)(frame+28), tell, sizeof(tell));
    Snprintf(arpdesc, sizeof(arpdesc), "who-has %s tell %s", who_has, tell);
  } else { /* ARP REPLY */
    inet_ntop(AF_INET, (void*)(frame+28), who_has, sizeof(who_has));

Sincerely,
Michael Patrick
University of Ontario - Faculty of BIT - Information Security

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

Received on Apr 02 2008
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]