Automates interactive applications, can read files and spawn interactive shells.
expect {c} 📎 c expect {c} Sandbox: execFile · Timeout: 30s
system.file.read security.privilege-escalation.shell automation.script | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
c | string | No | - | Command to execute | -c |
Inputs
system.file.path Path to expect script
Outputs
process.output Shell or command output
process_spawn Produces
process.outputConsumes
system.file.path| Resource | Value |
|---|---|
| CPU | low |
| Memory | 4 MB |
| Network | low |
| Disk I/O | low |
Read arbitrary file via parsing error message
expect /path/to/input-file Spawn interactive shell
expect -c 'spawn /bin/sh;interact' Spawn privileged shell with SUID
expect -c 'spawn /bin/sh -p;interact' expect automates interactive applications. When used with sudo or SUID, it can read files through parsing errors and spawn interactive shells via the spawn and interact commands.