c0rruptedb1t Posted March 27, 2017 Posted March 27, 2017 My friend bet me that I couldn't shut down his computer with my rubber ducky, so I decided to prove him wrong. I started writing my code to shutdown his laptop (he has a dual booting linux and windows setup), it works well in linux but in windows it opens start and types e in the search bar instead of going across to shutdown. I have tried "RIGHTARROW" and "RIGHT" and it is using US keyboard. Code: REM Linux Shutdown (needs root user to be logged in) DELAY 550 ALT F2 DELAY 600 STRING poweroff ENTER DELAY 500 REM Windows Shutdown GUI DELAY 250 RIGHT RIGHT ENTER Quote
Decoy Posted March 27, 2017 Posted March 27, 2017 Try this instead: DELAY 500 GUI r DELAY 100 STRING powershell Stop-Computer ENTER Quote
c0rruptedb1t Posted March 27, 2017 Author Posted March 27, 2017 Thank you for your reply, but I am trying to find out why my arrow key injectons have stopped working Quote
Decoy Posted March 27, 2017 Posted March 27, 2017 I feel like at one point early on with my rubber ducky I had to update my keyboard. Do you have the latest keyboard versions? Are you using the correct keyboard layout for your country? Quote
c0rruptedb1t Posted March 27, 2017 Author Posted March 27, 2017 Where do i find the latest verisons? Quote
Decoy Posted March 27, 2017 Posted March 27, 2017 (edited) I think all you should have to do is define the keyboard resource from the command line like this: java -jar duckencode.jar -i script.txt -o inject.bin -l resources/us.properties If that doesn't work, you can get the updated resources from GitHub. Let me know how it works out. Edited March 27, 2017 by Decoy Quote
Decoy Posted March 27, 2017 Posted March 27, 2017 (edited) That being said, I feel like using TABs and ARROWs can be hit or miss. It's too easy to have another process change focus, etc. I think the PowerShell line is the way to go. Another solution would be an ALT F4 combo. Good luck! Edited March 27, 2017 by Decoy Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.