Created
July 22, 2020 00:01
-
-
Save packetchef/677d7d0555751a44708b8775d489e278 to your computer and use it in GitHub Desktop.
Sample URL decode with Powershell
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
$qURL="xresbez+%3D+%0D%0A++Partition%5BReadList%5BStringJoin%5Brootdir%2C+%22LMbezier.dat%22%5D%2C+Number%5D%2C+%0D%0A+++121%5D%3B%0D%0Axreslib+%3D+%0D%0A++Partition%5BReadList%5BStringJoin%5Brootdir%2C+%22LMCurves.dat%22%5D%2C+Number%5D%2C+%0D%0A+++122%5D%3B%0D%0Axerrs+%3D+Partition%5B%0D%0A+++ReadList%5BStringJoin%5Brootdir%2C+%22LMErrors.dat%22%5D%2C+Number%5D%2C+4%5D%3B%0D%0Ax+%3D+%7B%7D%3B+y+%3D+ReadList%5BStringJoin%5Brootdir%2C+%22LMdropped.dat%22%5D%2C+Number%5D%3B%0D%0AFor%5Bi+%3D+1%2C+i+%3C%3D+Length%5By%5D%2C+i%2B%2B%2C+If%5By%5B%5Bi%5D%5D+%3E%3D+500%2C+x+%3D+Append%5Bx%2C+i%5D%5D%5D%3B%0D%0Axsdropped+%3D+%0D%0A++Append%5BTable%5BTake%5By%2C+%7Bx%5B%5Bi+-+1%5D%5D%2C+x%5B%5Bi%5D%5D+-+1%7D%5D%2C+%7Bi%2C+2%2C+Length%5Bx%5D%7D%5D%2C+%0D%0A+++Take%5By%2C+%7Bx%5B%5B-1%5D%5D%2C+Length%5By%5D%7D%5D%5D%3B%0D%0APrint%5B%22Precalculated+already+%22%2C+qd%5Bxreslib%5B%5B-1%2C+1%5D%5D%5D%2C+%22+-+%22%2C+%0D%0A++qd%5Bxreslib%5B%5B1%2C+1%5D%5D%5D%5D%3B%0D%0A%0D%0APrecalculated+already+3.4.1991+-+5.13.2014&sourceid=ie7&rls=com.microsoft:en-us:IE-ContextMenu&ie=&oe=" | |
$nul = [System.Reflection.Assembly]::LoadWithPartialName("System.web") | |
$decode = [System.Web.HttpUtility]::UrlDecode($qURL) | |
write-output $decode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment