Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Add-Type -TypeDefinition @"
  2. using System;using System.Runtime.InteropServices;
  3. public class Params
  4. {[DllImport("User32.dll",CharSet=CharSet.Unicode)]
  5. public static extern int SystemParametersInfo (Int32 uAction, Int32 uParam, String lpvParam, Int32 fuWinIni);}
  6. "@
  7. $t = (Get-ChildItem ENV:USERPROFILE).Value
  8. $f = $t + "\pepe.jpg"
  9. (new-object net.webclient).DownloadFile('https://i.imgur.com/TrymOlU.png', $f)
  10. [void][Params]::SystemParametersInfo(0x0014, 0, "$f", 0x03)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement