mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Fix sed file write
This commit is contained in:
parent
f79b10a5f8
commit
f088906051
@ -11,7 +11,7 @@ functions:
|
|||||||
file-write:
|
file-write:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_write
|
LFILE=file_to_write
|
||||||
sed -n '1e exec sh 1>&0 /etc/hosts
|
sed -n "1s/.*/DATA/w $LFILE" /etc/hosts
|
||||||
file-read:
|
file-read:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
|
Loading…
Reference in New Issue
Block a user