Skip to content

Commit ffca972

Browse files
David MaloneyDavid Maloney
authored andcommitted
Opps mispalced line
1 parent 355bdbf commit ffca972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/windows/winrm/winrm_powershell.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def initialize(info = {})
5454
end
5555

5656
def check
57-
print_status "Attempting to set Execution Policy"
5857
unless accepts_ntlm_auth
5958
print_error "The Remote WinRM server does not appear to allow Negotiate(NTLM) auth"
6059
return Msf::Exploit::CheckCode::Safe
@@ -79,6 +78,7 @@ def check
7978
end
8079
end
8180

81+
print_status "Attempting to set Execution Policy"
8282
streams = winrm_run_cmd("powershell Set-ExecutionPolicy Unrestricted")
8383
if streams == 401
8484
print_error "Login failed!"

0 commit comments

Comments
 (0)