forked from pwnieexpress/raspberry_pwn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UNINSTALL_raspberry_pwn.sh
executable file
·52 lines (44 loc) · 2.09 KB
/
UNINSTALL_raspberry_pwn.sh
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
#!/bin/bash
# Raspberry Pwn 0.2 : A Raspberry Pi Pentesting suite by Pwnie Express
# pwnieexpress.com
# UNINSTALLER Revision 6.12.2012
echo ""
# Verify we are root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo " _____ ___ _ ___ ___ _____ _____ ___ ___ ___ ___ "
echo " | _ \ \ / / \| |_ _| __| | __\ \/ / _ \ _ \ __/ __/ __| "
echo " | _/\ \/\/ /| .\` || || _| | _| > <| _/ / _|\__ \__ \ "
echo " |_| \_/\_/ |_|\_|___|___| |___/_/\_\_| |_|_\___|___/___/ "
echo ""
echo " === Raspberry Pwn Release 0.2 UNINSTALLER === "
echo ""
echo "----------------------------------------------------------------"
echo " This UNINSTALLER will remove the Raspberry Pwn pentesting "
echo " software suite from your Raspberry Pi. "
echo ""
echo "Press ENTER to continue, CTRL+C to abort."
read INPUT
echo ""
echo "[+] Removing baseline pentesting tools/dependencies..."
aptitude -y remove nmap dsniff netcat nikto xprobe python-scapy wireshark tcpdump ettercap hping3 medusa macchanger nbtscan john ptunnel p0f ngrep tcpflow openvpn iodine httptunnel cryptcat sipsak yersinia smbclient sslsniff tcptraceroute pbnj netdiscover netmask udptunnel dnstracer sslscan medusa ipcalc dnswalk socat onesixtyone tinyproxy dmitry fcrackzip ssldump fping ike-scan gpsd darkstat swaks arping tcpreplay sipcrack proxychains proxytunnel siege sqlmap wapiti skipfish w3af libssl-dev libpcap-dev libpcre3 libpcre3-dev libnl-dev libncurses-dev subversion python-twisted-web python-pymssql git
echo "[+] Removing wireless pentesting tools..."
aptitude -y remove kismet
cd src/aircrack-ng-1.1
make uninstall
cd ../..
# Remove /pentest
echo "[+] Removing /pentest..."
rm -rf /pentest
# Restore original motd
cp src/motd.tail.original /etc/motd.tail
# Restore original pi user motd
cp src/motd.tail.original /etc/motd.tail
echo ""
echo "---------------------------------------------------------------"
echo "Raspberry Pwn Release 0.2 UNINSTALLED successfully!"
echo "---------------------------------------------------------------"
echo ""
exit 1