From 597a64b61b45136383410e7f2d5ec6e05c772e96 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 17 May 2018 07:41:14 -0500 Subject: [PATCH] Land #10047, remove invalid timeout argument on cmd_exec --- modules/post/osx/gather/enum_osx.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/post/osx/gather/enum_osx.rb b/modules/post/osx/gather/enum_osx.rb index 7c2776fc84..63d4bf1c01 100644 --- a/modules/post/osx/gather/enum_osx.rb +++ b/modules/post/osx/gather/enum_osx.rb @@ -183,7 +183,7 @@ class MetasploitModule < Msf::Post file_local_write(log_folder+"//#{name}.txt",returned_data) elsif session.type =~ /shell/ begin - returned_data = cmd_exec("/usr/sbin/system_profiler #{profile_datatypes}", 15) + returned_data = cmd_exec("/usr/sbin/system_profiler #{profile_datatypes}") # Save data lo log folder file_local_write(log_folder+"//#{name}.txt",returned_data) rescue @@ -242,7 +242,7 @@ class MetasploitModule < Msf::Post elsif session.type =~ /shell/ - command_output = cmd_exec(command.join(' '), 15) + command_output = cmd_exec(command.join(' ')) # Save data lo log folder file_local_write(log_folder + "//#{name}.txt", command_output)