Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Update] Run-parts #466

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Update] Run-parts
Aegrah committed Aug 27, 2024
commit cb6a4c4dc47d7eab2f1d4881712fb7e5dbda6147
6 changes: 6 additions & 0 deletions _gtfobins/run-parts.md
Original file line number Diff line number Diff line change
@@ -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
---