Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: Call for test: WinPcap 4.1.4 (NPcap 1.0.0)
From: "veotax" <hsluoyz () qq com>
Date: Wed, 28 Aug 2013 00:05:05 +0800

Hi David,
Sorry for not specifying the version of VS that can be integrated with WDK. In fact I used the Ultimate edition, and I 
think an express edtion is not enough. BTW, the code base has been updated today, so make sure you compiled NPcap with 
the latest version. In the latest code I renamed all file names and contents that containing "npf6x" to "npf" for 
compatibility issue, so notice this when you compile:)

------------------ Original ------------------
From:  "David Fifield"<david () bamsoftware com>;
Date:  Tue, Aug 27, 2013 11:54 PM
To:  "veotax"<hsluoyz () qq com>; 
Cc:  "dev"<dev () nmap org>; 
Subject:  Re: Call for test: WinPcap 4.1.4 (NPcap 1.0.0)

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:


David Fifield
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 ]