Questions tagged [winpcap]

WinPcap is a discontinued tool for link-layer network access in Windows environments: it allowed applications to capture and transmit network packets bypassing the protocol stack.

WinPcap is a discontinued tool for link-layer network access in Windows environments: it allowed applications to capture and transmit network packets bypassing the protocol stack, and has additional useful features, including kernel-level packet filtering, a network statistics engine and support for remote packet capture.

Project page

361 questions
0
votes
2 answers

PCAP Alternatives

Are there any alternatives to PCAP DLL for capturing packets, that are not drivers?
webby
0
votes
1 answer

Error getting WinPcap address information

Hello i am having some problem getting network card address information from the WinPcap driver. I have noticed that whenever IPv6 is enabled for a particular NIC, the address information for it becomes 0.0.0.0. How can i fix this? pcap_addr*…
yohannist
  • 4,166
  • 3
  • 35
  • 58
0
votes
1 answer

Detecting UDP DoS attack

i am trying to write a program that detects a UDP DoS attack using C++ and WinPcap. What criteria can i use to identify such an attack? I have noticed many UDP DoS generator programs send the same payload over and over again so i can probably detect…
yohannist
  • 4,166
  • 3
  • 35
  • 58
0
votes
1 answer

How do I get IPs that sent more than X packets in less than a given time

I have a C# program that detects incoming TCP/IP packets on any given ethernet device. Every packet is processed in the following struct: struct Packet{ String sourceIp; DateTime arrivalDate; } If I have a List of every incoming Packets…
Guj Mil
  • 333
  • 4
  • 16
0
votes
1 answer

Is there any possibility for SharpPcap to block or limit packets?

I want to make an application just like Bandwidth throttling in this application is it possible to achieve such thing with SharpPcap in C# ?
Ehsan Zargar Ershadi
  • 24,115
  • 17
  • 65
  • 95
0
votes
1 answer

SharpPcap OnPcapStatistics event raises exception when using filters?

duo to SharpPcap OnPcapStatistics event never fires? I have fixed it by placing override for PcapDevice.SendPacketArrivalEvent() and virtual for WinPcapDevice.SendPacketArrivalEvent() and it works perfect , but when i add some filters like this…
Ehsan Zargar Ershadi
  • 24,115
  • 17
  • 65
  • 95
-1
votes
1 answer

Cap.findDevice return all time undefined

I try to work on packet with cap but is not work. I have try the default code : const Cap = __cap.Cap const decoders = __cap.decoders const PROTOCOL = decoders.PROTOCOL var c = new Cap(); var device = Cap.findDevice('192.168.0.10'); var filter =…
Albanninou
  • 409
  • 2
  • 11
-1
votes
1 answer

It is possible to find what application was listening on a TCP/IP port from "pcap" file?

With winpcap or libpcap I can find the port. But how do I know which app was listening to the port while the package was received? Thank in advance
Avremi
  • 3
  • 3
-1
votes
1 answer

winpcap findalldevs const char * incompatible to char *

I have installed WinPcap, the Developer pack, created a new project and adjusted the compiler/linker settings. I use the very basic example from WinPCap's homepage ("obtaining the device list"). But I get the error: The argument of type "" const…
Jane dOE
  • 21
  • 6
-1
votes
1 answer

Start position of HTTP Header is not always the same

I try to calculate the start of the HTTP header of a packet, for example GET /test.html HTTP1.1 Host: example.com ... With WinPcap in C i try ih = (ip_header *) (pkt_data + 14); ip_len = (ih->ver_ihl & 0xf) * 4; th = (tcp_header *) ((u_char*)ih +…
-1
votes
1 answer

How to extract the ip address from the captured packet in java in windows?

I am working on Network Monitoring. I wish to monitor the data and check the network usage details of the client PC from the admin PC. I have figured that I can fulfill this with the help of captured the packets of the browser as shown below.…
Shachi
  • 1,858
  • 3
  • 23
  • 41
-1
votes
1 answer

WinPcap: Discarded WiFi Packet

Consider the WinPcap tutorial for sending a single packet. To start running it, it is relatively straightforward: copy and paste the code into your IDE for C (in my case code::blocks) add #define HAVE_REMOTE to the 1st line set the build options…
Mark Messa
  • 440
  • 4
  • 22
-1
votes
1 answer

How to achieve the concurrency of two threads?

I write a program to capture the packets using Library "Winpcap". ( How to complie WinPcap with VS2010? Please see this link: http://www.rhyous.com/2011/11/12/how-to-compile-winpcap-with-visual-studio-2010/) I want to capture the packet(using…
rayallen
  • 93
  • 1
  • 1
  • 7
-1
votes
2 answers

http header in a packets?

how to retrieve the http header in a packet in c++? any sample code or tutorials can be a big help!.. thanx!.. note: winpcap was used for the packet sniffing and these packets are already filterd to be only tcp and http/s protocols..the only problem…
jerams
  • 113
  • 1
  • 2
  • 8
-2
votes
1 answer

sniff the data on a selected port - C#

I have one application running on specific port. I dont have access to this application but i know what it does. Now this application is listening on one specific port and process the data coming on that port Now i have been assigned the task on…
user867198
  • 1,588
  • 3
  • 16
  • 31
1 2 3
23
24