Find the Name when the Serial is 5B134977135E7D13.
Name, Serial 값을 입력하고 틀리면 바로 프로그램을 종료시킨다.
Name으로 Serial 값을 만드는 과정을 살펴봐야한다.
Name 한 바이트씩, 0x10, 0x20, 0x30과 돌아가며 XOR 연산하여 나온 16진수 값을 그대로 문자열로 변환한다. 예를 들어 첫자리가 '1'(=0x31)이면 XOR 연산 후, 0x21이 되어, 0x3132로 Serial 값에 입력된다.
from Crypto.Util.number import *
a = 0x5b134977135e7d13
b = 0x1020301020301020
print long_to_bytes(a^b)
serial key : K3yg3nm3
'Writeup [rev] > reversing.kr' 카테고리의 다른 글
ImagePrc (0) | 2020.03.27 |
---|---|
Music Player (0) | 2020.03.27 |
Replace (0) | 2020.03.27 |
Easy Crack (0) | 2020.03.26 |