Ruby package manager that can spawn shells via editor open or install hooks.
gem {open} {e} {build} {install} {file} ๐ open ๐ e ๐ build ๐ install ๐ file gem {open} {e} {build} {install} {file} Sandbox: execFile · Timeout: 30s
security.privilege-escalation.shell security.execution.command system.package.install | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
open | string | No | - | Open gem source directory | open |
e | string | No | - | Editor to use | -e |
build | file | No | - | Build a gem from a gemspec | build |
install | string | No | - | Install a gem | install |
file | file | No | - | Install from file | --file |
Inputs
system.package.ruby Ruby gem name
Outputs
process.output Shell output
process_spawn Produces
process.outputConsumes
system.package.ruby| Resource | Value |
|---|---|
| CPU | low |
| Memory | 16 MB |
| Network | low |
| Disk I/O | low |
Spawn shell via gem open with custom editor
gem open -e '/bin/sh -s' debug Execute ruby code via gem build (inherits from ruby)
gem build /path/to/script.rb Execute ruby code via gem install --file
gem install --file /path/to/script.rb Open vi editor via gem open (can escape to shell)
gem open debug gem manages Ruby packages. The open command with a custom editor flag can spawn a shell. The build and install --file commands inherit from Ruby, allowing arbitrary code execution when used with sudo.