-
Notifications
You must be signed in to change notification settings - Fork 0
/
IPSecAS
43 lines (41 loc) · 906 Bytes
/
IPSecAS
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
#!/bin/bash
#width-height
# AnonSurf -
# Define GPIO pins if used
ip=1
# OK button return code =0 , all others =1
while [ $ip -eq 1 ]; do
ans=$(zenity --info --title 'AnonSurf' \
--text="IP currently:"$(wget -qO- ipinfo.io/ip) \
--ok-label Back \
--extra-button REFRESH \
--extra-button START \
--extra-button STOP \
--extra-button CHANGE \
--extra-button STATUS \
)
ip=$?
echo "${ip}-${ans}"
echo $ans
if [[ $ans = "REFRESH" ]]
then
echo "REFRESHING IP"
wget -qO- ipinfo.io/ip;
elif [[ $ans = "START" ]]
then
echo "Starting VPN SEARCH"
anonsurf start;
elif [[ $ans = "STOP" ]]
then
echo "DEACTIVATING VPN"
anonsurf stop;
elif [[ $ans = "CHANGE" ]]
then
echo "CHANGING IP and SWITCHING VPN SERVICES"
anonsurf changeid;
elif [[ $ans = "STATUS" ]]
then
echo "LIVE.."
nyx;
fi
done