mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Remove file-read and file-write from cp and mv
This commit is contained in:
parent
aab8e783ec
commit
f2ab6a6283
@ -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.
|
description: This can be used to copy and then read or write files from a restricted file systems or with elevated privileges.
|
||||||
functions:
|
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:
|
suid-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_write
|
LFILE=file_to_write
|
||||||
|
@ -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.
|
description: This can be used to move and then read or write files from a restricted file systems or with elevated privileges.
|
||||||
functions:
|
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:
|
suid-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_write
|
LFILE=file_to_write
|
||||||
|
Loading…
Reference in New Issue
Block a user