mino60

Untitled

Dec 18th, 2019
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. #*******************************************#
  3. #   E2-MyIPTV-SERVICE  By mino60            #
  4. #           17172019                        #
  5. #      Forum/Support:www.tunisia-sat.com    #      
  6. #*******************************************#  
  7.  
  8. #### EDit By RAED To DreamOS OE2.5/2.6
  9. if [ -f /var/lib/dpkg/status ]; then
  10.       WGET='/usr/bin/wget2 --no-check-certificate'
  11. else
  12.       WGET='/usr/bin/wget'
  13. fi
  14. #### End Edit
  15.  
  16. /etc/init.d/openvpn stop > /dev/null 2>&1
  17. rm -r -f /etc/openvpn; mkdir /etc/openvpn
  18. CLT='/etc/openvpn/client.conf'
  19. cd /tmp
  20. FreeServertmpa=/tmp/freeservra*
  21. FreeServertmpb=/tmp/freeservrb*
  22. FreeServertmpe=/tmp/freeservre*
  23. $WGET -q -O- --trust-server-names "https://archive.org/download/SoftCam_758/cfg.conf" --no-check-certificate > /etc/openvpn/cfg.conf
  24. #HOST
  25. HTTPSERV73="https://www.vpngate.net/en/"
  26. #TMP FILES
  27. FreeServertmpe74=/tmp/freeservre74
  28. FreeServertmpe70=/tmp/freeservre70
  29. FreeServertmpb72=/tmp/freeservrb72
  30. FreeServertmpb73=/tmp/freeservrb73
  31. FreeServertmpb74=/tmp/freeservrb74
  32. FreeServertmpb75=/tmp/freeservrb75
  33. FreeServertmpb76=/tmp/freeservrb76
  34. FreeServertmpb77=/tmp/freeservrb77
  35. FreeServertmpb78=/tmp/freeservrb78
  36. FreeServertmpb79=/tmp/freeservrb79
  37. FreeServertmpb80=/tmp/freeservrb80
  38. FreeServertmpb81=/tmp/freeservrb81
  39. FreeServertmpb82=/tmp/freeservrb82
  40. FreeServertmpb83=/tmp/freeservrb83
  41. FreeServertmpb84=/tmp/freeservrb84
  42. FreeServertmpb85=/tmp/freeservrb85
  43. FreeServertmpb86=/tmp/freeservrb86
  44. FreeServertmpb87=/tmp/freeservrb87
  45. #TMP FILES
  46. FreeServertmpa70=/tmp/freeservra70
  47. FreeServertmpa72=/tmp/freeservra72
  48. FreeServertmpa73=/tmp/freeservra73
  49. FreeServertmpa74=/tmp/freeservra74
  50. FreeServertmpa75=/tmp/freeservra75
  51. FreeServertmpa76=/tmp/freeservra76
  52. FreeServertmpa77=/tmp/freeservra77
  53. FreeServertmpa78=/tmp/freeservra78
  54. FreeServertmpa79=/tmp/freeservra79
  55. FreeServertmpa80=/tmp/freeservra80
  56. FreeServertmpa81=/tmp/freeservra81
  57. FreeServertmpa82=/tmp/freeservra82
  58. FreeServertmpa83=/tmp/freeservra83
  59. FreeServertmpa84=/tmp/freeservra84
  60. FreeServertmpa85=/tmp/freeservra85
  61. FreeServertmpa86=/tmp/freeservra86
  62. FreeServertmpa87=/tmp/freeservra87
  63. $WGET -O $FreeServertmpa73 $HTTPSERV73 > /dev/null 2>&1
  64. sed -ne '/Canada/p' $FreeServertmpa73 > $FreeServertmpb73
  65. sed -ne '/tcp/p' $FreeServertmpb73 > $FreeServertmpb74
  66. tail -n 1 $FreeServertmpb74 > $FreeServertmpb75
  67. sed -e "s/'//g" $FreeServertmpb75 > $FreeServertmpb76
  68. sed -ne 's,<a href=\([^>].*\)><img.*\([^>].*\)><img.*,\1,p' $FreeServertmpb76 > $FreeServertmpb77
  69. sed -ne 's#.*<a href=\([^>]*\).*#\1#p' $FreeServertmpb77 > $FreeServertmpb78
  70. sed 's#^#https://www.vpngate.net/en/#' $FreeServertmpb78 > $FreeServertmpb79
  71. $WGET -q -O $FreeServertmpa74 $(<freeservrb79)
  72. sed -ne 's#.*<a href="\([^<].*\)".*#\1#p' $FreeServertmpa74 > $FreeServertmpb80
  73. sed -ne '/hid/p' $FreeServertmpb80 > $FreeServertmpb81
  74. sed -i 's/amp;//g' $FreeServertmpb81
  75. tail -n 2 $FreeServertmpb81 > $FreeServertmpb82
  76. head -1 $FreeServertmpb82 > $FreeServertmpb83
  77. sed 's#^#https://www.vpngate.net#' $FreeServertmpb82 > $FreeServertmpb83
  78. sed -ne 's#.*vpngate_\.*#\1#p' $FreeServertmpb82 > $FreeServertmpb86
  79. echo $(<freeservrb86)
  80. $WGET -q -O- --trust-server-names "$(<freeservrb83)" --no-check-certificate > $FreeServertmpb84
  81. sed -i 's*#auth-user-pass*auth-user-pass /etc/openvpn/cfg.conf*g' $FreeServertmpb84
  82. cat $FreeServertmpb84 > $CLT
  83. echo "Current IP: `$WGET -qO- http://ipecho.net/plain;echo`"
  84. /etc/init.d/openvpn start > /dev/null 2>&1
  85. sleep 8;
  86. echo "New IP    : `$WGET -qO- http://ipecho.net/plain;echo`"
  87. rm -f $FreeServertmpa > /dev/null 2>&1
  88. rm -f $FreeServertmpb > /dev/null 2>&1
  89. rm -f $FreeServertmpa* $FreeServertmpb*
  90. sleep 2;
  91. echo "";
  92. echo "*******************************************";
  93. echo "* $(date +’%Y.%m.%d’) $(date +’%H:%M:%S’)                      *";
  94. echo "*                                         *";
  95. echo "*                                         *";
  96. echo "*                mino60                   *";
  97. echo "*                                         *";
  98. echo "*       https://www.tunisia-sat.com       *";
  99. echo "*******************************************";
  100. sleep 2;
  101. exit 0
Advertisement
Add Comment
Please, Sign In to add comment