FIXUNA MORGIA // WONDERLAB // SECURE TRAINING

DEBUG://THE_BROKEN_SHELL

🐧 24 Bash debugging mysteries · 8 modules · zero shell execution

🧩 Repair the corrupted script

These script fragments contain bugs. Read the explanation, repair the code in the editor, and let the safe text comparison tool compare your solution with the reference answer.

Important: this is not a Bash interpreter or a real execution environment. The checker compares your text with a reference solution, ignoring blank lines, indentation, and whitespace at the ends of lines. Another technically valid solution may therefore be rejected. All example test results are educational illustrations, not results from actual code execution.

0 / 24 solved MODULE 1 0% complete
CASE 01 / 24 NO EXECUTION

πŸ§ͺ EXPECTED BEHAVIOR (SIMULATED)

All characters are allowed, including $, `, |, ;, &, quotation marks, < and >. No code is executed.

πŸ”¬ Safety scanner (educational)

This scanner flags a limited set of potentially risky patterns in the text you enter, including eval, curl | bash, and potentially destructive file deletion commands. It does not execute any code and is not a comprehensive security analysis.

Not scanned yet.

πŸ“– Bash debugging checklist

βœ“ Quote variable expansions when you intend to pass a single argument: "$name".

βœ“ Use printf '%s\n' "$value" for predictable text output.

βœ“ Compare numbers using (( )) or numeric operators such as -gt, rather than lexicographical comparisons with >.

βœ“ Use IFS= read -r to read lines without interpreting backslashes or trimming surrounding whitespace.

βœ“ Use bash -n to check Bash syntax and ShellCheck for static analysis suggestions. Neither tool can guarantee that a script is safe.

βœ“ Test real scripts only in an isolated training environment using fictional data.

πŸ” Privacy by design

No accounts, no external libraries, no analytics, no storage of entered code, and no network requests initiated by this page. Your progress exists only in the current browser tab and disappears when you reload the page. The example data contains no real private IP addresses, MAC addresses, hosting details, or secrets.

The Content-Security-Policy restricts the page to same-origin CSS and JavaScript and blocks connections initiated through browser networking APIs. Server-side security headers and other website files must be reviewed separately.