flok060a Posted October 26, 2020 Posted October 26, 2020 Hello, Hak5 forum. Today I received my bash bunny, But I'm having some trouble with the Ducky script language. I can't get my bash bunny script to output a string for some reason. I have looked around on the forums, but can't find anything. I also found a .json file with the language of my keyboard and put in the language folder. I have also updated my bash bunny to the latest firmware. Here my script: #!/bin/bash LED SETUP DELAY 200 ATTACKMODE HID Q SET_LANGUAGE dk LED ATTACK GUI r DELAY 100 RUN WIN notepad.exe DELAY 450 STRING "Hello world" DELAY 100 LED G Everything works fine until the line with the string. Is there something wrong with this since it should be working or am I just being stupid? Thank you!
chrizree Posted October 27, 2020 Posted October 27, 2020 First of all I would get rid of the line containing #!/bin/bash Q SET_LANGUAGE dk should be replaced by DUCKY_LANG=dk Each DELAY should have a Q or QUACK in front of them The GUI r could be deleted since it's about to do the same thing as the RUN WIN line The STRING line should also have a Q or QUACK in front of it Something like this: LED SETUP ATTACKMODE HID DUCKY_LANG=dk LED ATTACK RUN WIN "notepad" Q DELAY 450 Q STRING "Hello world" DELAY 100 LED G
flok060a Posted October 27, 2020 Author Posted October 27, 2020 26 minutes ago, chrizree said: First of all I would get rid of the line containing #!/bin/bash Q SET_LANGUAGE dk should be replaced by DUCKY_LANG=dk Each DELAY should have a Q or QUACK in front of them The GUI r could be deleted since it's about to do the same thing as the RUN WIN line The STRING line should also have a Q or QUACK in front of it Something like this: LED SETUP ATTACKMODE HID DUCKY_LANG=dk LED ATTACK RUN WIN "notepad" Q DELAY 450 Q STRING "Hello world" DELAY 100 LED G Okay,thanks a lot!
chrizree Posted October 27, 2020 Posted October 27, 2020 I forgot a "Q" for the last DELAY in my sample script code, but it should run anyway. Since you are using the "standard" LED modes elsewhere in the script, you could use LED FINISH in the end instead of LED G, but that's just aesthetics really.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.