r/PowerShell • • Mar 21 '24

Question Is 'irm https://massgrave.dev/get | iex' safe?

Is running the command 'irm https://massgrave.dev/get | iex' in terminal(admin) safe at all, or is there a virus hidden somwhere in this

0 Upvotes

31 comments sorted by

22

u/BlackV Mar 21 '24

why dont you go have a look? before you run the code, its just a web url

basic basic basic logic says

  • dont run code you dont understand

  • dont run random code from the internet

  • dont run pirated shite

0

u/MyOtherSide1984 Mar 21 '24

People pirate code?

6

u/lxnch50 Mar 21 '24

The code activates Windows.

3

u/BlackV Mar 21 '24

I mean yes they do, but this is more about pirating windows/office/etc

14

u/devloz1996 Mar 21 '24 edited Mar 21 '24

Script appears to be clean right now:

  • Fetched script downloads another script

  • Script does not contact anything over the Internet, other than licensing.mp.microsoft.com.

  • There are two files stored as base64 strings (sppc32.dll, sppc64.dll). Their behavior is well documented, hashes are provided, and source code is available.

There are 5 attack vectors that can be used to make the script malicious at any moment:

  • Owner turns rogue, 100% chance of infection

  • Web hosting breach, 100% chance of infection

  • Script is pulled from 1 of 3 sources, at random:

    • Bitbucket, 33.(3)% chance of infection

    • CodeBerg, 33.(3)% chance of infection

    • GitHub, 33.(3)% chance of infection

The only way to make the script stay safe, is for you to download the script as it is right now, vet it yourself, and keep it on disk, but at this point, the script itself suggests another offline tool (by abbodi1406).

Also, a little nab, there's about 5% PowerShell total, only to bootstrap the legacy batch script.

3

u/MrFiregem Mar 21 '24

In this case, yes. But generally it's not a good idea to run code from the internet unless you trust the author.

1

u/Leading_Fig_355 Feb 21 '25

Acording to this it is legal ??

i don think so. it dont feal right

1

u/Leading_Fig_355 Feb 21 '25

1

u/Time-Holiday-2706 Apr 19 '25

Muchisimas gracias ser de luz por ayudar a los más desfavorecidos

1

u/Dameunusuario Sep 22 '25

perdón por el daley, pero estaba buscando esto.

El paso 1 dice: "PASO 1:  En Iniciar búsqueda, escriba Símbolo del sistema, después de que aparezca el Símbolo del sistema, haga clic con el botón derecho y seleccione Ejecutar como administrador."

y no puedo, o no encuentro la forma de 'ejecutar como administrador'. Si alguien me ayuda, se los agradezco.

1

u/Sufficient-Map8529 Mar 13 '25

yo ejecute y tenia virus , no es seguro

1

u/Nintendocomrade Jun 18 '25

its safe ur pc has a skill issue or already had viruses

1

u/wybieeee Aug 14 '25

esto sigue siendo seguro? es un poco tentador...

1

u/Serious-Rooster-7892 Nov 01 '25

No sé, acabo de hacerlo, al final lo hiciste? yo segui este video de youtube:
✅ Solución Definitiva: Error "Activación Requerida" en Microsoft Office LTSC 2024 y 365 | LEGAL de: El profe Aldair

1

u/Necessary-Low-6970 Nov 14 '25

Eu fiz e até agora tá sussa!

1

u/Scary_Pomegranate_84 Nov 16 '25

Yo lo acabo de hacer hace 20 minutos y me esta abriendo el CMD y cerrándolo, por lo que vi en el foro es seguro...

Alguna persona que sepa si hubo algún cambio ?

1

u/wellking Dec 03 '25

execução de código malicioso, inicia assim que o sistema da o start pelo cmd, fazendo a persistência para o atacante. Provável contaminação

1

u/0x1f606 Mar 21 '24

It has a history of being safe, but to be 100% sure you'll need to vet the code yourself before running it.
Also keep in mind that it is straight up piracy; I don't care about that for ephemeral stuff like spinning up a quick VM for lab purposes, etc, but don't do something stupid like using it in a production environment.

1

u/Bin1234567890 May 29 '25

Sry I know I’m late to reply to this comment but what do you mean by “vet” the code?

1

u/0x1f606 May 30 '25

"Vet" means to do an examination/investigation of someone or something. In this case, it means to do an audit of the code and check whether it does anything suspicious or unwanted.

1

u/IslandDry8721 Jun 03 '25

it is still safe rn?, i dont know much about code and how to check if its safe or not, but i saw the code on some very legit site

1

u/0x1f606 Jun 05 '25

I haven't checked it myself recently, but I have no immediate reason to suspect there's anything wrong with it.

-7

u/UnfanClub Mar 21 '24 edited Mar 21 '24

Don't trust anything that helps you bypass licensing. There's ~95.3% chance it's malicious.

On the bright side, the script tries to download .cmd files from two locations that have been removed. (I suppose Microsoft reported them)

So essentially this script does not do anything at this moment.

Edit: from the down-votes, I presume people in here really like to bypass licensing.

Edit 2: The script does actually work. I missed a part when I read it the first time (on mobile). The cmd files exist ☣️.

2

u/PolicyArtistic8545 Mar 21 '24

I have personally reviewed the powershell script and cmd files before running this. It is part of the 4.7%

1

u/UnfanClub Mar 21 '24

Would you happen to have working links to the cmd files?

1

u/PolicyArtistic8545 Mar 21 '24

Maybe read the script yourself and find them?

1

u/UnfanClub Mar 21 '24

Ah, my bad. I read it the first time on my mobile and missed that part.

My sandbox doesn't like the .cmd files. Including the fact that it has sandbox detection.

Anyhow good luck to you.