So, I restored the function with checking the flag and key, suddenly it will come in handy for someone:
Link - pastebin.com/2Xa28tSw
Password - crackmes.one |
==> |
Can't run on windows 10 |
==> |
Okay, the code didn't fit in a comment, so here's the link:
https://pastebin.com/3Qe3eBGL
Password - crackmes.one |
==> |
Okay, it was very interesting and not easy (~20-30m))
So, login length must be at least 6 characters, password is reversed login.
Reconstructed CheckPassword(const char*, _BYTE*):
#include
#include
// login - any string
// password - reversed login
bool CheckPassword(const char* login, const char* password) {
int length = (int)strlen(login);
if (length = 6 !
std::cout |
==> |
Okay, it wasn't easy.
Keyfile data(hex):
00 00 00 00 B2 9E 79 FF 00 00 36 00 4E |
==> |