드림핵 Easy Assembly 롸업
check_password에서 행해지는 연산을 하면 enc_flag가 원래 flag로 나올것 같다.이 과정을 역연산하는 코드를 짜봤다.import base64db=[0x74,0x78,0x4b,0x65,0x77,0x48,0x5c,0x69,0x68,0x7e,0x5c,0x79,0x77,0x62,0x46,0x79,0x77,0x5,0x46,0x54,0x73,0x72,0x59,0x69,0x68,0x7e,0x5c,0x7e,0x5a,0x61,0x57,0x6a ,0x77,0x66,0x5a,0x52,0x2,0x62,0x5c,0x79,0x77,0x5c,0x0,0x7c,0x57,0xd,0xd,0x4d]flag=[]for i in range(len(db)): flag.append(chr((db[i]^(len(db)^..