Skip to content

Instantly share code, notes, and snippets.

@TheWover
Created May 18, 2019 15:02
Show Gist options
  • Select an option

  • Save TheWover/4545a980c7a23f509965a8e35331faab to your computer and use it in GitHub Desktop.

Select an option

Save TheWover/4545a980c7a23f509965a8e35331faab to your computer and use it in GitHub Desktop.
Base64 encode a file and copy it to the clipboard using PowerShell. Posted as a Gist mainly for my own sake so that I don't have to Google the syntax every two days.
$filename = "C:\\Testing\donut\\payload.bin"
[Convert]::ToBase64String([IO.File]::ReadAllBytes($filename)) | clip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment