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 |
Tags
- shellcode
- pwnable.kr
- Leak
- writeup
- 2018
- Bottle
- shellcraft
- practicalmalwareanalysis
- anti
- format
- CANARY
- FSB
- Reverse
- toddler
- reversing
- PMA
- Toddler's Bottle
- pwnable
- TUCTF
- pico
- string
- Read
- BOF
- CTF
- Bug
- Rookiss
- picoCTF
- ASM
- rev
- pwn
Archives
- Today
- Total
목록NX enabled (1)
제리의 블로그
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dWAWkg/btrtk0LygTu/BtdMSJ4S8y755pqOunsOg0/img.png)
하임시큐리티 CTF에 pwnable 의 Warmup 을 풀이해본다. // warmup.c #include #include #include void init() { setvbuf(stdin, NULL, _IONBF, 0); setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0); } void vuln() { char buf[0x30]; memset(buf, 0, 0x30); write(1, "> ", 2); read(0, buf, 0xc0); // Stack Overflow!! } int main(void) { init(); vuln(); exit(0); } vuln 함수를 보면, buf 크기 0x30 만큼 할당한 후 0xc0 만큼 덮어쓰는 ..
CTF/pwnable
2022. 2. 14. 22:11