Challenges
Bash layers
Reverse engineering
Easy
Unwrapping a layered obfuscated bash script
Solves: 3
Bash layers
Author: CyberSamSU
Points
15
installer.sh was found on a build server: a "SamSU agent" installer, but its code is hidden from view — consecutive eval layers (base64 + rev, ${v:off:len} truncation, printf '\x..', tr ROT13). The script is harmless: it only compares a licence key and prints "dry-run" text.
Unwrap the layers without running them (replace each eval with echo or decode by hand), and find what value the innermost check() function compares against. The correct licence key is the flag itself: BAYROQ{...} (the last 16 characters are lowercase hex).
Attached files
installer.sh
Log in to download
Theory: learn the topic
To submit a flag, log in.