Assert

SoftEther.py

Mar 16th, 2018 (edited)
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.24 KB | None | 0 0
  1. ## Version 1 | Made by Tanner  11:11pm - 6am | Feb 11 2018 - Feb 12 2018
  2. ## Version 2 Edited - 8:30pm - 10:51pm | Feb 12 2018
  3. ## Version 3 - Feb 18 - 21 2018 |
  4. ## Version 3.1 - July, 22 2018 | Updated download links finally, Version 9668
  5. ## Version 3.2 - November, 5 2018 | Updated download links again, Version 9669
  6. ## Version 3.3 - October, 2 2020 | Made the script look a bit better; Updated links, Version 9745
  7. import subprocess
  8. def t(cmd):
  9.  subprocess.call(cmd, shell=True)
  10. server = "wget https://www.softether-download.com/files/softether/v4.34-9745-rtm-2020.04.05-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-x64-64bit.tar.gz"
  11. client = "wget https://www.softether-download.com/files/softether/v4.34-9745-rtm-2020.04.05-tree/Linux/SoftEther_VPN_Client/64bit_-_Intel_x64_or_AMD64/softether-vpnclient-v4.34-9745-rtm-2020.04.05-linux-x64-64bit.tar.gz"
  12. script = "curl https://pastebin.com/raw/6SdqXQFc > /etc/init.d/vpnserver/vpnserver"
  13. make_s = "curl https://pastebin.com/raw/B26X7vg7 > server.sh"
  14. make_c = "curl https://pastebin.com/raw/Yii9pbzu > client.sh"
  15. service = "curl https://pastebin.com/raw/h3fQBNVQ > service.sh"
  16. setup = "curl https://pastebin.com/raw/9FMUQjDg > setup.py"
  17. mv = "curl https://pastebin.com/raw/MpdWTPrv > move.sh"
  18. print "SoftEther Setup by Tanner"
  19. t("sleep 5")
  20. OS = raw_input("Debian or CentOS? ---> ")
  21. t("echo Downloading needed dependancies...")
  22. t("sleep 5")
  23. if OS == "Debian" or "debian" or "D" or "d":
  24.  t("apt-get update && apt-get upgrade -y;apt-get install build-essential -y")
  25. elif OS == "CentOS" or "centos" or 'c' or 'C':
  26.  t('yum groupinstall "Development Tools" -y; yum install nano -y; yum install wget -y')
  27. t("clear")
  28. t("echo Downloading server side files...")
  29. t("sleep 5")
  30. t(server)
  31. t("clear")  
  32. t("echo Extracting files...")
  33. t("sleep 5")
  34. t("tar xzvf softether-vpnserver*")
  35. t("clear")  
  36. t("echo Making .sh file then compiling server...")
  37. t("sleep 5")
  38. t(make_s)
  39. t("chmod 777 server.sh")
  40. t("./server.sh")
  41. t("clear")
  42. t("echo Making startup script to start the vpnserver on boot...")
  43. t("sleep 5")
  44. t(script)
  45. if OS == "Debian":
  46.  t("chkconfig --add vpnserver | update-rc.d vpnserver defaults")  
  47. elif OS == "CentOS":
  48.  t("chmod 755 /etc/init.d/vpnserver && /etc/init.d/vpnserver start")
  49. t("clear")  
  50. t("echo Downloading client files...")
  51. t("sleep 5")
  52. t(client)
  53. t("clear")  
  54. t("echo Unziping the file...")
  55. t("sleep 5")
  56. t("tar xzvf softether-vpnclient*")
  57. t("clear")  
  58. t("echo Making .sh file then compiling server...")
  59. t("sleep 5")
  60. t(make_c)
  61. t("chmod 777 *")
  62. t("sh client.sh")
  63. t("sleep 5")
  64. t('echo Moving "vpnserver" and "vpnclient" to /usr/local...')
  65. t("sleep 5")
  66. t(mv)
  67. t("sh move.sh")
  68. t("clear")  
  69. print "Starting VPN server and client..."
  70. t(service)
  71. t("sh service.sh")
  72. t("sleep 5")
  73. t("clear")
  74. t("echo Put in the needed information in a few seconds...")
  75. t("sleep 5")
  76. t(setup)
  77. t("python setup.py")
  78. t("echo Deleting uneeded files...")
  79. t("rm -rf *.gz")
  80. t("rm -rf move.sh")
  81. t("rm -rf client.sh")
  82. t("r, -rf server.sh")
  83. t("rm -rf mv.sh")
  84. t("rm -rf setup.py")
  85. t("sleep 3")
  86. print """Everything is done & should work properly
  87.    This script was made by Tanner! here is my contact info:
  88.    email: Tanner@tfwno.gf
  89.    """
Add Comment
Please, Sign In to add comment