Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- import getpass
- import pexpect
- import shutil
- except ImportError:
- pass
- try:
- print'''
- # # #
- # # ## #### # # # # # #### # ## #####
- # # # # # # # # # ## # # # # # # # #
- ####### # # # #### # # # # # ##### # # # #####
- # # ###### # # # # # # # # ### # ###### # #
- # # # # # # # # # # ## # # # # # # #
- # # # # #### # # # # # #### ####### # # #####
- '''
- username = raw_input('\nPlease Enter You Hacking Lab Email Address:')
- if username == '':
- print '\n\n[-]No Username Entered'
- else:
- password=getpass.getpass('Password: ')
- if password == '':
- print '\n\n[-]No Password Entered'
- else:
- shutil.copy('resolv.conf.hacking-lab','/etc/resolv.conf')
- execute=pexpect.spawn('openvpn config.ovpn')
- execute.expect('Enter Auth Username:')
- execute.sendline(username)
- execute.expect('Enter Auth Password:')
- execute.sendline(password)
- execute.expect('Initialization Sequence Completed')
- print'\n\n[+]Connected, Press Ctrl-C To Exit Client'
- execute.interact()
- except KeyboardInterrupt:
- print '''\n\n[-]Exiting Hacking Lab Client...'''
Add Comment
Please, Sign In to add comment