sniffer

help using pcap library to sniff packets

i am using pcap sample codes to create my own sniffer. i downloaded their sample sniffer and its working on windows but not on linux. i am using gcc compiler on both machines, and i have only pcap.h included. the error is : dereferencing pointer to incomplete type. the netmask is causing the error. the netmask is the mask of the first ad...

PCAP Web Service Usage Logging for Dummies

I've been assigned the task (for work) of working with PCAP for the first time in my life. I've read through the tutorials and have hacked together a real simple capture program which, it turns out, isn't that hard. However, making use of the data is more difficult. My goal is to log incomming and outgoing web service requests. Are t...

can I see all SQL statements sent over an ODBC connection?

I'm working with a third-party application that uses ODBC to connect to, and alter, a database. During certain failure modes, the end-results are not what I expect. To understand it better, I'd like some way of inspecting all the statements sent to the database. Is there a way to do this with ODBC? I know with JDBC I could use http://ww...

Writing an http sniffer (or any other application level sniffer)

Dear all, I am trying my hands understanding PCAP libraries. I am able to apply a filter and get the TCP payload at port 80. But what next ? How can I read the HTTP data - suppose I want to know the "User Agent" field value in the http header..how should I proceed ? I have searched the website (and googled a lot too), and could find a re...

Reconstructing data from PCAP sniff

Hi everyone !! I am trying to sniff HTTP data through libpcap and get all the http contents (header+payload) after processing the TCP payload. As per my discussion at http://stackoverflow.com/questions/2905430/writing-an-http-sniffer-or-any-other-application-level-sniffer , I am facing problems due to fragmentation - I need to reconstr...

Detect if website visitor has toolbars installed eg. Google toolbar using javascript

I am working on an online education website that frequently uses pop up windows. This is part of a learning management system from a third party provider so not possible to change the way this works. We get lots of helpdesk calls with users stuggling with popup blockers - in their OS, browser settings and additional toolbars. I am us...

Writing email sniffer

Hello, I am interested in writing an email sniffer that saves all emails sent via web based clients to hd, but I can't work out how to do this. How can I catch HTTPS mail before it is encrypted? I would really appriciate some useful info. I cannot find anything information on the web. There's a program called HTTP Analyzer V5 that does ...

How does HTTP Analyzer work?

Halo, i am interest in methods, which http analyzer uses to capture data. I would like to write program which saves emails sent via web based clients. The problem is https and HTTP Analyzer solves it, but i dont know how. I got one interesting answer on my question before, but it doesnt reveal as much as i would like to know. Progra...

How to sniff im comunicaton?

I would like to write communication sniffer for some im, like icq or msn. Can you please help me how to start? its quite hard to find useful info how to do this. How should i start? i know that there is winpcap library for windows that is good for packet sniffing. If you could me give som advice, i would appriciate it. THX ...

What language should we use to let people extend our terminal/sniffer program?

Hello, We have a very versatile terminal/sniffer application which can do all sorts of things with TCP, UDP and serial connections. We are looking to make it extensible -- i.e, allow people to write their own protocol parsers, highlighters, etc. We created a C-like language for extending the product, and then discovered that for some ...

Sniffer for flash application.

Hi, I am searching an addin for firefox or any other software to sniff trafic between flash application and server side. Any suggestion? ...

Is there a program for sniffering physical layer?

Hi! Is there any software sniffer which is able to capture physical layer? ...

Packet sniffer socket exception

Heya, On the following code Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.IP); s.Bind(new System.Net.IPEndPoint(IPAddress.Parse("127.0.0.1"),0)); s.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.HeaderIncluded, true); byte[] bin = new byte[4]{1, 0, 0, 0}; ...

Capturing and assembling TCP streams with libnids

Hello, I've been writing a simple sniffer tool. I started out with libpcap, but then realized it would be useful to keep track of TCP stream information, so I began reading about and experimenting with libnids. It's a great tool, however it does not create a new record in its internal hash table of streams if it does not witness the T...