Skip to content

Commit 00f902b

Browse files
committed
Adds formatting to cleanup commands
1 parent a91f5f5 commit 00f902b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/persistence/init_systemd_override.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def install_persistence
144144
systemd_socket_dir = "/run/user/#{systemd_socket_id}"
145145
cmd_exec("XDG_RUNTIME_DIR=#{systemd_socket_dir} systemctl daemon-reload")
146146

147-
@clean_up_rc << 'execute -f /bin/systemctl -a "daemon-reload"'
147+
@clean_up_rc << "execute -f /bin/systemctl -a \"daemon-reload\"\n"
148148
@clean_up_rc << "execute -f /bin/systemctl -a \"restart #{datastore['SERVICE']}.service\""
149149

150150
if datastore['ReloadService']

0 commit comments

Comments
 (0)