Guest User

Untitled

a guest
Aug 4th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1.  
  2.  
  3. try:
  4. import getpass
  5. import pexpect
  6. import shutil
  7. except ImportError:
  8. pass
  9.  
  10. try:
  11. print'''
  12.  
  13. # # #
  14. # # ## #### # # # # # #### # ## #####
  15. # # # # # # # # # ## # # # # # # # #
  16. ####### # # # #### # # # # # ##### # # # #####
  17. # # ###### # # # # # # # # ### # ###### # #
  18. # # # # # # # # # # ## # # # # # # #
  19. # # # # #### # # # # # #### ####### # # #####
  20. '''
  21. username = raw_input('\nPlease Enter You Hacking Lab Email Address:')
  22. if username == '':
  23. print '\n\n[-]No Username Entered'
  24. else:
  25. password=getpass.getpass('Password: ')
  26. if password == '':
  27. print '\n\n[-]No Password Entered'
  28. else:
  29. shutil.copy('resolv.conf.hacking-lab','/etc/resolv.conf')
  30. execute=pexpect.spawn('openvpn config.ovpn')
  31. execute.expect('Enter Auth Username:')
  32. execute.sendline(username)
  33. execute.expect('Enter Auth Password:')
  34. execute.sendline(password)
  35. execute.expect('Initialization Sequence Completed')
  36. print'\n\n[+]Connected, Press Ctrl-C To Exit Client'
  37. execute.interact()
  38.  
  39. except KeyboardInterrupt:
  40. print '''\n\n[-]Exiting Hacking Lab Client...'''
Add Comment
Please, Sign In to add comment