Questions tagged [packet.net]
8 questions
                    
                    6
                    
            votes
                
                2 answers
            
        Sending my own ARP packet using SharpPcap and Packet.Net
I am trying unsuccessfully so far to send an ARP packet I have created with Packet.Net using SharpPcap. The problem is even though I send the packet using device.SendPacket it doesn't actually get sent, and I have no idea why.
This is my…
        
        Cokegod
        
- 8,256
 - 10
 - 29
 - 47
 
                    2
                    
            votes
                
                1 answer
            
        Sending an LLDP packet using SharpPcap and Packet.Net
So, I spent the afternoon trying to send an LLDP packet in c# using SharpPcap and Packet.Net.
What I came up with bombs with an NullReferenceException. I know why, but I don't know what to do about it.
This is my code:
namespace LLDPTest {
    using…
        
        lightxx
        
- 1,037
 - 2
 - 11
 - 29
 
                    2
                    
            votes
                
                2 answers
            
        sending http post packet using sharppcap or packetdotnet
For testing reasons, I'm trying to generate a http packet with different source IP address and post it to a destination.
I'm going to use sharppcap or packetdotnet.
Found good samples here:…
        
        Afshin Gh
        
- 7,918
 - 2
 - 26
 - 43
 
                    1
                    
            vote
                
                1 answer
            
        Send an IP packet with Packet.Net and SharpPcap but generate ethernet frame
I'm trying to send a raw UDP packet with Packet.Net but the device.SendPacket() function only seems to accept link level PDUs which means I have to figure out the source and destination MAC addresses myself. (Using ARP or something)
How can I create…
        
        takteek
        
- 7,020
 - 2
 - 39
 - 70
 
                    1
                    
            vote
                
                0 answers
            
        Do I need to write CRC 32 to send craft Ethernet packet by using Packet.Net and SharpPcap
I write a code in C# to add MAC header in front of payload and send raw crafted Ethernet Packet by SharpPcap. I can catch the packet from sender by wireshark, but I cannot receive anything in the receiver end. I find the packet length in the send…
        
        Decula
        
- 494
 - 4
 - 16
 
                    0
                    
            votes
                
                1 answer
            
        Extract HTTP header information using Packet.Net
I would like to extract the HTTP header information using Packet.Net. I am using SharpPcap to capture the packet and need to access the User-Agent field in the TCP packet. If I understand correctly Packet.Net is used to analyze the packet captured.…
        
        Aubrey_lab
        
- 31
 - 7
 
                    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