Skip to content

MouChiaHung/StackOverflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StackOverflow

Stack Overflow Attack

call convention

push ebp    //*(++esp) = ebp;
mov ebp esp //ebp = esp;
sub esp N   //esp -= N;
...
mov esp ebp //esp = ebp;
pop ebp     //ebp = *(esp--)
ret         //pop eip //eip = *(esp--)

#memory map

<Higher address>
--------
parameter
--------
return addr
--------
old ebp         <- ebp
--------
except handler
--------
local variable
--------
buffer
--------
callee save registers <- esp
--------
<Lower address>

#Reference https://www.tenouk.com/Bufferoverflowc/Bufferoverflow2a.html

About

Stack Overflow Attack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published