| Rust Crackme Very Easy |
[Click to reveal]I searched for the string "Correct!" and followed its cross-reference to FUN_140002180. This function contains the following call and conditional branch:
uVar2 = FUN_140002430(
local_48,
(ulonglong)local_40,
"Cr4ckme_Rus7",
0xc
);
if (((char)uVar2 == -1) || ((char)uVar2 != '\0')) {
// Prints "Wrong!"
}
else {
// Prints "Correct!"
}
I then examined FUN_140002430. It compares the two byte sequences using memcmp and, if the compared bytes match, checks their lengths. The comparison result evaluated by the caller is zero when both contents and lengths match, so the program takes the else branch and prints "Correct!".
The password is therefore: Cr4ckme_Rus7
→ Alternative solution:
The password is also stored in plaintext in the executable and can be found directly with a hex editor. ;o)
|
2026-11-14 23:04 |