joyes974 / php-pcap-analyzer Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/php-pcap-analyzer
Automatically exported from code.google.com/p/php-pcap-analyzer
The goal of this project is to provide a PHP script that can analyze pcap (packet capture) files and return useful information. Currently supports HTTP GET, POST, and response parsing. JPEG and GIF HTTP responses are displayed inline. POST data is separated into one key=value pair per line. POST data is shown in red, GET data in green, and HTTP response data in blue. Web Use: * Copy index.php and the test_data folder (found in Source->Browse->/svn/trunk) to a folder (like /pcapa) in your web server's path. * Change $pcapdir in index.php to your .pcap file folder. Optionally skip this step to use test data. * The script will create output folders and files in the directory it resides. !Important: Make sure it has write permissions in that folder. * Goto (Example) yourserver/pcapa/index.php and select a pcap file from the list. * The script is a little slow. On an iPad (first generation) with lighttpd it takes about 20 - 30 seconds per megabyte. * I don't recommend using large pcap files until this is improved. Command Line Use: * In progress... Tested on: * iPad with lighttpd * Ubuntu with Apache Plans: * Add incremental parsing of pcap files. In other words; when a pcap file is done being parsed, a record is made noting the position of the last record's ending position to allow a quick analyzer restart (from that position) when more packets are added. Any decoded stream results are saved to an output htm file. * Add more data filters. * Improve interface. AJAX would be nice. * Command line version. Known Bugs: * No security is built into this script. Do not make this script available on a web facing server.
Added png & javascript support
Added gzip decode support :3
Original issue reported on code.google.com by [email protected]
on 13 Mar 2012 at 10:12
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.