Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 659 Bytes

onetoomany.md

File metadata and controls

34 lines (25 loc) · 659 Bytes

One too many

Challenge Category: Forensics
Challenge Points: 500

Challenge Description

Someone decoded all our text files and now we cant find our super duper important flag

(Download challenge.zip)

Solution

The flag is hidden in 1 out of the 1,000 files with Base64 encoding on all the files.

#!/bin/bash

for file in *; do
  decoded_content=$(base64 -d "$file")
  if grep -q "NYP" <<< "$decoded_content"; then
    echo "Found $file: $decoded_content"
    break
  fi
done
...
base64: invalid input
base64: invalid input
...
Found flag5934.txt: NYP{th3_0n3_oF_m4ny} cry