-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer.sh
executable file
·38 lines (30 loc) · 1.67 KB
/
installer.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
#!/bin/bash
# Ensure we are being ran as root
if [ $(id -u) -ne 0 ]; then
echo "This script must be ran as root"
exit 1
fi
# For upgrades and sanity check, remove any existing i2p.list file
rm -f /etc/apt/sources.list.d/i2p.list
# Compile the i2p ppa
echo "deb https://deb.i2p2.de/ unstable main" > /etc/apt/sources.list.d/i2p.list # Default config reads repos from sources.list.d
wget https://geti2p.net/_static/i2p-debian-repo.key.asc -O /tmp/i2p-debian-repo.key.asc # Get the latest i2p repo pubkey
apt-key add /tmp/i2p-debian-repo.key.asc # Import the key
rm /tmp/i2p-debian-repo.key.asc # delete the temp key
apt-get update # Update repos
if [[ -n $(cat /etc/os-release |grep kali) ]]
then
apt-get install libservlet3.0-java
wget http://ftp.us.debian.org/debian/pool/main/j/jetty9/libjetty9-java_9.4.14-1_all.deb
dpkg -i libjetty9-java_9.4.14-1_all.deb # This should succeed without error
apt-get install libecj-java libgetopt-java libservlet3.1-java ttf-dejavu i2p i2p-router libjbigi-jni #installs i2p and other dependencies
apt-get -f install # resolves anything else in a broken state
fi
apt-get install -y i2p-keyring #this will ensure you get updates to the repository's GPG key
apt-get install -y secure-delete tor i2p # install dependencies, just in case
# Configure and install the .deb
dpkg-deb -b kali-anonsurf-deb-src/ kali-anonsurf.deb # Build the deb package
dpkg -i kali-anonsurf.deb || (apt-get -f install && dpkg -i kali-anonsurf.deb) # this will automatically install the required packages
#Adding tor configuration
echo -e 'VirtualAddrNetwork 10.192.0.0/10\nAutomapHostsOnResolve 1\nTransPort 9040\nSocksPort 9050\nDNSPort 53\nRunAsDaemon 1' >> /etc/tor/torrc
exit 0