0

I was trying to exploit a simple buffer overflow on a self created binary. i have disabled all the security features by compiling with the flags - --fno-stack-protector -z execstack -no-pie. my program just copied data through gets on a defined variable. however when i try to overwrite the RIP and check the crash point, i get this - dmesg | tail

what can i do to overwrite the rip?

  • 2
    Hello and welcome to RE.SE! Please be more verbose. Paste your crash context - location, regs, stack under gdb - in text. Attaching the binary would be great ofc. – sudhackar Apr 8 at 13:38
  • 2
    from your RIP (0x41414141415d) that you've managed to overwrite rip. – Paweł Łukasik Apr 8 at 16:56
  • But shouldnt it be 0x414141414141 as i had only put A's – 3xpl017 Apr 9 at 3:26
  • Can you just share program binary if it is ok? – de6f Jul 22 at 9:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.