We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 355bdbf commit ffca972Copy full SHA for ffca972
modules/exploits/windows/winrm/winrm_powershell.rb
@@ -54,7 +54,6 @@ def initialize(info = {})
54
end
55
56
def check
57
- print_status "Attempting to set Execution Policy"
58
unless accepts_ntlm_auth
59
print_error "The Remote WinRM server does not appear to allow Negotiate(NTLM) auth"
60
return Msf::Exploit::CheckCode::Safe
@@ -79,6 +78,7 @@ def check
79
78
80
81
+ print_status "Attempting to set Execution Policy"
82
streams = winrm_run_cmd("powershell Set-ExecutionPolicy Unrestricted")
83
if streams == 401
84
print_error "Login failed!"
0 commit comments