forked from suhailsherif/IITG-Transparent-Proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
easyStart.sh
executable file
·29 lines (25 loc) · 1014 Bytes
/
easyStart.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
#!/bin/bash
echo "This is the easy version of starting up the transparent proxy."
if [ ! -f ./redsocks/redsocks ]
then
echo "The backend needs to compiled. This script will attempt that now."
echo "In case make fails, you will need to compile libevent. I've included the tar for it. Extract it and use the readme file. "
make -C ./redsocks/
fi
echo "You will need to give the sudo password when requested."
# Comment this section out and use the arugements directly if you prefer that. I've given an example in the next commented section
read -p "Enter the proxy address: " proxy
read -p "Enter the proxy port: " port
read -p "Enter your proxy username: " username
read -s -p "Enter your proxy password: " password
echo " "
# Uncomment this section to use details stored in the file
#proxy=202.141.80.22
#port=3128
#username=<username>
#password=<passwd>
sudo echo "Got sudo rights"
./script start &
./redsocksConfig.sh $proxy $port $username $password &
sudo python fakeDNS.py &
echo $! > pidfile.temp