Professional Documents
Culture Documents
Exploit Writing For Beginners
Exploit Writing For Beginners
WRITING FOR
BEGINNERS
SABARI SELVAN, E HACKING NEWS
STACK
Intro to Stack
Stack Buffer Overflow attack
Demo
Intro to Stack
0x000000
00
Local Variable of
VulnFun( buf)
Save previous Base
Pointer
Return Address
Arguments for
VulnFun function
( argv[1] )
Local variables of
Main
Save previous Base
Pointer
Return Address
0xFFFFFF
OverFlow
Stack Pointer
(ESP)
Return Address
Base Pointer
(EBP) of
VulnFun
Arguments for
VulnFun function
( argv[1] )
Local variables of
Main
Save previous Base
Pointer
Return Address
Base Pointer
(EBP) of main
EXPLOITING OVERFLOW
Stack Pointer
(ESP)
0x004012C9
Return Address
modified by exploiting
the overflow
Arguments for
VulnFun function
( argv[1] )
Local variables of
Main
Save previous Base
Pointer
Return Address
Base Pointer
(EBP) of Main
Thank You