pwntools

osusec

monday, 1/6

Capture The Flag League

pwntools

  • pizza
  • streaming
  • unmuted
  • cd’d into the right directory

what’s pwntools

python library

  • easy way to talk to programs
  • remote or local!

everything’s bytes

  • pwntools doesn’t assume any type
  • receiving a message? it’s bytes
  • sending a message? it’s bytes
  • confusing at first, but better than the alternative

install

  • pip install pwntools
  • or pacman -S python-pwntools
  • or however you install python packages on yr machine

kk demo

knowledge 4 tn

  • OTP = one-time-pad = bytes of one thing XORed with bytes of another thing
  • file signatures AKA magic bytes