일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- RTL
- H4CKING GAME
- srop
- BOF
- UAF
- Dynamic Analysis
- shellcode
- Android
- DFC 2022
- Lazenca
- _IO_FILE
- seccomp
- heap feng shui
- GOT overwrite
- __environ
- Reversing
- DFB
- heap
- master canary
- DreamHack
- 나뭇잎 책
- _IO_FILE Arbitrary Address Read
- K-shield Junior
- HackCTF
- ROP
- vtable
- _IO_FILE Arbitrary Address Write
- heap exploit
- tcache
- malware
- Today
- Total
목록Wargame/pwnable.tw (2)
Studying Security

Mitigation Main function Vulnerability Analysis seccomp-tools로 해당 바이너리 파일을 살펴보면 rt_sigreturn, sigreturn, exit_group, exit, open, read, write에 대해서 허용을 해놓을 것을 확인할 수 있습니다. main함수를 살펴보면 0x804a060에 0xc8 size의 데이터를 입력 받고 0x804a060을 호출하고 있습니다. 목표는 /home/orw/flag의 값을 획득하는 것이기 때문에 0x804a060에 flag를 획득할 수 있는 shellcode를 작성하면 됩니다. shellcode는 아래와 같은 동작을 수행하도록 작성하면 됩니다. fd = open("/home/orw/flag") read(fd, buf..

Mitigation _start Vulnerability Analysis _start를 차근차근 살펴봅시다. 1. esp와 0x804809d를 stack에 push 합니다. 2. eax, ebx, ecx, edx register들을 0으로 초기화 합니다. 3. write system call을 통해 "Let's start the CTF:" 라는 문자열을 출력합니다. 이 때 "Let's start the CTF:"의 문자열이 들어 있는 stack의 주소를 str_addr이라고 하면 → write(0x1, str_addr, 0x14) 4. read system call을 통해 0x3c size만큼의 입력을 받고 있습니다. → read( 0, str_addr, 0x3c) 5. esp + 0x14 이 후 ret..