Chào mọi người, mình đang làm bài toán gỡ 1 quả bomb. Mình tìm trên mạng thì có 1 trang viết bằng tiếng nhật hướng dẫn. Mình dịch sang tiếng anh để đọc nhưng chưa hiểu. Mong diễn đàn giải đáp giúp ạ.
0x401ebe It is stored in “% d% d”, and then reads the sscanf. The first number in 0xc (% rsp), the less than 16, then into% eax, will be used later as an array index and the second on 0x8 (% rsp), and finally to compare and% edx.
Here is the key code:
Where in %edx as counter 12 is equal to the last. mov 0x401ba0(,%rax,4),%eax% Eax as the value of the array index value is stored again it points in% eax,% ecx is calculated while this process and all% eax,% eax up equal to the 15 (cltq instruction is extended from 32 to 64 bit).
Thus the 0x401048 set breakpoint, dump out the entire array.
Get the whole point chain: 15->5->12->3->7->11->13>9->4->8->0->10->1->2->14->6->15so the answer is 7 93.