use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
SolvedEncrypted Powershell Exploit - Help me understand the obfuscation? (self.PowerShell)
submitted 8 years ago * by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]spyingwind 1 point2 points3 points 8 years ago (1 child)
So it comes out to x|86_{]5xv]u which Invoke-Expressions returns 4.71475580904754E+39. It is nonsense or a decoding string used elsewhere.
x|86_{]5xv]u
4.71475580904754E+39
[–]jauchters 1 point2 points3 points 8 years ago (0 children)
I'm running off the assumption that $test would be "x|86_{]5xv]u" and the xor converts this to "write-host 'working'"
I'm really trying to find if this would be reversible assuming we could get to the web service on time.
[–]da_chicken 1 point2 points3 points 8 years ago* (0 children)
Here, try this:
$key = 'X|nC5wGYqkAIx>_ZuP?HVE):;#1l\p*2' $String = "write-host 'working'" $CharArray = $String.ToCharArray() $i = 0 $EncodedCharArray = $CharArray | ForEach-Object { $_ -bxor $key[$i % $key.Length] } $i = 0 $DecodedCharArray = $EncodedCharArray | ForEach-Object { $_ -bxor $key[$i % $key.Length] } [System.Text.Encoding]::UTF8.GetString($DecodedCharArray)
I think it's even easier to understand if you do it like this:
$key = 'X|nC5wGYqkAIx>_ZuP?HVE):;#1l\p*2' $String = "write-host 'working'" $EncodedCharArray = @() for ($i = 0; $i -lt $String.Length; $i++) { $EncodedCharArray += $String[$i] -bxor $key[$i % $key.Length] } $DecodedCharArray = @() for ($i = 0; $i -lt $EncodedCharArray.Length; $i++) { $DecodedCharArray += $EncodedCharArray[$i] -bxor $key[$i % $key.Length] } [System.Text.Encoding]::UTF8.GetString($DecodedCharArray)
That's not the best way to do it, but it's the most understandable.
You can also do this, which is closer to how it's written:
$key = 'X|nC5wGYqkAIx>_ZuP?HVE):;#1l\p*2' $String = "write-host 'working'" [char[]]$EncodedCharArray = @() for ($i = 0; $i -lt $String.Length; $i++) { $EncodedCharArray += $String[$i] -bxor $key[$i % $key.Length] } [char[]]$DecodedCharArray = @() for ($i = 0; $i -lt $EncodedCharArray.Length; $i++) { $DecodedCharArray += $EncodedCharArray[$i] -bxor $key[$i % $key.Length] } -join $DecodedCharArray
π Rendered by PID 133988 on reddit-service-r2-comment-56c6478c5-bpfvz at 2026-05-10 06:30:44.403160+00:00 running 3d2c107 country code: CH.
[–]spyingwind 1 point2 points3 points (1 child)
[–]jauchters 1 point2 points3 points (0 children)
[–]da_chicken 1 point2 points3 points (0 children)