Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: Call for test: WinPcap 4.1.4 (NPcap 1.0.0)
From: Aleksandar Nikolic <nikolic.alek () gmail com>
Date: Tue, 27 Aug 2013 18:04:09 +0200

On 8/27/2013 5:54 PM, David Fifield wrote:
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:

VS2012 update 3 download link:

ii. Install WDK8.0.

WDK8.0 download link:

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:

Yes, as far as I know WDK 8.0 is tied to Visual Studio which is
unfortunate, as
now there seems to be no way to build drivers for Win8 for free afaik.
Visual C++ Express can't build drivers.

AFAIK the build environment has changed, from nmake to MSBuild.
I had to do some driver development recently and had to limit myself
to Win7 and WDK 7.1 which doesn't require visual studio.


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

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

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]