Open SjoenH opened 2 months ago
First open Terminal app. Then type:
wget -O /tmp/goat.jpg https://wallpapercave.com/wp/wp9348729.jpg && osascript -e 'tell application "System Events" to set picture of desktop 1 to POSIX file "/tmp/goat.jpg"'
Invoke-WebRequest -Uri https://wallpapercave.com/wp/wp9348729.jpg -OutFile C:\Temp\goat.jpg
Add-Type -TypeDefinition @"
using System;
using System.Runtime.InteropServices;
public class Wallpaper {
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern int SystemParametersInfo(int uAction, int uParam, string lpvParam, int fuWinIni);
}
"@
[Wallpaper]::SystemParametersInfo(20, 0, "C:\Temp\goat.jpg", 3)
Description
Implement a prank that changes the desktop background to a goat image using an Arduino USB dongle. The image should be downloaded from a remote server using curl or wget and set as the wallpaper on macOS.
Example Implementation