From f2ab6a628329323dc82eb603361a319d35238c58 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Wed, 5 Sep 2018 17:38:32 +0100 Subject: [PATCH] Remove file-read and file-write from cp and mv --- _gtfobins/cp.md | 12 ------------ _gtfobins/mv.md | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/_gtfobins/cp.md b/_gtfobins/cp.md index c667c38..ba101cf 100644 --- a/_gtfobins/cp.md +++ b/_gtfobins/cp.md @@ -1,18 +1,6 @@ --- description: This can be used to copy and then read or write files from a restricted file systems or with elevated privileges. functions: - file-write: - - code: | - LFILE=file_to_write - TF=$(mktemp) - echo "DATA" > $TF - cp $TF $LFILE - file-read: - - code: | - LFILE=file_to_read - TF=$(mktemp) - cp $LFILE $TF - cat $TF suid-enabled: - code: | LFILE=file_to_write diff --git a/_gtfobins/mv.md b/_gtfobins/mv.md index d7157e4..f4ce08a 100644 --- a/_gtfobins/mv.md +++ b/_gtfobins/mv.md @@ -1,18 +1,6 @@ --- description: This can be used to move and then read or write files from a restricted file systems or with elevated privileges. functions: - file-write: - - code: | - LFILE=file_to_write - TF=$(mktemp) - echo "DATA" > $TF - mv $TF $LFILE - file-read: - - code: | - LFILE=file_to_read - TF=$(mktemp) - mv $LFILE $TF - cat $TF suid-enabled: - code: | LFILE=file_to_write