#HTTP packet reader
This is a job for the High Performance Computing and Networking research group at the Universidad Autonoma de Madrid The aim of the application is to show the response times of HTTP requests. Afterwards these data are plotted to analyze the HTTP traffic and improve its behaviour.
Yes, some of them indeed. This application uses glibC and libnids libraries to make the development easier to do.
You can send me an email to this address: carlosvega@gmx.es
It uses libnids, libnet, libpcap and glibc libraries.
Libnids and libnet are included with the installer.
If you use Fedora you need make sure these packets are installed:
- make
- gcc
- glib2-devel libpcacp-devel
- And it would be fine if you also install kernel-devel and kernel-headers
If you use Ubuntu you need make sure these packets are installed:
- libpcap-dev
- libglib2.0-dev
Dependency tree
hope
||
glibc——||——libnids
||
libpcap——||——libnet
||
If you want the shell line to install these packets use this one: sudo yum install kernel-devel kernel-headers make gcc glib2-devel libpcacp-devel
I have created an installer. These are the instructions:
- Check if you fulfill the dependencies requirements at the depenencies chapter above.
- You just need to download installer.7z (7z have a really high compression ratio, you must try it!)
- Uncompress it
- Do sh install.sh
- ./hope and follow the instructions
- Now it prints the request and response in pairs, as shows below, even if there is another request before the response for the first request:
#2 GET 192.168.1.136:58916 192.168.1.22:80 2012-09-26 17:06:41 662744
#3 DATA 192.168.1.236.22:80 192.168.1.136:58916 2012-09-26 17:06:41 965271 0.302527
- Small changes
- I've created an installer, see installation chapter above.
- Added trash collector (Every 10 seconds)
- Added progress bar (Every 0.5 seconds)
- Added array of (request/responses) instead of double linked list
- Prints timestamps in UTC
- Discards the response's data (Memory Optimization)
- (SOLVED) For some reason libnids library doesn't call the TCP callback function when a DATA packet arrives.
I don't know if is it a PCAP file problem or just something I'm doing wrong. Still working on it. SOLVED: Is just because libnids discard packets with wrong checksum.
- Fix the above problems.
- Try the trash collector with big fat pcap files
I got to lunch, see you later.