Skip to content

Instantly share code, notes, and snippets.

@pwndev
Created February 25, 2022 08:41
Show Gist options
  • Save pwndev/f3275c8a1f51482b63309dca24d2abb7 to your computer and use it in GitHub Desktop.
Save pwndev/f3275c8a1f51482b63309dca24d2abb7 to your computer and use it in GitHub Desktop.
Types your password if an app doesn't allow pasting
#############################
# pip3 install pyautogui #
# python3 password-typer.py #
#############################
import sys
import time
import pyautogui
if(len(sys.argv) != 2):
print("Run: python3 " + sys.argv[0] + " <your password>")
exit(1)
print("Pasting your password in 3 seconds. Please focus the input field.")
time.sleep(3)
pyautogui.write(sys.argv[1], interval=0.025)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment