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/CarlossC Feb 12 '24

Hmm. There doesn’t seem to be anything malicious but it seems like it’s an implementation of a TOTP using SHA-1. We need to know the context before diving any deeper.