GithubHelp home page GithubHelp logo

explorer1092 / haxxmap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrexodia/haxxmap

0.0 1.0 0.0 6 KB

Some simple go tools to perform a Man-in-the-middle (MITM) attack on your IMAP server in case you forgot your password.

License: MIT License

Go 100.00%

haxxmap's Introduction

haxxmap

Some simple go tools to perform a Man-in-the-middle (MITM) attack on your IMAP server in case you forgot your password.

Use case

I forgot the password to my email account, but on my iPhone Mail was still working fine. The idea is to proxy the IMAP server and retrieve the password from there.

Project structure

client is an example client for local testing (just displays the subjects of the 4 latest messages).

dns contains the CoreDNS configuration file to redirect imap.example.com to an IP in the local network.

proxy contains the IMAP proxy used to retreive the password.

server contains a test server.

Setting up

The first step is to create a self-signed certificate for imap.example.com and add it as a trusted root on the iPhone. For this purpose a website like http://www.selfsignedcertificate.com will do! To add a certificate you have to send it to your phone (with AirDrop for example), then click Install. After that go to Settings -> General -> About -> Certificate Trust Settings and flick the checkbox next to imap.example.com.

Next up is configuring the DNS. You can use sudo coredns from the dns folder and everything should work (you might have to change the local IP and domain to match your details). Then manually configure DNS on the phone to point to your server (DNS requests to other domains will be resolved/cached normally).

Now just do sudo go run proxy.go imap.example.com:993 cert.pem cert.key from the proxy folder to start the IMAP server.

Getting the password

Simply go to the Mail app and refresh. You should see the password in the IMAP proxy console!

haxxmap's People

Contributors

mrexodia avatar

Watchers

James Cloos 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.