Exploiting a buffer overflow vulnerability with ROP chains.
This is a basic ROP based Buffer Overflow attack scenario. You can compile the vuln.c with gcc as below.
gcc -m64 -no-pie -fno-stack-protector -static vuln.c -o bof
If you get lost, refer this articel where I talk about what ROP is and the way of exploiting it.
Changing the execution flow:
https://kavigihan.medium.com/rop-attacks-via-buffer-overflow-using-pwntools-part-1-a3a3fa6a483
Getting Command Execution:
https://kavigihan.medium.com/rop-attacks-via-buffer-overflow-using-pwntools-part-2-448804f56d4e
Email - iamkavigihan@gmail.com
Instagram - https://www.instagram.com/_kavi.gihan/