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 |
Tags
- NGINX
- 코드게이트2017
- blueborne
- 노드 엑셀
- https
- gogs private git
- Git
- npm
- node.js
- 코드게이트 주니어
- pwnable
- shellcraft
- codegate2017
- Branch
- https설정
- node
- Codegate
- 코드게이트
- 도메인 https
- Hacking
- gogs
- CODEGATE2018
- lob
- xlsx
- BLUETOOTH
- module
- CVE
- doorlock
- openctf
- pwntools
Archives
- Today
- Total
고졸백수해킹일기
golem->darkknight 본문
나도 어떻게 푼건진 잘 모르겠지만 일단 "A"*40+"B"이렇게 입력하면 ebp(sfp)의 값을 덮어쓸수 있게된다.
leave ret과정은 아래와 같다.
mov %ebp,%esp
pop %ebp
pop %eip
jmp %eip
ebp에 shellcode가 들어있는 주소를 넣게되면 쉘이 따이게 된다.
gdb에서는 왠지 모르게 argv error도 뜨고, 주소를 참조할수 없다고 막 뜨는데, 그냥 실행해보면 문제가 풀린다.(왜 그런지는 모르겠다. 화났다. 푼건 4시30분인데 의미없는 디버깅 2시간 20분동안 했다 짜증난다)
new attacker
'Wargame > lob' 카테고리의 다른 글
bugbear->giant (0) | 2018.03.07 |
---|---|
darkknight->bugbear (0) | 2018.02.27 |
skeleton->golem (0) | 2018.01.30 |
vampire->skeleton (0) | 2018.01.28 |
troll->vampire (0) | 2018.01.26 |