Arbitrary precision calculator language that can read files via -s flag, leaking content as errors.
bc {s} 📎 s bc {s} Sandbox: execFile · Timeout: 30s
system.file.read math.calculate | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
s | string | No | - | Load file and suppress normal output | -s |
Inputs
system.file.path Path to file to read
Outputs
system.file.content File content leaked as error messages
Produces
system.file.contentConsumes
system.file.path| Resource | Value |
|---|---|
| CPU | low |
| Memory | 4 MB |
| Network | low |
| Disk I/O | low |
Read arbitrary file via -s flag, content appears as error messages
bc -s /path/to/input-file
quit bc is an arbitrary precision calculator language. The -s flag loads a file for processing, and its content appears in error messages when parsing fails, making it useful for file read when used with elevated privileges.