Substitution

Backticks and $(...) run a nested command and splice its output into the current command line, even mid-argument.

阅读约 1 分钟更新于 2026年10月3日florianamette1 位贡献者
在你的助手中提问(MCP)在 GitHub 上编辑

Command substitution, `cmd` and $(cmd), runs a nested command and splices its output into the surrounding command line. Because it is evaluated even when the injection point sits in the middle of an argument, it is both a primary execution primitive and one of the most reliable confirmation oracles for command injection.

Pages#

  • Backticks and $(...): Using $(...) and backtick command substitution to run a nested command and splice its output into the current command line, working even when the injection p...

Tools#

  • commix: automated command-injection exploitation.
  • Burp Suite: Repeater for crafting substitution payloads.

References#