Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #*******************************************#
- # E2-MyIPTV-SERVICE By mino60 #
- # 17172019 #
- # Forum/Support:www.tunisia-sat.com #
- #*******************************************#
- #### EDit By RAED To DreamOS OE2.5/2.6
- if [ -f /var/lib/dpkg/status ]; then
- WGET='/usr/bin/wget2 --no-check-certificate'
- else
- WGET='/usr/bin/wget'
- fi
- #### End Edit
- /etc/init.d/openvpn stop > /dev/null 2>&1
- rm -r -f /etc/openvpn; mkdir /etc/openvpn
- CLT='/etc/openvpn/client.conf'
- cd /tmp
- FreeServertmpa=/tmp/freeservra*
- FreeServertmpb=/tmp/freeservrb*
- FreeServertmpe=/tmp/freeservre*
- $WGET -q -O- --trust-server-names "https://archive.org/download/SoftCam_758/cfg.conf" --no-check-certificate > /etc/openvpn/cfg.conf
- #HOST
- HTTPSERV73="https://www.vpngate.net/en/"
- #TMP FILES
- FreeServertmpe74=/tmp/freeservre74
- FreeServertmpe70=/tmp/freeservre70
- FreeServertmpb72=/tmp/freeservrb72
- FreeServertmpb73=/tmp/freeservrb73
- FreeServertmpb74=/tmp/freeservrb74
- FreeServertmpb75=/tmp/freeservrb75
- FreeServertmpb76=/tmp/freeservrb76
- FreeServertmpb77=/tmp/freeservrb77
- FreeServertmpb78=/tmp/freeservrb78
- FreeServertmpb79=/tmp/freeservrb79
- FreeServertmpb80=/tmp/freeservrb80
- FreeServertmpb81=/tmp/freeservrb81
- FreeServertmpb82=/tmp/freeservrb82
- FreeServertmpb83=/tmp/freeservrb83
- FreeServertmpb84=/tmp/freeservrb84
- FreeServertmpb85=/tmp/freeservrb85
- FreeServertmpb86=/tmp/freeservrb86
- FreeServertmpb87=/tmp/freeservrb87
- #TMP FILES
- FreeServertmpa70=/tmp/freeservra70
- FreeServertmpa72=/tmp/freeservra72
- FreeServertmpa73=/tmp/freeservra73
- FreeServertmpa74=/tmp/freeservra74
- FreeServertmpa75=/tmp/freeservra75
- FreeServertmpa76=/tmp/freeservra76
- FreeServertmpa77=/tmp/freeservra77
- FreeServertmpa78=/tmp/freeservra78
- FreeServertmpa79=/tmp/freeservra79
- FreeServertmpa80=/tmp/freeservra80
- FreeServertmpa81=/tmp/freeservra81
- FreeServertmpa82=/tmp/freeservra82
- FreeServertmpa83=/tmp/freeservra83
- FreeServertmpa84=/tmp/freeservra84
- FreeServertmpa85=/tmp/freeservra85
- FreeServertmpa86=/tmp/freeservra86
- FreeServertmpa87=/tmp/freeservra87
- $WGET -O $FreeServertmpa73 $HTTPSERV73 > /dev/null 2>&1
- sed -ne '/Canada/p' $FreeServertmpa73 > $FreeServertmpb73
- sed -ne '/tcp/p' $FreeServertmpb73 > $FreeServertmpb74
- tail -n 1 $FreeServertmpb74 > $FreeServertmpb75
- sed -e "s/'//g" $FreeServertmpb75 > $FreeServertmpb76
- sed -ne 's,<a href=\([^>].*\)><img.*\([^>].*\)><img.*,\1,p' $FreeServertmpb76 > $FreeServertmpb77
- sed -ne 's#.*<a href=\([^>]*\).*#\1#p' $FreeServertmpb77 > $FreeServertmpb78
- sed 's#^#https://www.vpngate.net/en/#' $FreeServertmpb78 > $FreeServertmpb79
- $WGET -q -O $FreeServertmpa74 $(<freeservrb79)
- sed -ne 's#.*<a href="\([^<].*\)".*#\1#p' $FreeServertmpa74 > $FreeServertmpb80
- sed -ne '/hid/p' $FreeServertmpb80 > $FreeServertmpb81
- sed -i 's/amp;//g' $FreeServertmpb81
- tail -n 2 $FreeServertmpb81 > $FreeServertmpb82
- head -1 $FreeServertmpb82 > $FreeServertmpb83
- sed 's#^#https://www.vpngate.net#' $FreeServertmpb82 > $FreeServertmpb83
- sed -ne 's#.*vpngate_\.*#\1#p' $FreeServertmpb82 > $FreeServertmpb86
- echo $(<freeservrb86)
- $WGET -q -O- --trust-server-names "$(<freeservrb83)" --no-check-certificate > $FreeServertmpb84
- sed -i 's*#auth-user-pass*auth-user-pass /etc/openvpn/cfg.conf*g' $FreeServertmpb84
- cat $FreeServertmpb84 > $CLT
- echo "Current IP: `$WGET -qO- http://ipecho.net/plain;echo`"
- /etc/init.d/openvpn start > /dev/null 2>&1
- sleep 8;
- echo "New IP : `$WGET -qO- http://ipecho.net/plain;echo`"
- rm -f $FreeServertmpa > /dev/null 2>&1
- rm -f $FreeServertmpb > /dev/null 2>&1
- rm -f $FreeServertmpa* $FreeServertmpb*
- sleep 2;
- echo "";
- echo "*******************************************";
- echo "* $(date +ā%Y.%m.%dā) $(date +ā%H:%M:%Sā) *";
- echo "* *";
- echo "* *";
- echo "* mino60 *";
- echo "* *";
- echo "* https://www.tunisia-sat.com *";
- echo "*******************************************";
- sleep 2;
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment