Land #10047, remove invalid timeout argument on cmd_exec

4.x
Brent Cook 2018-05-17 07:41:14 -05:00 committed by Metasploit
parent bacab0507b
commit 597a64b61b
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
1 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ class MetasploitModule < Msf::Post
file_local_write(log_folder+"//#{name}.txt",returned_data) file_local_write(log_folder+"//#{name}.txt",returned_data)
elsif session.type =~ /shell/ elsif session.type =~ /shell/
begin 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 # Save data lo log folder
file_local_write(log_folder+"//#{name}.txt",returned_data) file_local_write(log_folder+"//#{name}.txt",returned_data)
rescue rescue
@ -242,7 +242,7 @@ class MetasploitModule < Msf::Post
elsif session.type =~ /shell/ elsif session.type =~ /shell/
command_output = cmd_exec(command.join(' '), 15) command_output = cmd_exec(command.join(' '))
# Save data lo log folder # Save data lo log folder
file_local_write(log_folder + "//#{name}.txt", command_output) file_local_write(log_folder + "//#{name}.txt", command_output)