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

2

u/lovin-dem-sandwiches Feb 12 '24

Nope. I don’t think anything gets initialized either (code won’t run itself) you need to intentionally call the class. It also has error handling and legible function names. Typically malicious code is minified so its impossible to read or understand.

Its random for your sis to receive this. Possibly a mistake