Last active
April 29, 2016 12:10
-
-
Save un4ckn0wl3z/9a6260e940866ef743935b0c4313bb55 to your computer and use it in GitHub Desktop.
This file contains 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
function ExetoText | |
{ | |
[CmdletBinding()] Param( | |
[Parameter(Position = 0, Mandatory = $True)] | |
[String] | |
$EXE, | |
[Parameter(Position = 1, Mandatory = $False)] | |
[String] | |
$Filename = "$pwd\ConvertedText.txt" | |
) | |
[byte[]] $hexdump = get-content -encoding byte -path "$EXE" | |
[System.IO.File]::WriteAllLines($Filename, ([string]$hexdump)) | |
Write-Output "Converted file written to $Filename" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment