Skip to main content
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
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −1 pts Log in
Hint 2 −3 pts Log in
Hint 3 −4 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 24.11.2026
2. Odam 25.11.2026
3. Doston Allayarov 28.11.2026