Advertisement
Assert

Add Users in SoftEther

May 4th, 2018 (edited)
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. import subprocess
  2. def t(cmd):
  3.  subprocess.call(cmd, shell=True)
  4. user = raw_input("What do you want your username to be? -> ")
  5. password = raw_input("What do you want your password to be? -> ")
  6. t("/usr/local/vpnclient/vpncmd /Server localhost:443 /Hub:VPN /cmd:UserCreate "+ user +" /GROUP:none /REALNAME:none /NOTE:none")
  7. t("/usr/local/vpnclient/vpncmd /Server localhost:443 /Hub:VPN /cmd:UserPasswordSet "+ user +" /PASSWORD:"+ password +"")
  8. print "Hub: VPN"
  9. print "User: "+ user +''
  10. print "Password: "+ password +''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement