~/talk

Return Oriented Programming, an introduction

Talkat NDC TechTown 2023 · 2023-09-18..09-21· [security, computer-vision]
slides:none on file

Explains how to get code execution on non-executable stacks by converting C shellcode into inline assembly then into a ROP chain, using 32-bit addresses to avoid null bytes, finding gadgets with ropper, assembling gadgets like pop eax; mov [edx], eax; xor eax; and ending with int 0x80 to call /bin/sh. Builds the exploit string, feeds it to the vulnerable program under GDB, and demonstrates that the chain succeeds — a working shell is obtained.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Talk overview
  3. 2:35Weird machine basics
  4. 5:30Shellcode intro 32-bit
  5. 7:17Shellcode goals syscalls
  6. 9:04C to shellcode method
  7. 11:18Inline assembly syscalls
  8. 13:28Close syscall assembly
  9. 16:20Open syscall string
  10. 20:34Execve syscall assembly
  11. 22:17Testing shellcode
  12. 23:01Introduction to return oriented programming
  13. 25:30ROP chains gadgets
  14. 27:59ROP chain exploit
  15. 30:05Ropper automation
  16. 32:14Analyzing Ropper chain
  17. 35:05ROP gadget breakdown
  18. 41:11Custom ROP chain
  19. 44:02Missing gadgets search
  20. 45:26Final exploit string
  21. 46:33Exploit testing GDB
  22. 48:44Shellcode demo
  23. 49:25Training closing
  24. 50:09ROP Windows platforms
  25. 52:35Mitigations challenges
~/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.