GithubHelp home page GithubHelp logo

php-pcap-analyzer's Introduction

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. 
 
 

php-pcap-analyzer's People

Contributors

lostbeard avatar

Stargazers

Jose Luis Sanchez Pereyra avatar

Watchers

James Cloos avatar

php-pcap-analyzer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.