-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwpr.sh
161 lines (161 loc) · 4.6 KB
/
wpr.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
#!/bin/bash
WannaCheckCodeBoi5='\e[0;36m'
WannaCheckCodeBoi1='\e[96m'
WannaCheckCodeBoi4='\e[0;32m'
WannaCheckCodeBoi0='\e[1;32m'
WannaCheckCodeBoi3='\e[1;37m'
WannaCheckCodeBoi8='\e[1;31m'
WannaCheckCodeBoi2='\e[1;33m'
WannaCheckCodeBoi7='\e[1;34m'
Escape="\033";
WannaCheckCodeBoi3="${Escape}[0m";
RedF="${Escape}[31m";
GreenF="${Escape}[32m";
LighGreenF="${Escape}[92m"
YellowF="${Escape}[33m";
BlueF="${Escape}[34m";
CyanF="${Escape}[36m";
Reset="${Escape}[0m";
trap ctrl_c INT
ctrl_c() {
clear
echo -e $WannaCheckCodeBoi2"[*] (Ctrl + C ) Detected, Trying To Exit... "
echo -e $WannaCheckCodeBoi8"[*] Terminating... "
windscribe disconnect
sleep 1
echo ""
clear
echo -e $WannaCheckCodeBoi7"[*] Thanks For Using WPR"
exit
}
function checkinternet()
{
ping -c 1 google.com > /dev/null 2>&1
if [[ "$?" != 0 ]]
then
echo -e $WannaCheckCodeBoi5 " Checking For Internet: ${RedF}FAILED"
echo
echo -e $WannaCheckCodeBoi8 "This Script Needs An Active Internet Connection"
echo
echo -e $WannaCheckCodeBoi2 " Windscribe Proxy Rotator Exit"
echo && sleep 0.5
exit
else
echo -e $WannaCheckCodeBoi5 " Checking For Internet: ${LighGreenF}CONNECTED"
fi
}
checkinternet
sleep 0.5
echo ""
echo -e $WannaCheckCodeBoi2 "Checking Dependencies"
echo ""
which figlet > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
echo -e $WannaCheckCodeBoi4 "[ ✔ ] Figlet............................${LighGreenF}[ found ]"
which figlet > /dev/null 2>&1
sleep 0.5
else
echo ""
echo -e $WannaCheckCodeBoi8 "[ X ] Figlet -> ${RedF}not found! "
sleep 0.5
echo -e $WannaCheckCodeBoi2 "[ ! ] Installing Figlet "
sleep 0.5
echo -e $WannaCheckCodeBoi4 ""
sudo apt-get install figlet -y
clear
echo -e $WannaCheckCodeBoi7 "[ ✔ ] Done installing .... "
which figlet > /dev/null 2>&1
fi
which lolcat > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
echo -e $WannaCheckCodeBoi4 "[ ✔ ] Lolcat............................${LighGreenF}[ found ]"
which lolcat > /dev/null 2>&1
sleep 0.5
else
echo ""
echo -e $WannaCheckCodeBoi8 "[ X ] Lolcat -> ${RedF}not found! "
sleep 0.5
echo -e $WannaCheckCodeBoi2 "[ ! ] Installing Lolcat "
sleep 0.5
echo -e $WannaCheckCodeBoi4 ""
sudo apt-get install ruby
cd Downloads
git clone https://github.com/busyloop/lolcat.git
cd lolcat/bin
sudo gem install lolcat
clear
echo -e $WannaCheckCodeBoi7 "[ ✔ ] Done installing .... "
which lolcat > /dev/null 2>&1
fi
which zenity > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
echo -e $WannaCheckCodeBoi4 "[ ✔ ] Zenity............................${LighGreenF}[ found ]"
which zenity > /dev/null 2>&1
sleep 0.5
else
echo ""
echo -e $WannaCheckCodeBoi8 "[ X ] Zenity -> ${RedF}not found! "
sleep 0.5
echo -e $WannaCheckCodeBoi2 "[ ! ] Installing Zenity "
sleep 0.5
echo -e $WannaCheckCodeBoi4 ""
sudo apt-get install zenity -y
clear
echo -e $WannaCheckCodeBoi7 "[ ✔ ] Done installing .... "
which zenity > /dev/null 2>&1
fi
which windscribe > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
echo -e $WannaCheckCodeBoi4 "[ ✔ ] Windscribe............................${LighGreenF}[ found ]"
which windscribe > /dev/null 2>&1
sleep 0.5
else
echo ""
echo -e $WannaCheckCodeBoi8 "[ X ] Windscribe -> ${RedF}not found! "
sleep 0.5
echo -e $WannaCheckCodeBoi2 "[ ! ] Install It From https://windscribe.com/guides/linux"
echo -e $WannaCheckCodeBoi2 "[ ! ] Login Your Account by command - windscribe login And Run This Script Again"
echo -e $WannaCheckCodeBoi8 "[ ! ] Terminating The Script"
exit 1
sleep 0.5
which windscribe > /dev/null 2>&1
fi
clear
figlet "Windscribe" |lolcat -a -d 3
figlet "Proxy" |lolcat -a -d 3
figlet "Rotator" |lolcat -a -d 3
echo -e $WannaCheckCodeBoi6 " BY ABHI CRACKER (SAB TEAM) "
echo ""
echo -e $WannaCheckCodeBoi8 " (USE Ctrl+C to Stop The Script) "
echo ""
windscribe account
echo ""
echo -e $WannaCheckCodeBoi7 "If No INFO Is Shown Here"
echo -e $WannaCheckCodeBoi7 "Stop This Script By Ctrl +C"
echo -e $WannaCheckCodeBoi7 "Login And Run Again This Script"
echo ""
WannaCheckCodeBoi6=$(zenity --title "✯ TIME DURATION ✯" --text "example: 10" --entry --entry-text "" --width 500 )
WannaCheckCodeBoi9=$(zenity --title "✯ PROXY COUNTRY ✯" --text "example: US" --entry --entry-text "" --width 500 )
echo ""
echo "!!! STARTED !!!"|lolcat -a -d 10
echo ""
echo ""
WannaCheckCodeBoi10=1
while [ $WannaCheckCodeBoi10 -le 999999999 ]
do
echo " # $WannaCheckCodeBoi10"
WannaCheckCodeBoi10=$(( $WannaCheckCodeBoi10 + 1))
echo ""
windscribe connect $WannaCheckCodeBoi9
echo ""
echo "!!! WAIT START !!!"|lolcat -a -d 5
echo "Duration - $WannaCheckCodeBoi6 Seconds"
while true;do echo -n .;sleep 1;done &
sleep $WannaCheckCodeBoi6
kill $!; trap 'kill $!' SIGTERM
echo ""
echo "!!! WAIT STOP !!!"|lolcat -a -d 5
echo ""
windscribe disconnect
echo ""
done