LSDtrip crackme! |
Firstly i made a patch, then i found a first solution in the .c that i provided and lastly i made a keygen using python. I pasted the keygen right below, it's really short. The password has to be 4 char long and it has to respect an equation. Password = "abcd" with the ascii int values of your chars such as a*1 + b*2 + c*3 + d*4 + 50 = 945. why 50? because the exe uses fgets and it has a \n read when you hit enter and \n is 10. You * by 5 and voila, 50. My keygen uses random to generate a pass with printable characters (31 to 127 in the ascii table). Thanks for the crackme ! It was my first it's so entertaining !
import random
while True:
i = random.randint(31, 127)
j = random.randint(31, 127)
k = random.randint(31, 127)
l = random.randint(31, 127)
print(f'{i} : {chr(i)}')
print(f'{j} : {chr(j)}')
print(f'{k} : {chr(k)}')
print(f'{l} : {chr(l)}')
print('-------------------')
if i + 2*j + 3*k + 4*l + 10*5 == 945:
print(f'A password is : "{chr(i)}{chr(j)}{chr(k)}{chr(l)}"')
exit() |