Jump to content

Repeat command problem


Shad0wChick46
 Share

Recommended Posts

Ive been trying to work with ducky script on the bash bunny and for some reason the repeat command is the only thing not working does anyone know why?

 

#!/bin/bash

#Setting up(Magenta)
LED SETUP


ATTACKMODE HID

#Beginning HID Attack(Yellow)

LED ATTACK

#Running cmd to create file in startup directory
Q CTRL ESC
Q DELAY 300
Q STRING "set volume"
Q ENTER
Q DELAY 300
Q UP

Q REPEAT 20
Q DELAY 2000
Q ESC
Q DELAY 200
Q CTRL ESC
Q DELAY 200
Q STRING "google chrome"
Q ENTER
Q DELAY 300
Q STRING "https://youtu.be/MtN1YnoL46Q"
Q ENTER
Q DELAY 1000


#Fast green followed by Solid -> Finished
LED FINISH

Link to comment
Share on other sites

  • 3 weeks later...

You could also let your bashbunny payload link to a rubber ducky payload file by: 

QUACK switch1/rubberduckypayloadfile.txt

or if you did GET SWITCH_POSITION:

QUACK $SWITCH_POSITION/rubberduckypayloadfile.txt

 

It happened multiple times with my scripts that using the payload.txt did not do some rubber ducky payloads correctly. By this, it should all work fine. Also, remember to remove all Q or QUACK in the rubberduckypayloadfile.txt otherwise it won't work.

 

C1PH3R

 

"Don't look at the branch of the problem, look at the root (C1PH3R)"

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