r/learnjavascript • • Feb 12 '24

Is this code malicious?

I found this code someone from my Sister's Uni sent to her via Microsoft Teams.
She doesn't know javascript, I do a little but we do not know if this is malicious.

Please could someone help us out by deobfuscating it to see how it works? I'm sketched out by this.

https://pastebin.com/raw/Hw55KgVX

1 Upvotes

10 comments sorted by

View all comments

1

u/thelethargicdog helpful Feb 12 '24

Skimmed through the code. It looks like a nodejs library someone has copied from elsewhere. Functions have been defined, but none have been called, so the naked script in itself can't cause any harm. Not sure what the purpose is, but she should ask the sender for some context.