Static ain't always noise (picoCTF 38)

Challenge Author: SYREAL

Category: General Skills

Difficulty: Easy

Description

Can you look at the data in this binary: static? This BASH script might help!

Process / Notes

  1. wget the items
  2. file shows static is also an ELF 64-bit LSB pie executable
  3. file shows ltdis.sh is a BASH script
  4. cat ltdis.sh
  5. Shows the bash script checks for the presence of the binary file and runs objdump -Dj .text to disassemble all of the file, then only print out the “.text” sections.
  6. Need to make the BASH script executable, then run the “static” through the bash script by listing the file after the bash script
  7. cat the newly created file
  8. Lots of stuff in there, but one of the items was the flag!

6 minutes 14 seconds to complete

Hints

Core Lessons

  1. Understand how to cat a BASH file to assess its operation
  2. Understand enough of how objdump works with binary files that you understand how the command is interacting with the binary