8000 GitHub - hoene/npcap: Nmap Project's Windows packet capture and transmission library
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hoene/npcap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Npcap

Build status Environment Release Issues

Npcap is a packet capture and injection library for Windows by the Nmap Project. It is a complete update to the unmaintained WinPcap project with improved speed, reliability, and security.

Documentation

The complete documentation for Npcap is available in the Npcap Guide on npcap.com. There you will find information about installation, reporting bugs, developing software with Npcap, and Npcap internals.

Downloads

The latest installer, Software Development Kit (SDK), source, and debug symbols can be downloaded from https://npcap.com/#download

Bug report

Please report any bugs or issues about Npcap at: Npcap issues on GitHub. In your report, please provide your DiagReport output, user software version (e.g. Nmap, Wireshark), reproduce steps and other information you think necessary. Refer to the Npcap Guide section on reporting bugs for more complete directions.

Contribution

If you want to contribute to the development of this project, first you need to setup the development environment.

Development Environment

Install a Windows. For example, use Windows 11, version 21H2.

When you install Visual Studio 2022, select the Desktop development with C++ workload, then under Individual Components add:

  • MSVC v143 - VS 2022 C++ ARM64/ARM64EC Spectre-mitigated libs (Latest)
  • MSVC v143 - VS 2022 C++ x64/x86 Spectre-mitigated libs (Latest)
  • C++ ATL for latest v143 build tools with Spectre Mitigations (ARM64/ARM64EC)
  • C++ ATL for latest v143 build tools with Spectre Mitigations (x86 & x64)
  • C++ MFC for latest v143 build tools with Spectre Mitigations (ARM64/ARM64EC)
  • C++ MFC for latest v143 build tools with Spectre Mitigations (x86 & x64)
  • Windows Driver Kit

Install Windows SDK from https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/ if you get the error "The Windows SDK version 10.0.26100.0 was not found.".

You also need WDK for Windows 11, version 21H2. Download and install it from https://go.microsoft.com/fwlink/?linkid=2166289

For addition tasks, like building the documentation, you need roffit. Clone it from

cd C:\Users\Measurement\
git clone https://github.com/bagder/roffit.git

Also, download 7z from https://www.7-zip.org/a/7z2409-x64.exe

As this version of Visual Studio does not support the compilation for Win32 drivers out of the box, please follow the instructions given in https://stackoverflow.com/questions/75509242/compiling-32-bits-driver-using-msvc-2022 In addition, you might need additional files (TODO).

Next, download AirPCAP Devpack from https://support.riverbed.com/bin/support/download?sid=l3vk3eu649usgu3rj60uncjqqu and unpack it to, for example to %USERPROFILE%\Airpcap_Devpack

Then, download https://npcap.com/dist/ npcap-sdk and install it under, e.g. %USERPROFILE%\npcap-sdk-1.14

We need Winflex, which can be download at https://github.com/lexxmark/winflexbison/releases . Be sure that it is in environment variable 'Path'. Test it by entering 'win_flex -V' into a command shell.

You might also need pkg-config from https://download.gnome.org/binaries/win32/dependencies/pkg-config_0.26-1_win32.zip

Cloing the reposiory

On https://github.com, fork both the repositories npcap https://github.com/nmap/npcap and libpcap https://github.com/the-tcpdump-group/libpcap. Then, enter the following commands.

cd %USERPROFILE%
git clone https://github.com/YOURUSER/npcap
git submodule update --init --recursive
cd wpcap
wpcap-cmake.bat
cd ..
cd installer
build.bat

License

The Npcap License allows end users to download, install, and use Npcap from our site for free on up to 5 systems (including commercial usage). Software providers (open source or otherwise) which want to use Npcap functionality are welcome to point their users to npcap.com for those users to download and install.

We fund the Npcap project by selling Npcap OEM. This special version of Npcap includes enterprise features such as the silent installer and commercial support as well as special license rights.

Contact

  • dev@nmap.org (Nmap development list, for technical issues and discussion)
  • sales@nmap.com (Sales addr 5D46 ess for commercial/licensing issues)
  • Npcap Issues Tracker

About

Nmap Project's Windows packet capture and transmission library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 60.5%
  • C++ 35.6%
  • Batchfile 1.7%
  • PowerShell 1.6%
  • Other 0.6%
0