-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup
59 lines (55 loc) · 1.8 KB
/
setup
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
#!/bin/sh
# This script sets up "anonymous" for Kali Linux.
echo ""
echo "ANONYMOUS SETUP FOR KALI LINUX ROLLING"
echo ""
echo "[*] Updating package list ..."
echo ""
apt update
echo ""
echo "[+] Package list updated !"
echo ""
read -p "Is Tor installed on this computer? [Y/n] (N if unsure) " tor
case $tor in
[Nn]* ) apt install tor -y; break;;
[Yy]* ) break;;
* ) echo "You didn't type Y or n, aborting!"; break;;
esac;
read -p "Is macchanger installed on this computer? [Y/n] (N if unsure) " tor
case $tor in
[Nn]* ) apt install macchanger -y; break;;
[Yy]* ) break;;
* ) echo "You didn't type Y or n, aborting!"; break;;
esac;
# Adding needed code to a Tor file
echo "[.] Copying code to Tor configuration ..."
echo 'VirtualAddrNetwork 10.192.0.0/10' >> /etc/tor/torrc
echo 'TransPort 9040' >> /etc/tor/torrc
echo 'DNSPort 53' >> /etc/tor/torrc
echo 'AutomapHostsOnResolve 1\n' >> /etc/tor/torrc
echo "[*] Done !"
# Copying files to needed locations
echo "[.] Copying files to designated locations ..."
cp anonymous /usr/sbin/anonymous
cp kali-anonymous /etc/default/kali-anonymous
echo "[*] Done !"
echo
echo "[.] chmod-ing files ..."
chmod +x /usr/sbin/anonymous
chmod +x /etc/default/kali-anonymous
echo "[*] Done !"
# Finish
echo "Install should be successful!"
echo "You can delete these install files;"
echo "they're useless now..."
echo "But you can keep update.sh."
echo "You can use anonymous by typing anonymous into the terminal"
echo "------------------------------"
echo "START: sudo anonymous start "
echo "STOP: sudo anonymous stop "
echo "STATUS: sudo anonymous status"
echo "UPDATE: sudo anonymous update"
echo "------------------------------"
echo "Install complete!"
echo "Read the info above for help to run the script ..."
echo "Report bugs to https://github.com/keeganjk/kali-anonymous/issues"