2 ms·
ping `\`echo /etc/passwd\`` zsh: permission denied: /etc/passwd I may be wrong here, but would just returning \`rootyourmachine.sh\`` in the request body t
by elithrar 14y ago
ping `\`echo /etc/passwd\``
zsh: permission denied: /etc/passwd
I may be wrong here, but would just returning \`rootyourmachine.sh\`` in the request body therefore work?
Edit: Serving that from a web server via ping `curl localhost:9999` only causes ping to respond with a usage warning, as if you had entered an incorrect command.
Is there a way to "break out of" ping from here, though?
- tptacek 14y agoNo; you can pass arguments to ping, of course, but that's not helpful. Sorry, gut reaction to command interpolation with curl.