War Games/pwnable.kr
[pwnable.kr] mistake(1 pts) :: Write-Up
We all make mistakes, let's move on. (don't take this too seriously, no fancy hacking skill is required at all) This task is based on real event Thanks to dhmonkey hint : operator priority ssh mistake@pwnable.kr -p2222 (pw: guest) mistake@ubuntu:~$ cat mistake.c #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(f..