Nmap Development mailing list archives

nmap 3.81 crash on XP with pcap 3.01a


From: Matthew Oelschlaeger <boelschlaeger () carolina rr com>
Date: Thu, 10 Feb 2005 19:30:08 -0500

Hiya,

Found weird crash bug in nmap 3.81 binaries and source for windows with nmap 3.01a. It tries to reference pcap_lib_version in wpcap.dll. However, there isnt a pcap_lib_version in my wpcap.dll so it fails with ERROR_PROC_NOT_FOUND.
nmap.exe:
045C15F:      GetProcAddress(0x390000, "pcap_lib_version") => 0
045C168:      GetLastError() => ERROR_PROC_NOT_FOUND

Heres what i used to fix the problem. No idea if its correct though :p.

<nmapsource>/mswin32/winip/winip.c @ LINE 314, FUNCTION winip_postopt_init

//old
//printf("***WinIP*** winpcap present, dynamic linked to: %s\n", pcap_lib_version());
//new
printf("***WinIP*** winpcap present, dynamic linked to: %s\n", PacketGetVersion());

Current thread: