Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows clipboard conflict with Auto-Type variable {TOTP} #236

Open
MatzeDE opened this issue Jul 12, 2021 · 0 comments
Open

Windows clipboard conflict with Auto-Type variable {TOTP} #236

MatzeDE opened this issue Jul 12, 2021 · 0 comments

Comments

@MatzeDE
Copy link

MatzeDE commented Jul 12, 2021

Windows: When using the {TOTP} variable in the Auto-Type sequence, there seems to be a conflict with existing clipboard contents: Both the clipboard content and {TOTP} are output. To reproduce this error, simply copy a string from a text file and then run the Auto-Type sequence in a login window in the browser.

Question: How can this clipboard conflict be prevented?

Edit: This error does not occur everywhere. It was first observed on Google Login when 2-step verification is enabled. In the screenshot you can see that the clipboard contains the text "switchdisable". The content of the clipboard is now mixed with the TOTP, Two-Channel Auto-Type Obfuscation in KeePass was enabled. The auto-type sequence was:
{CLEARFIELD}{UserName}{ENTER}{DELAY 2000}{Password}{ENTER}{DELAY 3000}{DELAY=250}{TAB}{TAB}{TAB}{ENTER}{DELAY 3000}{TAB}{TAB}{TAB}{TAB}{ENTER}{DELAY 3000}{DELAY=0}{TOTP}{ENTER}

Google 2-Step Verification

Edit #2: I just found a workaround that seems to solve my problem. Immediately before {TOTP} a delay is set for every single character, 50 milliseconds is enough. Then obviously the clipboard content is ignored. This is what my auto-type sequences look like now, one for Firefox, the other for Chrome, because Chrome somehow needs two tabs more:

Firefox:
{CLEARFIELD}{UserName}{ENTER}{DELAY 2000}{Password}{ENTER}{DELAY 3000}{DELAY=250}{TAB}{TAB}{TAB}{ENTER}{DELAY 3000}{TAB}{TAB}{TAB}{TAB}{ENTER}{DELAY 3000}{DELAY=50}{TOTP}{ENTER}

Chrome:
{CLEARFIELD}{UserName}{ENTER}{DELAY 2000}{Password}{ENTER}{DELAY 3000}{DELAY=250}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}{DELAY 3000}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}{DELAY 3000}{DELAY=50}{TOTP}{ENTER}

Any comments are welcome anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant