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 e8eeb78 commit 48188e9Copy full SHA for 48188e9
modules/post/windows/manage/persistence_exe.rb
@@ -140,7 +140,7 @@ def install_as_service(script_on_target)
140
print_status("Installing as service..")
141
nam = Rex::Text.rand_text_alpha(rand(8) + 8)
142
print_status("Creating service #{nam}")
143
- service_create(nam, nam, "cmd /c \"#{script_on_target}\"")
+ service_create(nam, :path=>"cmd /c \"#{script_on_target}\"")
144
@clean_up_rc << "execute -H -f sc -a \"delete #{nam}\"\n"
145
else
146
print_error("Insufficient privileges to create service")
0 commit comments