Jump to content

[Payload] Mac background prank


loudg

Recommended Posts

Hi all,

Just got my first USB Rubber Ducky and decided to write a payload to prank some friends.

REM Title: OSX background changer
REM This payload will open terminal, download an image to the default desktop 
REM pictures directory, set it as the background then kill the dock to
REM refresh the background. It also closes the terminal window. 
DELAY 3000
GUI SPACE
STRING terminal
DELAY 200
ENTER
DELAY 200
STRING cd /Library/Desktop\ Pictures
DELAY 200
ENTER
STRING curl -s -O http://YOUR_URL_HERE/1.jpg
ENTER
DELAY 2000
STRING defaults write com.apple.desktop Background '{default = {ImageFilePath = "/Library/Desktop Pictures/1.jpg";};}'
ENTER
DELAY 200
STRING killall Dock
ENTER
STRING killall Terminal
ENTER

Be sure to put in a valid URL of the image you want to set as the background.

This works best if you're using the latest firmware with the vidpid.bin file set to 05ac 0202.

It's my first payload, so if you see anything the matter, please let me know.

L

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...