streets814 Posted October 4, 2017 Share Posted October 4, 2017 I have searched in Google and here on the forms with no luck. Is there a command for a random keystroke? Just looking for something simple here and I will learn from there and explore possibilities. I can get a payload working open the desired program just this one step eludes me so for example How (if it's possible) once I have, say notepad open with the ducky, can I get a simple random 1-6 numerical key press? Think of it as a basic dice roll I want a random outcome of one of 6 predefined entries? I know it maybe basic for most people but I just need a stepping stone for this not someone to do all the work for me. Thanks in advance to anyone that could help? Quote Link to comment Share on other sites More sharing options...
ThoughtfulDev Posted October 4, 2017 Share Posted October 4, 2017 (edited) As far as i know the ducky cant do that on it self. maybe you can write a bash/batch script to copy a random key/number into your clipboard and start that and the ducky just presses CTRL+V to copy that random character? Edited October 4, 2017 by ThoughtfulDev Quote Link to comment Share on other sites More sharing options...
streets814 Posted October 4, 2017 Author Share Posted October 4, 2017 Thanks this is what I thought I may have to explore if the ducky couldn't do it natively. Thanks for the quick help it helped determined my next path. Quote Link to comment Share on other sites More sharing options...
Dave-ee Jones Posted October 5, 2017 Share Posted October 5, 2017 (edited) $RANDOM You could generate a random number and do a switch of some kind? if __NUMBER__ is 1: Q STRING "IT'S 1!" else if __NUMBER__ is 2: Q STRING "Oh boi. It's 2." ... Down further in that page it actually gives an example of throwing a dice. Edited October 5, 2017 by Dave-ee Jones Quote Link to comment Share on other sites More sharing options...
ThoughtfulDev Posted October 5, 2017 Share Posted October 5, 2017 13 hours ago, Dave-ee Jones said: $RANDOM You could generate a random number and do a switch of some kind? if __NUMBER__ is 1: Q STRING "IT'S 1!" else if __NUMBER__ is 2: Q STRING "Oh boi. It's 2." ... Down further in that page it actually gives an example of throwing a dice. that would be possible if he were using a BashBunny haha :) since the ducky is only a HID this wont work directly on the ducky. Quote Link to comment Share on other sites More sharing options...
Dave-ee Jones Posted October 5, 2017 Share Posted October 5, 2017 6 hours ago, ThoughtfulDev said: that would be possible if he were using a BashBunny haha :) since the ducky is only a HID this wont work directly on the ducky. Ah, my bad :P Get a Bunny! :D Quote Link to comment Share on other sites More sharing options...
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.