Give your co-workers a quick information security lesson by derulo'ing them. Maybe next time they will remember to lock their machine.
The script instantly changes the desktop's background of the machine it's run on.
If your workplace is friendly enough to pull off pranks and some of you care about information security, the one and only Jason Derulo will be a perfect reminder of how quickly damage can be done and that an unattended computer should be locked.
Please note that the scripts may have to be run more than once for the changes to take effect.
Tested on High Sierra, Mojave and Catalina. Admin privileges are not required. Common raster image types, such as JPG, PNG, BMP, GIF, etc. are supported.
-
Open Terminal.app
- press
cmd
+space
, - type
terminal
, - press
return
.
- press
-
Run the script
curl https://raw.githubusercontent.com/amrwc/derulo/main/mac | bash # Custom image from the web: curl https://raw.githubusercontent.com/amrwc/derulo/main/mac | bash -s https://html5box.com/html5gallery/images/Waves_1024.jpg # Custom image from disk: curl https://raw.githubusercontent.com/amrwc/derulo/main/mac | bash -s file://$HOME/Downloads/derulo.bmp curl https://raw.githubusercontent.com/amrwc/derulo/main/mac | bash -s file:///Users/john/Downloads/derulo.bmp
-
There may appear a permission-related pop-up, which you have to accept.
CMD doesn't include a curl-like program out-of-the-box, therefore this method requires more steps. The PowerShell one-liner is more succinct.
Tested on Windows 10. Admin privileges are not required.
This method utilises PowerShell to download the required files, but relies on
the batch script to mitigate potential restrictions around .ps1
files.
In some restricted environments the PowerShell method may not work. In such case, try one of the CMD-only methods below.
-
Open CMD
- press
Win
+R
, - type
cmd
, - press
return
.
- press
-
Run:
:: Pro tip: triple-click on the line below to quickly highlight it powershell Invoke-RestMethod -Uri https://raw.githubusercontent.com/amrwc/derulo/main/powershell -OutFile derulo.bat && derulo.bat
Tested on Windows 7 and Windows 10. Admin privileges are not required.
-
Download any
.bmp
image (example), and call itderulo.bmp
. -
Open CMD
- press
Win
+R
, - type
cmd
, - press
return
.
- press
-
Run:
:: NOTE: The script assumes that the image is in the default 'Downloads' directory. reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "" /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "C:\Users\%USERNAME%\Downloads\derulo.bmp" /f :: Runs the 'update' dll multiple times to ensure an immediate effect start "" /b rundll32.exe user32.dll,UpdatePerUserSystemParameters start "" /b rundll32.exe user32.dll,UpdatePerUserSystemParameters start "" /b rundll32.exe user32.dll,UpdatePerUserSystemParameters start "" /b rundll32.exe user32.dll,UpdatePerUserSystemParameters start "" /b rundll32.exe user32.dll,UpdatePerUserSystemParameters :: Clear screen cls
-
Save the
cmd.bat
script locally. -
Download any
.bmp
image (example), and call itderulo.bmp
. Make sure it's placed in the same directory as thecmd.bat
script. -
Double-click the
cmd.bat
script, or run it through CMD by typing the script's name after navigating to its directory.cd <path_to_script> cmd.bat
- Windows version
- Only supports bitmaps (
.bmp
images). - Leaves the
derulo.bmp
image behind (it may be possible to delete it, but not immediately after the script is finished). - The pure batch version doesn't support automated script/image download.
- Only supports bitmaps (