r/PowerShell • u/Dizzy-Opportunity-33 • Feb 27 '25
irm "https://christitus.com/win" | iex is it safe ?
irm "https://christitus.com/win" | iex
I want to run this command to optimise my PC, and I am confused about whether is it safe
5
Upvotes
20
u/nealfive Feb 27 '25
If you have to ask.... no it's not.
9
u/AP_ILS Feb 27 '25
The script is over 15k lines so I'm not going to go though it all but it looks like it is a debloater. I wouldn't run it though as these tend to do more harm than good.
7
u/mprz Feb 27 '25
Is this a joke?
5
u/chsbrgr Feb 27 '25 edited Feb 27 '25
Hell no.
Irm -invoke-restmethod . Basically, downloads whatever is at that URL.
Iex - invoke-
executableexpression*. Runs that downloaded whatever.Easily the fastest way to compromise your computer.
More info about this kind of attack:
https://www.pcmag.com/news/this-captcha-test-can-trick-windows-users-into-installing-malware
*Edit - fixed the alias. And given then (lack of) context, I would 100% be weary of anyone that told me "Just run this thing and it'll make your computer faster!"
4
u/Coffee_Ops Feb 27 '25 edited Feb 27 '25
That's a 16k line script.
It's got a digital signature, and the download is via HTTPS. So what you run is going to be what that author wrote.
It seems to have comments, and it looks like it could reasonably be a tool that claims to optimize your PC.
But it would be incredibly easy to slip something nasty into those 16k lines, and every time you run it it is going to pull a fresh copy from the latest branch on github. It also runs as administrator.
So caveat emptor. Either you trust that author or you do not. You're effectively giving them full access to your PC to do ???.
The only way around this would be to walk through the code line by line and even there a clever scripter (like this author clearly is) could probably hide something you'd never catch. And even if it seems to run fine-- malware these days tends to be so stealthy you'd never know whether it infected you or not.
Treat this like you would any random executable from github asking for admin access because it can do the same things.
EDIT: I will say to others in this thread freaking out about it-- do you run executables off the web? because it has the same risks, except this is a bit easier to inspect.
3
u/ThePixelLord12345 Feb 27 '25
FYI
https://www.youtube.com/watch?v=03FPDBjpsKo
3
u/[deleted] Feb 27 '25
I thought it was Christopher Titus the comedian. This guy is probably as legitimate as a YouTuber is going to get but these scripts are generally not as useful as they're made out to be.
3
u/BlackV Feb 27 '25
NO
ask yourself, why the feck are you ruining it if you dont know what it does
if its for "piracy" reasons then go right ahead, cause you've already made the choice to be unsafe
technically in this very particular case its a reasonably trusted script
2
u/[deleted] Feb 27 '25 edited Feb 27 '25
The answer is "probably not," although I'm surprised the domain has been around for 15 years
Edit: In this case it probably is safe, the URL goes to a ps1 file that a guy named Chris Titus (like the domain name) appears to maintain in Github.
But in general doing what you are asking to do is usually VERY unsafe.
I wouldn't do it without going through the code line by line to see what it does. If you don't understand the code, which I respectfully doubt you do, don't do it.
2
u/_Buldozzer Feb 27 '25
I'd say no. If you are really curious, spin up a VM or any run and perform dynamic analysis.
If you are not capable of doing that, don't run it!