Created
May 18, 2019 15:02
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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