post/windows/manage/persistence_exe: fix service creation
Fixes service creation when in post/windows/manage/persistence_exebug/bundler_fix
parent
e8eeb784e4
commit
48188e999e
|
@ -140,7 +140,7 @@ class MetasploitModule < Msf::Post
|
|||
print_status("Installing as service..")
|
||||
nam = Rex::Text.rand_text_alpha(rand(8) + 8)
|
||||
print_status("Creating service #{nam}")
|
||||
service_create(nam, nam, "cmd /c \"#{script_on_target}\"")
|
||||
service_create(nam, :path=>"cmd /c \"#{script_on_target}\"")
|
||||
@clean_up_rc << "execute -H -f sc -a \"delete #{nam}\"\n"
|
||||
else
|
||||
print_error("Insufficient privileges to create service")
|
||||
|
|
Loading…
Reference in New Issue