Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- hacking
- simple-operation
- format-string-bug
- yawa
- rev-basic-1
- Reverse Engineering
- rev-basic-0
- downunder
- rop
- easycrack
- 메모리 구조
- 세명컴퓨터고등학교
- 247ctf
- wargame
- misc
- reversing.kr
- Dreamhack
- system hacking
- 기초 100문제
- 코드업
- rev
- pwnable.tw
- easy aseembly
- Beginner
- tjdmin1
- pwnable
- CodeEngn
- foobar ctf
- downunderctf
- RAM 구조
Archives
- Today
- Total
Tjdmin1
[CodeEngn] RCE Basic L01 본문
https://codeengn.com/challenge/rce_basic
CodeEngn [코드엔진] 리버스엔지니어링 컨퍼런스
CodeEngn Challenge 리버스엔지니어링을 처음 접하는 분들을 위한 초급단계 Manager >> Auth | Checkin List | Hall of Fame Challenge >> Basic | Advance | Pro | Malware | Crypto | Mobile RCE Basic Level Description Author Download Basic L01
codeengn.com
HDD를 CD-Rom으로 인식시키기 위해서는 GetDriveTypeA의 리턴값이 무엇이 되어야 하는가
Problem Solving
여기서 loc_40103D가 호출 되어야지 CD-Rom으로 인식하는 것입니다.
GetDriverTypeA가 호출되고 나서 esi가 3번 1이 더해지고 eax가 2번 1이 빠집니다.
그리고 두 값을 비교하여 Zero Flag가 1로 설정되면 ( 값이 같으면 ), loc_40103D로 이동되는 것입니다.
즉 inc esi * 3 = esi = 3
dec eax = eax = n(리턴 값) - 2
eax = esi, 즉 n - 2 = 3
n = 5가 됩니다.
따라서 GetDriveTypeA의 return 값은 5가 되어야 합니다.
'Reverse engineering' 카테고리의 다른 글
[reversing.kr] Easy Crack (0) | 2025.03.13 |
---|---|
[Dreamhack] simple-operation (1) | 2024.07.03 |
[Dreamhack] rev-basic-1 (1) | 2024.07.03 |
[Dreamhack] rev-basic-0 (0) | 2024.07.03 |
[Dreamhack] Easy Assembly (0) | 2024.07.03 |