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
1 answer

Writing pcap packets into a structure with libpcap

I have a pcap file captured by wireshark, now I need to read each packet of it and write them to a vector of structure. I got some promblem with writing packets into the structure. the structure: struct pktStruct { struct pcap_pkthdr *…
wangx1ng
  • 73
  • 1
  • 2
  • 10
0
votes
2 answers

Merging two pcap files with libpcap

I already know how to read a pcap file and get the packets it have.B ut how can I write the packets into a new pcap file? I need this to merge two pcap files into one.
wangx1ng
  • 73
  • 1
  • 2
  • 10
0
votes
1 answer

PCAP program error when compiling

It is a program to get the source and destination address from the network adapter .When trying to compile the following program,I am been left with errors. Does Any one have an idea on these errors.Thanks #include #include…
sai
  • 97
  • 2
  • 11
0
votes
1 answer

Is there any way to get radiotypes of wlan adapter using WinPcap?

I am developing a sniffer using WinPcap. Is there any API to get the information like RadioType (i.e 802.11a/b/g/n) and frequency band of it? thanks,
0
votes
2 answers

How does one capture H.323 voice traffic on a VOIP network?

What I am trying to do is capture the WAV data of a phone conversation on a VOIP network using SharpPCap/PCap.Net. We are using the H.323 recommendation and my understanding is that voice data is located in the RTP packets. However, there is no way…
Chris Holmes
  • 11,444
  • 12
  • 50
  • 64
0
votes
1 answer

Implementation of ISATAP Protocol

Can anybody help me figure out how to implement ISATAP packet? I'm creating packets in C++ (Winpcap). I can't imagine how it should be. Specification: http://www.networksorcery.com/enp/protocol/isatap.htm Is that an example of ISATAP packet? 0000…
Igerko
  • 79
  • 2
  • 7
0
votes
1 answer

C / Python WinPCap Translation

Sorry, this will be a very simple question for most of you. I'm trying to convert some of the code from here into Python (3.4) as I don't know C. That's primarily the basis of this issue. While I have created the Python data structures according to…
Apples292
  • 82
  • 1
  • 11
0
votes
1 answer

How to install firesheep on windows

I tried to use the tutorial to install firesheep, and it said to install WinPcap to run the file. When I tried to run the file on Firefox, it just gave a blank webpage. I watched YouTube tutorials and followed the instructions on this…
user4598524
0
votes
1 answer

Purebasic Windows TCP filter specific package easiest way?

I have a problem where I need to check the TCP packets on a machine. We use a closed source VOIP system here and I want to open a program when an incoming calls happens. The VOIP system's software shows the call, however has no functionality to…
Sebastian Heyn
  • 387
  • 3
  • 15
0
votes
1 answer

Java - Getting a project to run with JPcap

I'm trying to set up a project that uses jpcap in order to detect network traffic. I've tried various ways to get it to work, however every way ends up in errors. I run windows 64 bit, but here's what I've done: Installed winpcap Installed jpcap…
Eurater
  • 1
  • 2
0
votes
3 answers

How do I get uri of HTTP packet with winpcap?

Possible Duplicate: How to hijack all local http request and extract the url using c? Based on this article I can get all incoming packets. /* Callback function invoked by libpcap for every incoming packet */ void packet_handler(u_char *param,…
Gtker
  • 2,237
  • 9
  • 29
  • 37
0
votes
1 answer

How do I tell cmake to do these two steps to use winpcap?

Quoted from here: If your program uses Win32 specific functions of WinPcap, remember to include WPCAP among the preprocessor definitions. If your program uses the remote capture capabilities of WinPcap, add HAVE_REMOTE among the preprocessor…
Gtker
  • 2,237
  • 9
  • 29
  • 37
0
votes
2 answers

extracting packet from frame winpcap

I am using winpcap in order to sniff network traffic. Is there a way to extract the packet from the frame (ie getting layer 3 and up without layer 2) if I don't know which layer 2 protocol is used on the network?
omer12433
  • 199
  • 1
  • 17
0
votes
1 answer

Extracting RTP payload from packet

I am trying to write a utility to extract the payload from RTP packet. From my understanding about the network packets and protocols, RTP is wrapped in UDP. How can we decide whether the UDP packet that we have captured has RTP packet wrapped in it?…
user3119346
  • 463
  • 2
  • 6
  • 12
0
votes
1 answer

Having trouble using winpcap to write DLT_USER0 captures

I'm making a C++ program using MINGW that uses the Winpcap library to save BTLE packets into a PCAP file. I'm trying to open a PCAP file using the DLT_USER0 link layer type. I can open DLT_USER0 using the call to pcap_open_dead() but…