download_from_url
Download files from URLs for malware analysis, supporting custom headers and JavaScript-enabled sites when needed. Returns file metadata including hashes and type.
Instructions
Download a file from a URL into the samples directory for analysis. Returns file metadata (hashes, type, size). Supports custom HTTP headers and an optional thug mode for sites requiring JavaScript execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to download (http or https only) | |
| filename | No | Override filename in samples dir. If omitted, derived from URL path. | |
| headers | No | Custom HTTP headers as 'Name: value' strings. Example: ['User-Agent: Mozilla/5.0', 'X-Auth-Token: abc123'] | |
| method | No | Download method. 'curl' (default) for direct HTTP download. 'thug' for sites requiring JavaScript execution (uses thug honeyclient). | curl |
| overwrite | No | Whether to overwrite if file exists. Default: false | |
| timeout | No | Download timeout in seconds (default: server timeout) |