Part 1 — Dumpster Diving (trash.zip)

Download zip from URL:

curl <url> --output <filename>

Unzip archive:

unzip -d <dir> <file.zip>

File type classification using a tool

View file types:

file *.bin

Count file types:

file *.bin | grep -i "image" | wc -l

File type classification using a hex editor

Hexadecimal dump:

xxd <filename>

Text search

Find files containing a specific string:

grep -o "heffaklump" *.bin