more fixes
parent
519eb0c2be
commit
f843740fcb
|
@ -63,6 +63,10 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
print_error "Login failed!"
|
||||
return Msf::Exploit::CheckCode::Safe
|
||||
end
|
||||
unless streams.class == Hash
|
||||
print_error "Recieved error while running check"
|
||||
return Msf::Exploit::CheckCode::Safe
|
||||
end
|
||||
streams = winrm_run_cmd("powershell Get-ExecutionPolicy")
|
||||
if streams['stdout'].include? 'Unrestricted'
|
||||
return Msf::Exploit::CheckCode::Vulnerable
|
||||
|
|
Loading…
Reference in New Issue