From c3113f796e4af1719ac0f5d6a39b38b295dfece9 Mon Sep 17 00:00:00 2001 From: Rich Lundeen Date: Thu, 31 Oct 2013 21:32:58 -0700 Subject: [PATCH] Incorporating a few more cleanup items from jvazquez --- modules/auxiliary/admin/smb/psexec_command.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/auxiliary/admin/smb/psexec_command.rb b/modules/auxiliary/admin/smb/psexec_command.rb index 8723282975..3e9ac36dd1 100644 --- a/modules/auxiliary/admin/smb/psexec_command.rb +++ b/modules/auxiliary/admin/smb/psexec_command.rb @@ -55,7 +55,6 @@ class Metasploit3 < Msf::Auxiliary OptString.new('FILEPREFIX', [false, 'Add a custom prefix to the temporary files','']), OptInt.new('DELAY', [true, 'Wait this many seconds before reading output and cleaning up', 0]), OptInt.new('RETRY', [true, 'Retry this many times to check if the process is complete', 0]), - OptPath.new('LOGDIR', [false, 'File to log output', nil]), ], self.class) deregister_options('RHOST') @@ -126,9 +125,6 @@ class Metasploit3 < Msf::Auxiliary return end - log_dir = ::File.join(Msf::Config.log_directory,'scripts', 'psexec_command') - ::FileUtils.mkdir_p(log_dir) - # Report output print_good("#{peer} - Command completed successfuly!") if datastore['VERBOSE'] @@ -137,7 +133,8 @@ class Metasploit3 < Msf::Auxiliary end report_note( - :host => datastore['RHOSTS'], + :rhost => datastore['RHOSTS'], + :rport => datastore['RPORT'], :type => "psexec_command", :name => datastore['COMMAND'], :data => output