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
- rev-basic-3
- rev-basic-5
- rev-basic-4
- 코드엔진 베이직
- CodeEngn
- rev-basic-2
- pwnable.kr
- RCE
- off_by_one_001
- 드림핵
- basic_exploitation_000
- L18
- Dreamhack
- sd카드 리더기
- Basic
- rev-basic-7
- rev-basic-0
- 포너블
- basic_exploitation_001
- Pwnable
- L17
- L16
- coin1
- rev-basic-1
- L15
- rev-basic-6
- out_of_bound
- sint
- 코드엔진 베이직 13
- off_by_one_000
Archives
- Today
- Total
목록mistake (1)
서브웨이
pwnable.kr mistake 풀이
자 읽어보니 뭔가 실수에 관한거랍니다. 힌트도 있습니다. 연산의 우선순위를 생각하라네요. 일단 접속해봅시다. 이렇게 4개의 파일이 있네요. 일단 소스코드부터 봅시다. #include #include #define PW_LEN 10 #define XORKEY 1 void xor(char* s, int len){ int i; for(i=0; i 0)){ printf("read error\n"); close(fd); return 0; } char pw_buf2[PW_LEN+1]; printf("input password : "); scanf("%10s", pw_buf2); // xor your input xor(pw_buf2, 10); if(!strncmp(pw_buf, pw_buf2, PW_LEN)){ pr..
Pwnable/pwnable.kr
2020. 8. 14. 15:47