
v0.39: Grademe is back in your terminal.
Try the CLI betaRead a Bash-style function definition and copy only its body, dropping any code smuggled after the closing brace.
September 2014. Shellshock. For years Bash could receive a function through an environment variable, and the trouble was what it did next: it kept reading and ran any code tacked on behind the function. Since web servers routinely dump request headers into environment variables, an attacker could smuggle commands straight onto the machine, no login needed. The fix reads the function definition and stops dead at its closing brace. Build that.
parse_func_def(out, "() { echo hi; }; rm -rf /")Expected result
[ echo hi; ]For your own tracking. Tests grade your code.
parse_func_def(out, "config=1")Expected result
[config=1]Expected files
parse.cAllowed functions
None. Write every helper yourself.
