Shad0wChick46 Posted November 29, 2017 Share Posted November 29, 2017 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 SETUPATTACKMODE HID#Beginning HID Attack(Yellow)LED ATTACK#Running cmd to create file in startup directoryQ CTRL ESCQ DELAY 300Q STRING "set volume"Q ENTERQ DELAY 300Q UP Q REPEAT 20Q DELAY 2000Q ESCQ DELAY 200Q CTRL ESCQ DELAY 200Q STRING "google chrome"Q ENTERQ DELAY 300Q STRING "https://youtu.be/MtN1YnoL46Q"Q ENTERQ DELAY 1000#Fast green followed by Solid -> FinishedLED FINISH Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted November 29, 2017 Share Posted November 29, 2017 This should work, but if not, you can always use bash loops to accomplish the same thing (with much more flexibility) Quote Link to comment Share on other sites More sharing options...
Shad0wChick46 Posted November 30, 2017 Author Share Posted November 30, 2017 Good point i should have though of that. Its much better now thanks. Quote Link to comment Share on other sites More sharing options...
C1PH3R Posted December 17, 2017 Share Posted December 17, 2017 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)" 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.