Format String Vulnerabilities

FA2018 Week 10

pwn
rev
format strings
printf

Useful printf format specifiers

  • %x: print hexadecimal
  • %d: print decimal
  • %s: print string, given pointer to string on stack
  • %n: store number of characters printed thus far into a pointer on the stack