Some error checking and fixups

bug/bundler_fix
David Maloney 2012-11-05 13:29:57 -06:00
parent 7c141e11c4
commit 314026ed0e
2 changed files with 1 additions and 2 deletions

View File

@ -26,7 +26,6 @@ class Metasploit3 < Msf::Auxiliary
def initialize
super(
'Name' => 'WinRM Command Runner',
'Version' => '$Revision$',
'Description' => %q{
This module runs arbitrary Windows commands using the WinRM Service
},
@ -50,6 +49,7 @@ class Metasploit3 < Msf::Auxiliary
return
end
streams = winrm_run_cmd(datastore['CMD'])
return unless streams.class == Hash
print_error streams['stderr'] unless streams['stderr'] == ''
print_good streams['stdout']
if datastore['SAVE_OUTPUT']

View File

@ -37,7 +37,6 @@ class Metasploit3 < Msf::Exploit::Remote
},
'Author' => [ 'thelightcosine' ],
'License' => MSF_LICENSE,
'Version' => '$Revision$',
'Privileged' => true,
'DefaultOptions' =>
{