News for hackers. Stuff that matters.
Re:Unlocking Discord Nitro Features for Free by its_a_random_ac on Tuesday August 22, 2023 @01:08AM (#37218890)
I'm not accusing the author of doing this, but providing a simple base64 encoded blob at the end to run to enable everything would be a pretty easy attack vector, wouldn't it?

edit: just decoded it and touché

Re:Unlocking Discord Nitro Features for Free by berbec on Tuesday August 22, 2023 @01:28AM (#37219022)
For those to lazy to run base64 --decode, here's the result:

// Here's a cake if you thought about inspecting the code before executing it:

let css = 'font-size: 36px; font-weight: bold; color: red';

console.log("%cNEVER paste code you don't understand into the development console.", css); console.log("%cThis is the best way to compromise your account.", css);

Re:Unlocking Discord Nitro Features for Free by mythz on Tuesday August 22, 2023 @04:46AM (#37220135)
> For those to lazy to run base64 --decode, here's the result:

Or just strip the eval and use JS's native base64 decoder:

atob(base64)

Re:Unlocking Discord Nitro Features for Free by _joel on Tuesday August 22, 2023 @05:01AM (#37220229)
"Don't cross the streams!", although I take your point...
Re:Unlocking Discord Nitro Features for Free by SamuelAdams on Tuesday August 22, 2023 @07:37AM (#37221265)
CyberChef has been my go to for a while for this sort of stuff. Easy to use GUI, can stack multiple commands fairly easily.

https://gchq.github.io/CyberChef/

Re:Unlocking Discord Nitro Features for Free by notpachet on Tuesday August 22, 2023 @09:26AM (#37222392)
Wow, I had zero idea you could use string substitution for formatting console.log messages. (Although I guess if I'd stopped and thought about it, there had to be something enabling those big scary messages in the console for certain websites...)
Re:Unlocking Discord Nitro Features for Free by someguy7250 on Tuesday August 22, 2023 @12:53PM (#37225440)
> NEVER paste code you don't understand into the development console

Tech companies have long achieved security by simply locking people out of choices that they shouldn't make.

I'm suspecting that Google will soon lock people out of Chrome's developer tools unless they can prove they are a developer (with a certificate that's tied to the website they are debugging)

Re:Unlocking Discord Nitro Features for Free by kervantas on Wednesday August 23, 2023 @05:09AM (#37233507)
> with a certificate that's tied to the website they are debugging

And they will tell us this is for our own security!

Re:Unlocking Discord Nitro Features for Free by memefrog on Thursday August 24, 2023 @02:30AM (#37245694)
Use Firefox!