Jump to content

How do I loop a section of code rather than just one line?


Citrik
 Share

Recommended Posts

I am trying to repeatedly type of string of text 20 times, but I can't figure out how to repeat the entire code. This is what I have:

STRING text
ENTER
DELAY 10000
REPEAT 20

I want to repeat those first 3 lines 20 times. How do I do this?

Link to comment
Share on other sites

OK, well, 20 repeats with that delay won't result in anything that lasts for multiple hours. In that case, the initial scenario description wasn't really valid. With the new requirements, my proposed way of doing it is less relevant. I would use a Bash Bunny in this case so that it would be possible to throw in other tools (like Bash scripting) to accomplish what is needed. In this case I would probably use the target and let it do the "logic". It all depends on the target though. What I mean by saying that is to create a script on the target using the Ducky and then execute the script which loops the thing for as long as it's needed. But, it all depends, so a full description of what the result should be and in what environment it will be used is needed to try to suggest any solution.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...