fenix_of_fire

This script automates the downloading of vpn's free from vpn

Jan 13th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.60 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ####----All these commands were tested on kali linux 2.0 debian jessie----######
  4.  
  5. clear;
  6. echo "_welcome the VPNenter v1.0"
  7. printf "\n\n"
  8. printf "please enter the option: \n"
  9. printf " 1 > download vpnbook\n"
  10. printf " 2 > view acess\n";
  11. read a0997b;
  12. if [ "$a0997b" = "1" ]; then
  13. clear;
  14. curl www.vpnbook.com > FOvpn.txt;
  15. clear;
  16. echo "please select the country: "
  17. echo
  18. echo "US1 > 1"
  19. echo "US2 > 2"
  20. echo "CA canada > 3"
  21. echo "DE germany > 4"
  22. read c0997d;
  23. elif [ "$a0997b" = "2" ]; then
  24. clear;
  25. curl www.vpnbook.com > FOvpn.txt;
  26. clear;
  27. echo -e "------------------\n------Access------\n------------------"
  28. cat FOvpn.txt | grep "Username" |cut -d">" -f3 | cut -d"<" -f1 | head -n1
  29. echo
  30. cat FOvpn.txt | grep "Password" |cut -d">" -f3 | cut -d"<" -f1 | head -n1
  31. echo
  32. rm -rf FOvpn.txt
  33. else
  34. exit;
  35. fi
  36. if [ "$c0997d" = "1" ]; then
  37. clear;
  38. e0997f="$(cat FOvpn.txt | grep "/free" | grep "Server #3" | cut -d'"' -f4)"
  39. g0997h="$(echo "www.vpnbook.com""$e0997f")"
  40. wget $g0997h;
  41. clear;
  42. echo "Success !"
  43. echo -e "------------------\n------Access------\n------------------"
  44. cat FOvpn.txt | grep "Username" |cut -d">" -f3 | cut -d"<" -f1 | head -n1
  45. echo
  46. cat FOvpn.txt | grep "Password" |cut -d">" -f3 | cut -d"<" -f1 | head -n1
  47. echo
  48. rm -rf FOvpn.txt
  49. elif [ "$c0997d" = "2" ]; then
  50. clear;
  51. e0997f="$(cat FOvpn.txt | grep "/free" | grep "Server #4" | cut -d'"' -f4)"
  52. g0997h="$(echo "www.vpnbook.com""$e0997f")"
  53. wget $g0997h;
  54. clear;
  55. echo "Success !"
  56. echo -e "------------------\n------Access------\n------------------"
  57. cat FOvpn.txt | grep "Username" |cut -d">" -f3 | cut -d"<" -f1 | head -n1
  58. echo
  59. cat FOvpn.txt | grep "Password" |cut -d">" -f3 | cut -d"<" -f1 | head -n1
  60. echo
  61. rm -rf FOvpn.txt
  62. elif [ "$c0997d" = "3" ]; then
  63. clear;
  64. e0997f="$(cat FOvpn.txt | grep "/free" | grep "Server #5" | cut -d'"' -f4)"
  65. g0997h="$(echo "www.vpnbook.com""$e0997f")"
  66. wget $g0997h;
  67. clear;
  68. echo "Success !"
  69. echo -e "------------------\n------Access------\n------------------"
  70. cat FOvpn.txt | grep "Username" |cut -d">" -f3 | cut -d"<" -f1 | head -n1
  71. echo
  72. cat FOvpn.txt | grep "Password" |cut -d">" -f3 | cut -d"<" -f1 | head -n1
  73. echo
  74. rm -rf FOvpn.txt
  75. elif [ "$c0997d" = "4" ]; then
  76. clear;
  77. e0997f="$(cat FOvpn.txt | grep "/free" | grep "Server #6" | cut -d'"' -f4)"
  78. g0997h="$(echo "www.vpnbook.com""$e0997f")"
  79. wget $g0997h;
  80. clear;
  81. echo "Success !"
  82. echo -e "------------------\n------Access------\n------------------"
  83. cat FOvpn.txt | grep "Username" |cut -d">" -f3 | cut -d"<" -f1 | head -n1
  84. echo
  85. cat FOvpn.txt | grep "Password" |cut -d">" -f3 | cut -d"<" -f1 | head -n1
  86. echo
  87. rm -rf FOvpn.txt;
  88. else
  89. exit;
  90. fi
Add Comment
Please, Sign In to add comment