Bash Data Wrapper
Bash Data Wrapper
1. Bash (Process Substitution & Here Documents)
| Technique | Description | Example Exploit |
|---|---|---|
| Process Substitution | Reads command output as a file stream. | cat <(echo "Injected Code") |
| Here Documents | Injects multi-line data into commands. | printf 'echo whoami\n' > payload.sh && bash payload.sh (note: here-doc delimiter EOF must be on its own line in real bash; the semicolon form shown is illustrative only and will not work as a one-liner) |
| File Descriptor Wrapping | Accesses file descriptors directly. | cat /proc/self/fd/0 <<< "Injected Data" |