From c23190613eab546e20fa48138a45b65af3d1d4fb Mon Sep 17 00:00:00 2001 From: I-Am-Jakoby Date: Wed, 14 Sep 2022 00:05:02 -0500 Subject: [PATCH] Delete Payloads/Wallpaper-URL directory --- Payloads/Wallpaper-URL/WallPaper-URL.ps1 | 69 ------------------------ 1 file changed, 69 deletions(-) delete mode 100644 Payloads/Wallpaper-URL/WallPaper-URL.ps1 diff --git a/Payloads/Wallpaper-URL/WallPaper-URL.ps1 b/Payloads/Wallpaper-URL/WallPaper-URL.ps1 deleted file mode 100644 index a172e0e..0000000 --- a/Payloads/Wallpaper-URL/WallPaper-URL.ps1 +++ /dev/null @@ -1,69 +0,0 @@ -$url = "WALLPAPER URL HERE" - -$ext = $url.split(".")[-1] - -$wp = "$Env:USERPROFILE\Desktop\---wp.$ext" - -iwr $url -O $wp - -Function Set-WallPaper { - -param ( - [parameter(Mandatory=$True)] - # Provide path to image - [string]$Image, - # Provide wallpaper style that you would like applied - [parameter(Mandatory=$False)] - [ValidateSet('Fill', 'Fit', 'Stretch', 'Tile', 'Center', 'Span')] - [string]$Style -) - -$WallpaperStyle = Switch ($Style) { - - "Fill" {"10"} - "Fit" {"6"} - "Stretch" {"2"} - "Tile" {"0"} - "Center" {"0"} - "Span" {"22"} - -} - -If($Style -eq "Tile") { - - New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WallpaperStyle -PropertyType String -Value $WallpaperStyle -Force - New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name TileWallpaper -PropertyType String -Value 1 -Force - -} -Else { - - New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WallpaperStyle -PropertyType String -Value $WallpaperStyle -Force - New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name TileWallpaper -PropertyType String -Value 0 -Force - -} - -Add-Type -TypeDefinition @" -using System; -using System.Runtime.InteropServices; - -public class Params -{ - [DllImport("User32.dll",CharSet=CharSet.Unicode)] - public static extern int SystemParametersInfo (Int32 uAction, - Int32 uParam, - String lpvParam, - Int32 fuWinIni); -} -"@ - - $SPI_SETDESKWALLPAPER = 0x0014 - $UpdateIniFile = 0x01 - $SendChangeEvent = 0x02 - - $fWinIni = $UpdateIniFile -bor $SendChangeEvent - - $ret = [Params]::SystemParametersInfo($SPI_SETDESKWALLPAPER, 0, $Image, $fWinIni) -} - - -Set-WallPaper -Image $wp -Style Fill