← All tasks
What you'll do
Write the PHP expression that safely escapes a user-supplied hostname before passing it to a shell command.
Scenario
A network diagnostic tool passes a hostname straight into shell_exec(), risking command injection.
Ready to try it?
Create a free account and subscribe to take "Write Safe Shell Argument Escaping". Earn 90 XP and track your internship progress.
Already have an account? Sign in