반응형
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 | 31 |
Tags
- 스케줄링
- 삼성리서치
- samsung research
- 알고리즘
- 가상메모리
- Deadlock
- 백준
- exec
- 삼성기출
- dfs
- BFS
- 완전탐색
- 구현
- 운영체제
- 시뮬레이션
- pwnable.kr
- segmentation
- 프로세스
- 백트래킹
- 동기화문제
- ascii_easy
- BOJ
- paging
- higunnew
- Memory Management
- Brute Force
- 김건우
- 데드락
- fork
- 컴공복전
Archives
- Today
- Total
목록mistake (1)
gunnew의 잡설
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/b9kJxP/btqBUTSWHON/67e7BmFpR99asICrnUgtI1/img.png)
이번 것은 굉장히 쉬웠다. 그러나 이전에 트라우마(?)가 있어 gdb로 뜯어보다가 시간만 날렸다. 결론부터 말하면 그냥 C파일만 봐도 된다. 왜냐하면 힌트에 operator priority가 쓰여있기 때문. 소스 코드를 통한 풀이 #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(!s..
System Security
2020. 2. 12. 19:14