You are on page 1of 6

Exploi'ng

 Simple  Buffer  Overflows  on  


Win32  

Vivek  Ramachandran  
SWSE,  SMFE,  SPSE,  SISE,  SLAE,  SGDE  Course  Instructor  

Cer'fica'ons:                          hNp://www.securitytube-­‐training.com    
 
Pentester  Academy:    hNp://www.PentesterAcademy.com    

©SecurityTube.net  
The  Stack  

©SecurityTube.net  
Stack  Basics  

•  Temporary  Storage  Area  for  a  Program  

•  Arguments  to  Func'ons,  Return  Addresses,  


Local  Variables  etc.  

©SecurityTube.net  
Understanding  the  Stack  
Low  Memory  
main(…..)  
{  
 ….  
 func'on(0x11111111);  
RETURN  Address    ….  
  Local  Variables  +  
Others  
}  

EBP  
(Frame  Pointer)  
func'on1(…..)  
{  
 local  variable  defini'ons;   RETURN  Address  
 ….  
 return  1;  
  0x11111111  
}  

©SecurityTube.net  
-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐   High  Memory  
Unwinding  of  the  Stack  
Low  Memory  
main(…..)  
{  
 ….  
 func'on(0x11111111);  
RETURN  Address    ….  
  Local  Variables  +  
Others  
}  

EBP  
(Frame  Pointer)  
func'on1(…..)  
{  
 local  variable  defini'ons;   RETURN  Address  
 ….  
 return  1;  
  0x11111111  
}  

©SecurityTube.net  
-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐   High  Memory  
Pentester  Academy  

©SecurityTube.net  

You might also like