packet-capture

Sample application to read and inspect packets on a network?

Hi, I'm looking to write a quick program to read and inspect packets of a certain format and then blacklist ips with a certain style of packet-traffic (packet patterns of an attack against the network). Are there decent samples of reading and inspecting packet flow on a network? ...

determining HTTP packets

Greeting, how is possible to determine from captured packets using sharppcap if the packet is http packet or not? and can we determine frpm TCP packets if the packet is HTTP or not? ...

Interpreting the Packets using sharppcap

Is it possible to interpret every coming packets using sharppcap? ...

SharpPcap - A Packet Capture problem to extact information from the packet

I'm using SharpPcap to capture packets. I'm trying to get Traffic Class value and I'm using udp.ipv6.TrafficClass.ToString(). the problem that I'm getting this exception: Object reference not set to an instance of an object. private void packetCapturingThreadMethod() { Packet packet = null; while ((packet = device.GetNextPack...

Debug: How can i look at my browsers output?

I have this question http://stackoverflow.com/questions/2688464/ajax-request-from-net-give-me-unexpected-results and i am using tamper data but i am sure firefox is formatting the data in ways i dont understand. Is there a tool i can use to check firefox post request? and perhaps my C# post request? ...

How can I edit a js file sent by the server before it gets to my browser?

During a normal browsing session I want to edit a specific javascript file before the browser receives since once it gets there it's impossible to edit. Is there are any tool for this? For what I need it I can't just save it and edit it on my disk. I'm ready to learn how to program it myself but if anyone can point out more or less what...

What's the BPF for HTTP?

The definition can be seen here. The candidate answer may be tcp and dst port 80,but can tcp and dst port 80 guarantee it's HTTP traffic and includes all HTTP traffic? It seems not,because some site can be visited by specifying a different port other than 80 this way: http://domain.name:8080 So my question is: what's the exact BPF f...

Does libpcap get a copy of the packet ?

Does libpcap get a copy of the packet or the actual packet? By copy, I mean: the application using libpcap gets packet A, and the kernel also gets packet A. By actual, I mean: only the application using libpcap gets packet A, but the kernel didn't get it. ...

Capturing network traffic on Linux

Question: I have one Windows laptop, one Linux laptop and a wireless router. Now I want to "investigate" the hotmail/windows live protocol. What I want to do is route network traffic from the windows laptop via ethernet to the linux laptop, capture it on the Linux computer, forward it wirelessly to the router, receive the hotmail respon...

extract payload from tcpflow output

Tcpflow outputs a bunch of files, many of which are HTTP responses from a web server. Inside, they contain HTTP headers, including Content-type: , and other important ones. I'm trying to write a script that can extract just the payload data (i.e. image/jpeg; text/html; et al.) and save it to a file [optional: with an appropriate name an...

snmp-adaptor problem: why the packets of community is not conformed between snmp client and snmp agent

Now I configured snmp-adaptor of jboss community to get/send snmp trap. I modified the ReadCommunity attribute of jboss-service.xml. That is I set the password to get/send trap. And I found the new ReadCommunity really works. I will get snmp trap only when I used the new ReadCommunity to query. But when I capture the packet send between...

Capture server-client communication with tcpdump

I wrote a simple server and client apps, where I can switch between TCP, DCCP and UDP protocols. The goal was to transfer a file from the one to the other and measure the traffic for each protocol, so I can compare them for different network setups (I know roughly what the result should be, but I need exact numbers/graphs). Anyway after ...

How to forward wireless packet to ethernet interface in windows?

Hi, How to forward wireless packet to ethernet interface in windows? ...

H.225 User Information Packet Parsing

I'm writing some code using PacketDotNet and SharpPCap to parse H.225 packets for a VOIP phone system. I've been using Wireshark to look at the structure, but I'm stuck. I've been using This as a reference. Most of the H.225 packets I see are user information type with an empty message body and the actual information apparently shows up...

how to customize compareTo method to consider both direction flow

if I need to customize my code with this logic if this.srcAddr=other.srcAddr or this.src.Addr = other.sdstAddr this.srcPort=other.srcPort this.srcPort=other.dstPort because I am going to consider bi-directional flow, a packet from source to destination and a packet from destination to source belong to a flow. How should I change my c...

what should i learn and look for if i like to build traffic shaper and analizer

i like to add and build something like WIPFW but with traffic shaper option what should i learn in windows driver programing ? is there any code wrappers that can make it easier to program drivers stuff? ...

How do I Control a Device’s Embedded Control Software in C# using HTTP?

I have a piece of hardware with an embedded user control accessed by typing the device's IP Address into a web browser. The device is connected directly to my PC via x-over ethernet cable and static IP's. I need to integrate the control of the device into my C# application. My thought was to use a packet sniffer to monitor the traffic ...

Capturing SMTP packets with SharpPcap

Hello.I wrote an application that captures packets, all is well with TCP, UDP. But SMTP packets are not captured. Is it possible(with SharpPcap)? I would like some example. Thanks ...

linux editor similar to notepad++ for packet captures

I am looking for a very specific functionality which Notepad++ has in a linux text editor: So you have a spiffy packet from tcpdump. Notepad++ allows you to easily strip away the left hex via alt+select and then delete. Some short replace spaces and line returns and you can end up with... (see below the capture) 21:43:31.790123 IP ...

How do I programatically collect packets from passively sniffing?

I want to test the vulnerability of the server I just wrote against man in the middle attacks. How (on Mac OS X) do I analyze packets. (I'll be checking where they are going, pulling information from if they are heading to my server, and seeing what all is available) Then I'll figure out a way to encrypt everything... but first things...