Skip to content

Commit 84c8660

Browse files
David MaloneyDavid Maloney
authored andcommitted
Fix targets to be more specific
1 parent 0eccfaf commit 84c8660

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/exploits/windows/winrm/winrm_powershell.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def initialize(info = {})
4343
'Arch' => [ ARCH_X86, ARCH_X86_64 ],
4444
'Targets' =>
4545
[
46-
[ 'Automatic', { } ],
46+
[ 'Windows with Powershell', { } ],
4747
],
4848
'DefaultTarget' => 0,
4949
'DisclosureDate' => 'Nov 01 2012'
@@ -67,6 +67,9 @@ def check
6767
if streams['stdout'].include? 'Unrestricted'
6868
return Msf::Exploit::CheckCode::Vulnerable
6969
else
70+
unless streams['stderr'] = ''
71+
print_error streams['stderr']
72+
end
7073
return Msf::Exploit::CheckCode::Safe
7174
end
7275
end

0 commit comments

Comments
 (0)