Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrexodia/haxxmap
Some simple go tools to perform a Man-in-the-middle (MITM) attack on your IMAP server in case you forgot your password.
https://github.com/mrexodia/haxxmap
Last synced: 12 days ago
JSON representation
Some simple go tools to perform a Man-in-the-middle (MITM) attack on your IMAP server in case you forgot your password.
- Host: GitHub
- URL: https://github.com/mrexodia/haxxmap
- Owner: mrexodia
- License: mit
- Created: 2018-10-14T13:42:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-14T13:42:51.000Z (about 6 years ago)
- Last Synced: 2024-10-13T01:10:29.594Z (27 days ago)
- Language: Go
- Size: 5.86 KB
- Stars: 64
- Watchers: 5
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-network-stuff - **51**星 - in-the-middle (MITM) attack on your IMAP server in case you forgot your password. (<a id="42f9e068b6511bcbb47d6b2b273097da"></a>未分类 / <a id="3bd67ee9f322e2c85854991c85ed6da0"></a>投毒&&Poisoning)
README
# 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](https://github.com/coredns/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!