
Python Pwntools Hacking: ret2libc GOT & PLT
Source: YouTube · John Hammond · published Apr 12, 2023 · 44:51
The video demonstrates solving a 64-bit buffer overflow CTF challenge named "Misfortune" by crafting a Return-to-libc (ROP) payload to bypass NX protection and obtain a shell 0:00.
Key Takeaways:
• The creator identifies a buffer overflow vulnerability that clobbers the RBP register when excessive input causes a segmentation fault 2:15.
• Using a cyclic pattern payload, the attacker determines the buffer overflow offset is 32 bytes 14:41.
• Due to NX protection preventing shellcode execution, the solution requires Return-Oriented Programming (ROP) to chain pop rdi and ret instructions found at specific addresses in the binary 22:31.
• An intermediate payload uses the PLT (puts) and GOT (alarm) to leak the runtime address of the alarm function from libc 28:20.
• By calculating the libc base address from the leak, the attacker locates the system function and /bin/sh string to craft a final payload that spawns a shell 32:40.
Success required combining stack alignment tricks with the ROP chain to successfully execute system("/bin/sh") 37:42.
Sources:
Generate CPE Credits
Generate a professional CPE document from this video's transcript.
Estimated credit: 0.5 CPE hours
Estimate uses the video runtime (1 hour ≈ 1 CPE, rounded to the nearest 0.5, minimum 0.5, maximum 2.0). The final amount can be lower after review, never higher.
Topic: Cybersecurity. Commonly maps to: Security and Risk Management, Security Operations. Exact CISSP domains are assigned during generation.
Free account. One generation at a time, with a daily limit.
CPEBuddy is independent and not affiliated with or endorsed by ISC2, ISACA, or any certification body. Exports are formatted for common CPE submissions; acceptance is at your certification body's discretion.
Transcript Preview
First 800 characters of the transcript
I created a small challenge to practice binary exploitation techniques in this video I want to showcase how you can play with it you can access it you can download it you can follow along and in this video I'll showcase the solution and by the way uh this video is actually going to use the same techniques as a much longer video already uploaded on my channel binder exploitation Basics with Matt where we do get into a ret to lib C or return to libsy attack for Linux 64-bit applications and binaries uh and that is a significantly longer video hopefully this one will be a little bit shorter kind of speed running cruising through it and still getting all the good stuff but uh in case you had the attention span for that much longer video that is accessible if you want to go dig into more anyway…