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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "download_from_url"
}
}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) |