Giter VIP home page Giter VIP logo

mitmalltheonions's Introduction

MitmAllTheOnions

An onion HTTP proxy that replaces TOR links with ones generated by this tool. After using this tool, you'll want to double check your onion URLs more than ever.

How it works

MitmAllTheOnions combines mitmproxy and mkp224o to generate mirrored onion links on the fly. When a user browses a link controlled by this tool, the tool will return the page from the corresponding original onion link (like a reverse proxy), except the page returned will have its onion links replaced with ones controlled by this tool.

The replacement links would appear similar to the original links because of mkp224o. One of the docker containers is a redis database that stores a mapping from original onion links to ones controlled by this tool.

Usage

To run this tool, simply edit the .env file with your preferences and then run with docker compose.

git clone https://github.com/Cabbache/MitmAllTheOnions
cd MitmAllTheOnions
nano .env
docker compose up

Dependencies

  • docker
  • docker compose

Configuration (.env file)

There are 3 variables that you could modify in this file

  • ROOT - This is the onion domain to start mirroring from
  • NUMCHARS - The number of initial characters to spoof when mirroring a domain. Not recommended more than 4
  • NUMINSTANCES - The number of tor instances that will handle the requests to the hidden services. The number of hidden services is divided equally between instances

Modifying http responses

The tool already modifies the onion links in HTML and Location header of the responses. If you need to modify anything else you can edit mitmproxy/scripts/mitm.py

Limitations and Backlog

  • Onion sites with a lot of onion links cause the tor instances to use a lot of CPU
  • Make gatewway errors nicer
  • Fix root chrooted volumes
  • More meaningful logs
  • Health check on the hidden services, make sure all tor instances are ready

mitmalltheonions's People

Contributors

cabbache avatar

Stargazers

Giorgio Grigolo avatar

Watchers

 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.