Files
bashbunny-payloads/payloads/library/prank/WallpaperChanger/s.ps1
2021-10-02 13:25:34 -05:00

10 lines
380 B
PowerShell

# Receives the path for the wallpaper file from the Bunnys Playload Dir
Param([string]$Path)
# Sets the new wallpaper path to the desktop
# Copies the file from the Playload Dir to the Users Desktop
$new_path = "$env:USERPROFILE\Desktop\w.png"
cp $Path $new_path
#Sets the wallpaper
Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value $new_path