We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a91f5f5 commit 00f902bCopy full SHA for 00f902b
modules/exploits/linux/persistence/init_systemd_override.rb
@@ -144,7 +144,7 @@ def install_persistence
144
systemd_socket_dir = "/run/user/#{systemd_socket_id}"
145
cmd_exec("XDG_RUNTIME_DIR=#{systemd_socket_dir} systemctl daemon-reload")
146
147
- @clean_up_rc << 'execute -f /bin/systemctl -a "daemon-reload"'
+ @clean_up_rc << "execute -f /bin/systemctl -a \"daemon-reload\"\n"
148
@clean_up_rc << "execute -f /bin/systemctl -a \"restart #{datastore['SERVICE']}.service\""
149
150
if datastore['ReloadService']
0 commit comments