File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ class Metasploit3 < Msf::Auxiliary
26
26
def initialize
27
27
super (
28
28
'Name' => 'WinRM Command Runner' ,
29
- 'Version' => '$Revision$' ,
30
29
'Description' => %q{
31
30
This module runs arbitrary Windows commands using the WinRM Service
32
31
} ,
@@ -50,6 +49,7 @@ def run_host(ip)
50
49
return
51
50
end
52
51
streams = winrm_run_cmd ( datastore [ 'CMD' ] )
52
+ return unless streams . class == Hash
53
53
print_error streams [ 'stderr' ] unless streams [ 'stderr' ] == ''
54
54
print_good streams [ 'stdout' ]
55
55
if datastore [ 'SAVE_OUTPUT' ]
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ def initialize(info = {})
37
37
} ,
38
38
'Author' => [ 'thelightcosine' ] ,
39
39
'License' => MSF_LICENSE ,
40
- 'Version' => '$Revision$' ,
41
40
'Privileged' => true ,
42
41
'DefaultOptions' =>
43
42
{
You can’t perform that action at this time.
0 commit comments