Hacker News new | ask | show | jobs
by amluto 45 days ago
This doesn’t require any fancy analysis. You can literally read the password off it — the last bit is an oddly decompiled string comparison.
2 comments

Well most SWEs need an llm to spell their own name now.
That's not true, copy and paste hasn't fully atrophied for most people yet.
Claude disagreed with this take but I'm but I'm not sure it's true myself.
Not everybody writes in the language they want to exploit I suppose, that's the great thing about LLMs!

on edit: even though I don't know C or C++ (I suppose it's C but can't be sure) I do think I can figure out what it's doing and how to guess what the password is, so that seems bad.

It’s the Windows dialect of C with Microsoft quasi-Hungarian-notation type names. Whole generations of programmers have grown up with these and all too many somehow think they make sense :)

But the relevant bit is at the end, from “if” to “return”, and should be pretty accessible to anyone familiar with an imperative language who can get past the general ugliness of the code. Once that’s figured out, you can recover the password by copying and executing the rest of the function.