Skip to main content

Practice ยท 3 of 3

Injection-Safe Shell Quoting

Implement shellQuote so the output, when passed to sh -c 'printf %s '<quoted>'', always yields exactly the original argument โ€” for every hostile input in the battery.

Difficulty: advanced

Back to lesson: Practice: Practice: Hardening Battery