Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save justaguywhocodes/518144627041d9bae45b986f10787fb3 to your computer and use it in GitHub Desktop.
Save justaguywhocodes/518144627041d9bae45b986f10787fb3 to your computer and use it in GitHub Desktop.
# Read the Base64-encoded file
$base64String = Get-Content -Path "encodedfile.txt" -Raw
# Decode the Base64 string to bytes
$decodedBytes = [System.Convert]::FromBase64String($base64String)
# Save the decoded bytes to purple.dll
[System.IO.File]::WriteAllBytes("purple.dll", $decodedBytes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment