jnewb on 12:58 AM 01/26/2025: please enable static linking, I couldn't run it without downloading mingw libs
-static-libstdc++
https://www.reddit.com/r/cpp_questions/comments/yczf2v/libstdc6dll/
nightxyz on 1:51 PM 01/26/2025: Password : iiiiiii}
tyller on 3:58 PM 02/08/2025: Idk about the password but i managed to crack the software to always get the correct password, IK but i didnt even touch the think that prints the text i swear.
Artymist on 7:59 AM 02/15/2025: It's not hard to find the password if you got the correct buffer to xor
You must me logged to submit a solution
Solution by Koalko: The password length in the program is constant and equals 8. After entering the password, the program goes through the password 3 times, using XOR encryption (xorEncryptDecrypt) with the values 75, 76 and 77. It is easy to calculate that 75^76^77 = 74. The calculateChecksum function returns the sum of the ASCII values of the characters in the string. Therefore, to build the password, we need to find values such that when XORed with 74 and subtracted from 300, they will be multiples of 7 (since the original password length is 8, and now we are calculating the index of the first value). Once we find the first value of the password, we can calculate the next character and repeat it 7 times.
To calculate the next character, we keep temporary variables for convenience. Let A be the missing sum for the checksum, then A = 300 - (index ^ 74). Let B be the XOR value of the required character. Since we need to fill 7 characters and A is a multiple of 7, then B = A / 7. So the required character index is B^74. The general formula is:
(300 - (i^74)) / 7) ^ 74