반응형
#include <stdio.h>
int main() {
int answer[32] = {0xAC, 0xF3, 0x0C, 0x25, 0xA3, 0x10, 0xB7, 0x25, 0x16, 0xC6, 0xB7, 0xBC, 0x07, 0x25, 0x02, 0xD5,
0xC6, 0x11, 0x07, 0xC5};
int answer_count = 0; // answer 배열의 count 변수
int ascii_count = 0; // ascii 코드의 count 변수
int correct_string = 0; // 정답 문자를 담을 변수
for(answer_count=0; answer[answer_count]!=NULL; answer_count++) {
for(ascii_count=0; ascii_count<=127; ascii_count++) {
correct_string = ascii_count*0xFB&0xFF;
if(correct_string == answer[answer_count]) {
printf("%c", ascii_count);
}
}
}
}
int answer[32] = {0xAC, 0xF3, 0x0C, 0x25, 0xA3, 0x10, 0xB7, 0x25, 0x16, 0xC6, 0xB7, 0xBC, 0x07, 0x25, 0x02, 0xD5,
0xC6, 0x11, 0x07, 0xC5};
int answer_count = 0; // answer 배열의 count 변수
int ascii_count = 0; // ascii 코드의 count 변수
int correct_string = 0; // 정답 문자를 담을 변수
for(answer_count=0; answer[answer_count]!=NULL; answer_count++) {
for(ascii_count=0; ascii_count<=127; ascii_count++) {
correct_string = ascii_count*0xFB&0xFF;
if(correct_string == answer[answer_count]) {
printf("%c", ascii_count);
}
}
}
}
15분
반응형
'문제풀이 > 리버싱' 카테고리의 다른 글
악성코드 분석 채팅방을 들어가보자(crack_me_v.3.0_.exe) (0) | 2024.11.16 |
---|---|
dreamhack 리버싱 rev-basic-9번 분석과 코드 (0) | 2022.03.15 |
dreamhack 리버싱 rev-basic-7번 코드 (0) | 2022.03.15 |
dreamhack 리버싱 rev-basic-6번 코드 (0) | 2022.03.13 |
dreamhack 리버싱 rev-basic-5번 코드 (0) | 2022.03.13 |