Questions tagged [npcap]

Npcap is the packet sniffing/transmitting library for Windows produced by the Nmap project. It is based on the discontinued WinPcap library, but with improved speed, portability, security, and efficiency. It is the de facto standard link-layer network access in Windows environments.

Npcap is the packet sniffing/transmitting library for Windows produced by the Nmap project. It is based on the discontinued WinPcap library, but with improved speed, portability, security, and efficiency. It is the de facto standard for link-layer network access in Windows environments.

Project page

42 questions
1
vote
0 answers

wireshark capture filter on loopback interface

selecting the loopback interface "Npcap Loopback Adapter" to capture locahost traffic and set the "capture filter" (no the display filter) on "tcp" when i start the capture i don't see anything, removing the filter i see packets of different…
pinale
  • 2,060
  • 6
  • 38
  • 72
1
vote
1 answer

pcap_sendpacket dosent work on "Npcap Loopback Adapter"

I have installed npcap driver which supports loopback interface. I installed it because I need to inyect packets to loopback interface and read them from it. I can easily read packets in the loopback with "pcap_next_ex" as I can do in winpcap in…
0
votes
0 answers

I get error 31 when using pcap_sendpacket with real Wi-Fi device, but it works fine with loopback

I tried compiling and running the sendpack example of the npcap sdk for C. While running the program with a loopback interface (specifically, Microsoft Wi-Fi Direct Virtual Adapter) as an argument to pcap_sendpacket, the program works as intended,…
Guy Dror
  • 1
  • 3
0
votes
0 answers

Npcap bridge between router and fiber optic modem

I have a problem with the npcap library (Successor to the popular WinPcap, and well know from e.g. Wireshark) What I try to do is, monitoring all the traffic between my fiber optic modem and my router. But not only "sniffing" on the traffic using…
Allgaeuer
  • 725
  • 1
  • 7
  • 12
0
votes
0 answers

npcap sending raw packets in virtual machine allways fail ,how to fix it?

I wrote a piece of code ,which basically resent captured packets if the destination address is 172.16.2.3, so I tried sending udp packet in python from 172.16.2.133 to 172.16.2.3:27180 and hopefully my code will duplicate it ,it worked ,172.16.2.3…
iouvxz
  • 89
  • 9
  • 27
0
votes
0 answers

Winsock2 SOCK_RAW vs NPCap

I am building a CNC controller which has 1Gbps Ethernet interface for communction with a Desktop Windows. Right now I am using NPCap to implement a custom protocol to communicate between Windows and a CNC microcontroller for a high-performance link…
Bubu
  • 129
  • 7
0
votes
0 answers

Win32 Raw Ethernet Programming / NPCap

I need a good Win32 VC++ API for Raw Ethernet Programming. I have written an application in VC++ win32 to communicate to a microcontroller having Gigabit Ethernet. Both windows side and microcontroller side software is written by me. The application…
Bubu
  • 129
  • 7
0
votes
1 answer

Hardware Timestamping Intel x550 and Npcap

Is it possible to get all recieved packets with hardware timestamp through NPCAP (Windows) and using an Intel® Ethernet Controller X550?
0
votes
1 answer

How to send packet without link-layer header using Npcap?

How can I send a packet with Npcap, without having to create link-layer header yourself?
0
votes
0 answers

how to count the ipv4 tcp and udp using npcap in c++?

I tried to code to give the statistics of a saved .pcap file in C++ using the npcap library. My IPv4 count is correct and matches Wireshark's IPv4 count, but my TCP and UDP don't match with Wireshark's statistics. Output of my code: Output of the…
0
votes
1 answer

Use scapy with npcap on Windows

I am using scapy 2.4.5 with Python 3.9.5 on Windows 11. I have npcap version 1.55 install. I have some Wireshark packet captures that I am trying to use scapy's sniff function on the file and filter out various packets. However, when I use…
user2662241
  • 529
  • 2
  • 6
  • 15
0
votes
2 answers

Getting Npcap IPv6 source and destination addresses

I'm trying to get the source and destination addresses for all packets using the npcap SDK (https://nmap.org/npcap/) in Windows. It works for IPv4, but it is returning the same address for the source and destination for IPv6 addresses. Here is the…
Tim
  • 314
  • 1
  • 2
  • 12
0
votes
0 answers

Add Npcap as prerequisite for a ClickOnce installation

How to add an URL prerequisite for Npcap .exe installation via ClickOnce distributed application? EDIT: I went throught various tutorials, like…
Pythoneer
  • 87
  • 6
0
votes
1 answer

pcap_handler callback contains empty packets only when using npcap v0.9991

I have some code that is supposed to capture data from an ethernet adapter. I am using the following steps to get the data (after determining the name of the device in the format: "rpcap://\Device\NPF_{0C5[...]C89}"): deviceHandle =…
Gunnar
  • 38
  • 6
0
votes
2 answers

Install npcap silently without npcap OEM Edition

Is there a way to silently install the npcap driver without the OEM Edition?
Lior Yehezkely
  • 101
  • 1
  • 10