From 090474ff17278749d744b18af05c0e0de6b5b742 Mon Sep 17 00:00:00 2001 From: Avril Date: Mon, 14 Mar 2022 14:53:45 +0000 Subject: [PATCH] TODO: Added format for specific `envp` replace: `--env==` and `--env `. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TODO: TODO, add short options for controlling envp passthrough. -p,-P, maybe? Fortune for sink's current commit: Blessing − 吉 --- TODO.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TODO.md b/TODO.md index cd4e2e5..207922f 100644 --- a/TODO.md +++ b/TODO.md @@ -6,6 +6,10 @@ Short arguments can be chained together: `-abc` is equal to `-a -b -c`. There ca # **TODO** Long arguments * **TODO** User-set sink file path (e.g `--path /path/to/sink`) which overrides the default `/dev/null`. +* `--env ` - Read environment variables, line-by-line, from `` 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=[=]` - Add (or replace) `=` to/in `envp`. Multiple of these can exist. +(example usage: `sink --env=LD_PRELOAD=replace.so binary`) # Short Arguments * `-i` Replace `stdin` (**default**)