Git Product home page Git Product logo

viproxy's Introduction

Viproxy 1.0

Transparent intercepting proxy in Ruby for MITM attacks.

Viproxy is forked from em-proxy

New Features

  • Log file support
  • SSL support
  • Custom digital certificate support
  • Search & Replace support for traffic manipulation

Known bugs

  • No error handling :)
  • Duplex server must be SSL enabled if connection is SSL enabled
  • Multithreads create some errors, they will be fixed after Blackhat/Defcon

Getting started

$> ruby bin/viproxy
Usage: viproxy [options]
-l, --listen [PORT]              Port to listen on
-d, --duplex [host:port, ...]    List of backends to duplex data to
-r, --relay [hostname:port]      Relay endpoint: hostname:port
-s, --socket [filename]          Relay endpoint: unix filename
-z, --ssl                        Run in SSL mode
-c, --sslcert [filename]         SSL certificate file (PEM)
-f, --logfile [filename]         Log file
-p, --regexfile [filename]       Replacement file
-v, --verbose                    Run in debug mode

$> ruby bin/viproxy -l 8080 -z -c cert.crt -f /tmp/x.log -v -d 127.0.0.1:8081 -r 127.0.0.1:8083

The above will start viproxy on port 8080, relay and respond with data from port 8083, and also (optional) duplicate all traffic to ports 8081 (and discard their responses).

Sample Search & Replace file

#Fuzzing Demo
REQ	rtf1	FUZZ 20000
#XSS injection to client requests
REQ	xsstest	<h1>Viproy Test</h1>
#Content-Length arrangements on server responses
RES	Content-Length: 3193	Content-Length: 25663
#XSS injection to server responses and client requests
BOTH	xsstest	<h1>Viproy Test</h1>

License

The MIT License - Copyright (c) 2010 Ilya Grigorik

viproxy's People

Contributors

dblock avatar dsander avatar fozavci avatar igrigorik avatar imbriaco avatar karmi avatar kostya avatar syd avatar

Watchers

 avatar  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.