Skip to content

Implementation of Man-in-the-Middle (MiTM) Router / Access Point (AP). Great for embedded, IoT, or simlar penetration tests, hacks or research. Creates all interfaces and configurations on the fly, integrates other functionality to make tls stripping, android use or burp suite use more streamlined.

License

Notifications You must be signed in to change notification settings

GainSec/gainsec-in-the-middle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GainSec in the Middle (G.I.T.M)

Carrier

  • Current Version: 1.0

Description

Implementation of Man-in-the-Middle (MiTM) Router / Access Point (AP). Great for embedded, IoT, or simlar penetration tests, hacks or research. Creates all interfaces and configurations on the fly, integrates other functionality to make tls stripping, android use or burp suite use more streamlined.

Prerequisites

sudo apt update sudo apt install hostapd dnsmasq sslsplit tcpdump iptables iw brctl openssl

Out of the box:

  • Checks if wireless is soft-blocked
  • Access Point Creation (wlan0_ap) via hostapd
  • DHCP + DNS via dnsmasq
  • Bridges vAP (br0) enables IP forwarding & NAT via iptables
  • Tears it all down smoothly; a must for troubleshooting
  • Outputs and logs almost everything
  • Aggregates all relevant logs into one directory
  • Prints (and logs) when new devices connect to the AP including at what date, time, MAC address and IP they were assigned
  • Optional: Generates CA * Key if missing, configures HTTPS redirection to local port, configures and starts sslsplit
  • Optional: Dump traffic to pcap via tcpdump
  • Optional: Live-view traffic via tcpdump
  • Optional: Preps cert for Android system import
  • Optional: Preps cert for Burp Suite import
  • And More

Args:

  • --up - Generates, Creates, Starts all the MITM processes and services
  • --down - Securely and smoothly tears down all the MITM processes and services
  • --android - Generates (If doesn't exist) and renames cert for Android system import
  • --burp - Generates (If doesn't exist) .p12 and PEM bundle for Burp Suite
  • --dump - Dumps traffic to pcap
  • --live - Displays live traffic
  • --strip - Enables SSL/TLS Interception

Running with the Android and Dump args, showing how it prints (and logs) when devices connect to the AP

android-dump-mac

Running with the Burp and Live args, showing how it prints live traffic and prepares the cert for import into Burp Suite.

live-burp

Running with the Strip arg, enabling TLS/SSL interception.

strip

Smoothly tearing it all down.

teardown

Authors

Acknowledgments

About

Implementation of Man-in-the-Middle (MiTM) Router / Access Point (AP). Great for embedded, IoT, or simlar penetration tests, hacks or research. Creates all interfaces and configurations on the fly, integrates other functionality to make tls stripping, android use or burp suite use more streamlined.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages