/strace_lab_PUBLIC

Lab material for strace talk

Primary LanguageC

Strace Lab

This lab gives hands on exercises to experiment with the strace utility. The corresponding presentation was given virtually at DEF CON 2021's Packet Hacking Village.

Requirements

  • Linux host (tested on Ubuntu 20.04)
  • Required packages gcc, make and strace (sudo apt-get install gcc make strace)

Building

  • make

Challenges

  1. Experiment with challenges 1-3 from the video for hands on experience.
  2. Without looking at the source, discover why challenge_4.bin is difficult to trace.
  3. challenge_5.bin was given to you by a developer to test. What's a key detail they left out that this binary requires?
  4. How can you inject via strace to make challenge_5.bin run?
  5. Build a tool to take the hex dump from the write syscall and make the ELF from challenge_3.bin recoverable.