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