malloc1 [shell ctf 2022] Keygen 1. 개요 코드 분석 문제 2. 분석 main 함수에서 인증 성공하면 getString 함수를 호출합니다. getString 함수를 c언어로 옮겨서 출력했습니다. #include #include int main() { char *puVar1; puVar1 = malloc(0x19); *puVar1 = 0x53; puVar1[1] = 0x48; puVar1[2] = 0x45; puVar1[3] = 0x4c; puVar1[4] = 0x4c; puVar1[5] = 0x43; puVar1[6] = 0x54; puVar1[7] = 0x46; puVar1[8] = 0x7b; puVar1[9] = 0x6b; puVar1[10] = 0x33; puVar1[0xb] = 0x79; puVar1[0xc] = 0x67; pu.. 2022. 8. 16. 이전 1 다음