~/talk

The Anatomy of an Exploit

Talkat NDC TechTown 2019 · 2019-09-02..09-05· [security]
slides:none on file

A step-by-step exploit walkthrough shows a vulnerable C program that reads with gets-based vuln and how overwriting a stack buffer changes local variables and return pointers. It uses gdb plus Metasploit’s pattern_create/pattern_offset to find the offset, crafts x86_64 shellcode that does execve("/bin/sh"), fixes null-byte and TTY issues, and demonstrates success in a debug run after disabling mitigations (canaries, NX, ASLR). The exploit works but only after those protections are turned off, highlighting realistic mitigations and ROP alternatives.

AI-written summary · about

  1. 0:00Start
  2. 0:34Patricia Aas - Trainer & Consultant
  3. 14:44Make: Turn off stack protector
  4. 16:01Debug Build
  5. 18:11Let's test the release build
  6. 20:05Lets try a shorter string
  7. 22:32Automate the string
  8. 24:22Use sed to binary patch
  9. 40:49Look at the assembly of main
  10. 46:27Compile and test the assembly
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.