Skip to content

Commit 314026e

Browse files
David MaloneyDavid Maloney
authored andcommitted
Some error checking and fixups
1 parent 7c141e1 commit 314026e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

modules/auxiliary/scanner/winrm/winrm_cmd.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class Metasploit3 < Msf::Auxiliary
2626
def initialize
2727
super(
2828
'Name' => 'WinRM Command Runner',
29-
'Version' => '$Revision$',
3029
'Description' => %q{
3130
This module runs arbitrary Windows commands using the WinRM Service
3231
},
@@ -50,6 +49,7 @@ def run_host(ip)
5049
return
5150
end
5251
streams = winrm_run_cmd(datastore['CMD'])
52+
return unless streams.class == Hash
5353
print_error streams['stderr'] unless streams['stderr'] == ''
5454
print_good streams['stdout']
5555
if datastore['SAVE_OUTPUT']

modules/exploits/windows/winrm/winrm_script_exec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def initialize(info = {})
3737
},
3838
'Author' => [ 'thelightcosine' ],
3939
'License' => MSF_LICENSE,
40-
'Version' => '$Revision$',
4140
'Privileged' => true,
4241
'DefaultOptions' =>
4342
{

0 commit comments

Comments
 (0)