From 61348864dd5e542adebd90e77432756ac5db024f Mon Sep 17 00:00:00 2001 From: firmianay Date: Tue, 20 Mar 2018 12:33:11 +0800 Subject: [PATCH] fix back --- doc/3.3.6_heap_exploit_1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/3.3.6_heap_exploit_1.md b/doc/3.3.6_heap_exploit_1.md index 4f730af..c38ef8e 100644 --- a/doc/3.3.6_heap_exploit_1.md +++ b/doc/3.3.6_heap_exploit_1.md @@ -622,7 +622,7 @@ BK->fd = FD ``` chunk0_ptr = P = P->fd ``` -成功地修改了 chunk0_ptr,这时 `chunk0_ptr[0]` 和 `chunk0_ptr[3]` 实际上就是同一东西: +成功地修改了 chunk0_ptr,这时 `chunk0_ptr` 和 `chunk0_ptr[3]` 实际上就是同一东西。这里可能会有疑惑为什么这两个东西是一样的,因为 `chunk0_ptr` 指针在是放在数据段上的,地址在 `0x601070`,指向 `0x601058`,而 `chunk0_ptr[3]` 的意思是从 `chunk0_ptr` 指向的地方开始数 3 个单位,所以 `0x601058+0x08*3=0x601070`: ``` gef➤ x/40gx 0x602010-0x10 0x602000: 0x0000000000000000 0x0000000000000091 <-- chunk 0