This tag wiki does not currently have an excerpt. Help by creating one
Questions tagged [sharppcap]
125 questions
0
votes
0 answers
Display the requested URL from any browser through C# using Fiddler
I want my C# console application to display only the requested URLs from any browser. Earlier I started with SharpPcap, but I was getting many IP addresses against one URL and could not filter and display only the requested URL. Then I switched to…

Tutun
- 79
- 1
- 12
0
votes
1 answer
Reading From Multiple PcapFiles In One Instance of the program
I am using Sharppcap wrapper for WinPcap and I am trying to read multiple pcap files, consecutively, in one instance of a program/ program lifetime
foreach (FILENAME in LIST) // pseudocode
{
ICaptureDevice device;
try
{
device…

Murph
- 3
- 5
0
votes
1 answer
Attempted to set a negative index while reading PCAP files
I have a randomly occurring problem on a set of PCAP files. I am trying to parse all the packets from the recorded PCAP files using SharpPcap and PacketDotNet. The errors seem to occur at random.
I am not doing anything fancy. The following is my…

Igor Ševo
- 5,459
- 3
- 35
- 80
0
votes
1 answer
Unable to cast object of type 'PacketDotNet.EthernetPacket' to type 'SharpPcap.RawCapture'
I've been following the guide over at http://www.codeproject.com/KB/IP/sharppcap.aspx for implementing a simple packet sniffer.
I am getting an error while converting 'PacketDotNet.EthernetPacket' to 'SharpPcap.RawCapture'. Following is the piece of…

user2998181
- 23
- 5
0
votes
1 answer
Source and destination IP of ICMP packet
I am capturing packets with Sharp Pcap, I can easily check IP of IPpacket or ARP packet:
Dim ip1 As IpPacket = IpPacket.GetEncapsulated(pack)
Dim arp As ARPPacket = ARPPacket.GetEncapsulated(pack)
If (Not ip1 Is Nothing) Then
…

Disa
- 630
- 13
- 42
0
votes
1 answer
C# SharpPCap Syn scan
I am trying to do a TCP SYN scan using SharpPcap, I am using WireShark tosee if the packets get sent from my NIC, they get sent, but I don't get a response.
NMAP documentation says I should get a SYN|ACK or a RST TCP packet, I get none, the other…

AlexandruC
- 3,527
- 6
- 51
- 80
0
votes
1 answer
How to get the data from TcpPacket in a readable format using SharpPcap?
I am building sniffer for my final year project.I want to extract the data from TCP in a human readable format.
I am getting the data in Hex format using BitConverter but i want data to be readable i.e. all the Http Browsed links,Get requests,Post…

Mustafa Ujjainwala
- 81
- 6
0
votes
2 answers
List count gives null after adding elements
I am having trouble retrieving values from the list
Packet.net and SharpPcap are the two libraries used here !
I have 2 function which does the main work
1st one
This function is called from ThreadPool.QueueUserWorkItem(new…

Questioner
- 233
- 5
- 13
0
votes
1 answer
Get the amount of data transfered using SharpPcap
Hi I am currently working on network monitoring system using SharpPcap. I am able to get the bytes from the network. But how do I convert these bytes into amount of data transfered through network, i.e. how much MB sent or MB received. I tried to…

Dharmesh Tailor
- 320
- 1
- 11
0
votes
0 answers
C# SharpPCap Read Packet Content
i'm tryin' to read the content of the packets that i've captured with SharpPCap.
This is my little code
private void button4_Click(object sender, EventArgs e)
{
// Retrieve the device list
var devices =…

Ldg
- 261
- 1
- 8
- 17
0
votes
1 answer
Using SharpPcap for blocking network
I am new to SharpPcap and I am confused. How can I use it for enabling and disabling internet connection using C#, is there any built in functions for this purpose?
Are there any tutorials available for SharpPcap?
user1050189
0
votes
0 answers
How to read image from raw UDP packets (captured from SharpPcap)
I send a Bitmap image from virtual machine to local machine, then capture the image UDP packets by SharpPcap from local machine. But I don't know how to get rid of those protocol header and get the image displayed.
In fact, I need to read Gbytes…

Decula
- 494
- 4
- 16
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
Issuse with the Winformexample SharpPcap Addapter
How do I refresh the list of adapters in C#?
Say the following happens:
List device and I see the device.
I unplug and replug in WITHOUT starting the software.
the device changes from: \\.\airpcap00 AirPcap USB wireless capture adapter nr. 00…

Karl
- 1
- 2
0
votes
1 answer
Filters in SharpPcap
Im trying to filter out just he Probes and Broadcast frames on the wifi.
Using SharpPcap.
((SharpPcap.AirPcap.AirPcapDevice)(device)).Filter = "wlan.fc.type eq 0";
does not work
same with
((SharpPcap.AirPcap.AirPcapDevice)(device)).Filter =…

Karl
- 1
- 2