Format String Vulnerabilities

FA2018 Week 10

pwn
rev
format strings
printf
Joseph Ravichandran
Loading PDF…
1 of 1

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