fix #10046, remove invalid timeout argument on cmd_exec

GSoC/Meterpreter_Web_Console
Brent Cook 2018-05-17 07:38:22 -05:00
parent da07113194
commit 406f1fe165
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)
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)