Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);}
- "@
- $t = (Get-ChildItem ENV:USERPROFILE).Value
- $f = $t + "\pepe.jpg"
- (new-object net.webclient).DownloadFile('https://i.imgur.com/TrymOlU.png', $f)
- [void][Params]::SystemParametersInfo(0x0014, 0, "$f", 0x03)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement