Jump to content

BB with ducky script not working


Shad0wChick46

Recommended Posts

So ive been trying to run ducky script in a bash bunny payload but as soon as it hits the ducky script it stops.

LED SETUP

GET SWITCH_POSITION

ATTACKMODE HID

LED ATTACK

RUN WIN notepad.exe

QUACK DELAY 300

QUACK STRING (\___/)

QUACK ENTER

QUACK DELAY 300

QUACK STRING (='.'=)

QUACK ENTER

QUACK DELAY 300

QUACK STRING (")_(")

QUACK DELAY 300

 

I cant figure out the problem

Link to comment
Share on other sites

#make a payload.txt containing this
 
LED SETUP
ATTACKMODE HID STORAGE
GET SWITCH_POSITION
LED ATTACK
if [ -f "/root/udisk/payloads/${SWITCH_POSITION}/ducky_script.txt" ]; then
        QUACK ${SWITCH_POSITION}/ducky_script.txt
        LED FINISH
else
    LED FAIL
    echo "Unable to load ducky_script.txt" >> /root/debuglog.txt
        exit 1
fi
 
#then make a ducky_script.txt containing this
 
DELAY 2000
GUI r
DELAY 1000
STRING notepad.exe
DELAY 300
STRING (\___/)
ENTER
DELAY 300
STRING (='.'=)
ENTER
DELAY 300
STRING (")_(")
DELAY 300
 
#put them both in the same switch folder and try it out ;)
#it's the long way to do it but I like it cause if it fails I get a debug log :)
Link to comment
Share on other sites

  • 4 weeks later...

Try this: 

 

QUACK switch2/duck.txt

where your duck script is now

then put your other duck script in a file called duck.txt

 

If that works and executes your duckyscript, just factory reset your bashbunny, had the same problem with mine not recognizing some duckyscripts.

 

C1PH3R

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

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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