Jump to content

Archived

This topic is now archived and is closed to further replies.

streets814

Simple script

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

$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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...