Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # pip install pyuserinput
- import subprocess
- import sys
- import time
- import pykeyboard
- if len(sys.argv) > 1:
- ubiqui = sys.argv[1]
- else:
- ubiqui = input('Touch the ubiqui device: ')
- user = 'youruser'
- password = 'YourVerySecurePassword'
- pin = 'YourP1n'
- workspace = 'RegCodeOfYourWorkSpace'
- k = pykeyboard.PyKeyboard()
- TAB = k.tab_key
- ENTER = k.enter_key
- subprocess.Popen(['pcoip-client', '-h', workspace])
- time.sleep(3)
- k.type_string(user)
- k.tap_key(TAB)
- k.type_string(password)
- k.tap_key(TAB)
- k.type_string(pin)
- k.type_string(ubiqui)
- k.tap_key(ENTER)
- time.sleep(5)
- k.type_string(password)
- k.tap_key(ENTER)
- print('Finished!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement