Created
May 11, 2023 21:01
-
-
Save soulemike/408bec0813561635fb54f156b99df794 to your computer and use it in GitHub Desktop.
Convert inline HEX characters to ASCII
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
$s='wind\x6f\x77["\x64oc\x75\x6den\x74"\x5d\x2ec\x72\x65a\x74\x65E\x6cemen\x74' | |
($s|Select-String -Pattern "([.\\][.x].{2})" -AllMatches).Matches.Value|select -Unique|%{$s=$s.Replace([string]$_,[char]([convert]::ToInt16($_.Substring(2,2),16)))} | |
#window["document"].createElement |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment