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
- L17
- rev-basic-2
- basic_exploitation_000
- CodeEngn
- basic_exploitation_001
- L18
- 포너블
- pwnable.kr
- Basic
- 코드엔진 베이직 13
- off_by_one_001
- RCE
- L16
- 코드엔진 베이직
- rev-basic-5
- rev-basic-6
- rev-basic-3
- rev-basic-4
- rev-basic-7
- Dreamhack
- sint
- L15
- rev-basic-1
- out_of_bound
- coin1
- Pwnable
- off_by_one_000
- sd카드 리더기
- 드림핵
- rev-basic-0
Archives
- Today
- Total
목록off_by_one_001 (1)
서브웨이
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/0ibJG/btrat1XAItS/mRFoW2FAvKzhVfCukF11a1/img.png)
이전 문제와 비슷한 유형일 것 같습니다. 일단 소스코드를 봅시다. #include #include #include #include void alarm_handler() { puts("TIME OUT"); exit(-1); } void initialize() { setvbuf(stdin, NULL, _IONBF, 0); setvbuf(stdout, NULL, _IONBF, 0); signal(SIGALRM, alarm_handler); alarm(30); } void read_str(char *ptr, int size) { int len; len = read(0, ptr, size); printf("%d", len); ptr[len] = '\0'; } void get_shell() { system("/bi..
Pwnable/dreamhack
2021. 7. 27. 15:14