Code Monkey home page Code Monkey logo

replayproxy's Introduction

Origin

This project is originally from https://code.google.com/p/replayproxy/ by Armin Buescher.

This fork fixes some bugs & provides more details for usage & installation.

Summary

replayproxy allows you to "re-live" a HTTP session which has been captured in a .pcap file (e.g. in Wireshark). It parses the HTTP streams, caches them, and starts a HTTP proxy. It then replies to HTTP requests with the matching response from the .pcap, ignoring all other requests.

Usage

replayproxy.py [-h] [-H HOST] [-p PORT] [-v[v]] FILENAME

Arguments:

  • -h|--help Show usage information
  • -H HOST IP to start the proxy on (DEFAULT: 127.0.0.1)
  • -p PORT Port to listen on (DEFAULT: 3128)
  • -v[v] Verbose output (DEFAULT: log only ERRORs, -v = INFO, -vv = DEBUG)
  • FILENAME Path to the .pcap file to parse (required)

Normal usage:

  • obtain a .pcap file containing the captured HTTP session (e.g. using tcpdump or Wireshark)
  • run replayproxy to start the HTTP proxy (see details above)
  • configure your browser to use the proxy settings (IP & port) on which replayproxy is running
  • browse to the site that was captured

To get you started test.pcap in this repository contains a capture of a visit to http://www.honeynet.org

Dependencies and Installation

For detailed installation instructions, see the INSTALL.md file

replayproxy's People

Contributors

sparrowt avatar jamu avatar

Watchers

James Pratt avatar

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.