download_file
Downloads a CTFd challenge attachment to a local machine using a file URL or site-relative path, with an optional destination directory.
Instructions
Download a challenge attachment to the local machine.
Challenge detail (challenge tool) returns a files array with
site-relative paths like /files/<hash>/<name> (signed URLs on some
deployments). Pass one of those values here.
Args: file_url: absolute http(s) URL or site-relative path to the file. dest_dir: optional local directory to store the file in (default: CTFD_DOWNLOAD_DIR or ./downloads).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest_dir | No | ||
| file_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |