You are on page 1of 5

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  
Tampering  the  Return  Address  

©SecurityTube.net  
Return  Address  
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  
Return  Address  

Low  Memory  
main(…..)  
{  
 ….  
 func'on(0x11111111);  
 ….   DoNotExecute(…..)  
  {  
Local  
}    local  variable  defini'ons;  
Variables  +  
 ….  
Others  
 return  1;  
 
}  
EBP  
(Frame  
func'on1(…..)   Pointer)  
{  
 local  variable  defini'ons;   RETURN  
 ….   Address  
 return  1;  
 
}   0x11111111  

-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐   High  Memory  

©SecurityTube.net  
Pentester  Academy  

©SecurityTube.net  

You might also like