Nmap Development mailing list archives

Re: Call for test: WinPcap 4.1.4 (NPcap 1.0.0)


From: David Fifield <david () bamsoftware com>
Date: Tue, 27 Aug 2013 08:54:16 -0700

On Tue, Aug 13, 2013 at 11:19:46AM +0800, veotax wrote:
The original WinPcap mainly has three parts: wpcap.dll, packet.dll and
npf.sys. I didn't change the original wpcap.dll, so no compile here. I
renamed npf to npf6x in order to differenciate them. Moreover, because
the installation method got to be more complex after porting, I made
an exe driver loader for npf6x.sys called NPF6xInstall.exe,  put
NPF6xInstall.exe in the same dir with npf6x.inf and npf6x.sys. Its
instructions are 1) "NPF6xInstall.exe -i" to install the npf6x driver
2) "NPF6xInstall.exe -u" to uninstall the npf6x driver. In a word,
there're three parts in the present: npf6x solution, packet solution
and NPF6xInstall solution. 

It is not a must to use the NSIS installer. To test WinPcap 4.1.4, you
can just put NPF6xInstall.exe, npf6x.inf and npf6x.sys together, run
the "NPF6xInstall.exe -i" command to finish the driver installation.
Put packet.dll to the system32 dir. Put the original wpcap.dll to the
system32 dir if you have no orginal WinPcap installed.


The compiling instructions for the three parts are as belows:


1) npf6x.sys (packetWin7\npf6x\npf6x.sln)
i. Install VS2012 and update 3.


VS2012 download link:
http://www.microsoft.com/visualstudio/eng/downloads


VS2012 update 3 download link:
http://www.microsoft.com/en-us/download/details.aspx?id=39305


ii. Install WDK8.0.


WDK8.0 download link:
http://msdn.microsoft.com/en-us/library/windows/hardware/hh852365.aspx


iii. Open the npf6x.sln file in VS2012 and compile.

I got this far, then got the error:

error MSB8020: The builds tools for WindowsKernelModeDriver8.0 (Platform
Toolset = 'WindowsKernelModelDriver8.0') cannot be found. To build using
the WindowsKernelModeDriver8.0 build tools, either click the Project
menu or right-click the solution, and then select "Update VC++
Projects...". Install WindowsKernelModeDriver8.0 to build using the
WindowsKernelModeDriver8.0 build tools.

I appears that the problem is that you cannot use Visual C++ Express:

http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/57e04415-1b84-475a-8f78-081751166c2e/windowskernelmodedriver80-cannot-be-found
http://stackoverflow.com/questions/18088150/compilation-error-for-ndis-driver-with-visual-studio-2012

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


Current thread: