jafahulo Posted April 2, 2017 Share Posted April 2, 2017 (edited) 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 April 2, 2017 by jafahulo updated url Quote Link to comment Share on other sites More sharing options...
maximusgoliath Posted June 29, 2018 Share Posted June 29, 2018 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 Quote Link to comment Share on other sites More sharing options...
jafahulo Posted July 1, 2018 Author Share Posted July 1, 2018 (edited) 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 July 1, 2018 by jafahulo 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.