TODO: Added format for specific `envp` replace: `--env=<key>=<value>` and `--env <file>`.

TODO: TODO, add short options for controlling envp passthrough. -p,-P, maybe?

Fortune for sink's current commit: Blessing − 吉
args
Avril 3 years ago
parent fc81dd4b74
commit 090474ff17
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -6,6 +6,10 @@ Short arguments can be chained together: `-abc` is equal to `-a -b -c`. There ca
# **TODO** Long arguments # **TODO** Long arguments
* **TODO** User-set sink file path (e.g `--path /path/to/sink`) which overrides the default `/dev/null`. * **TODO** User-set sink file path (e.g `--path /path/to/sink`) which overrides the default `/dev/null`.
* `--env <file>` - Read environment variables, line-by-line, from `<file>` in the format `KEY=value` and send that as the program's `envp`. Multiple of these can exist, they are concatenated.
(example usage: `LD_PRELOAD=malicious.so sink --env <(env | grep ^LD_PRELOAD) setuid-binary`)
* `--env=[<key>=<value>]` - Add (or replace) `<key>=<value>` to/in `envp`. Multiple of these can exist.
(example usage: `sink --env=LD_PRELOAD=replace.so binary`)
# Short Arguments # Short Arguments
* `-i` Replace `stdin` (**default**) * `-i` Replace `stdin` (**default**)

Loading…
Cancel
Save