Fix unquoted path in cleanup script
parent
9b32ed4004
commit
8b138b2d37
|
@ -140,7 +140,7 @@ class Metasploit3 < Msf::Exploit::Local
|
|||
begin
|
||||
write_file(tempvbs, vbs)
|
||||
print_good("Persistent Script written to #{tempvbs}")
|
||||
@clean_up_rc << "rm #{tempvbs}\n"
|
||||
@clean_up_rc << "rm '#{tempvbs}'\n"
|
||||
rescue
|
||||
print_error("Could not write the payload on the target hosts.")
|
||||
# return nil since we could not write the file on the target host.
|
||||
|
|
Loading…
Reference in New Issue