Skip to content

Commit 519eb0c

Browse files
David MaloneyDavid Maloney
authored andcommitted
Behold the King of Typos in all my glory
1 parent aeb8378 commit 519eb0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/exploit/winrm.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Exploit::Remote::WinRM
1717
NTLM_CONST ||= Rex::Proto::NTLM::Constants
1818
NTLM_UTILS ||= Rex::Proto::NTLM::Utils
1919
NTLM_XCEPT ||= Rex::Proto::NTLM::Exceptions
20-
20+
2121
def initialize(info = {})
2222
super
2323
register_options(
@@ -68,7 +68,7 @@ def winrm_run_cmd(cmd, timeout=20)
6868
end
6969
unless resp.code == 200
7070
print_error "Got unexpected response: \n #{resp.to_s}"
71-
retval == resp.code || 0
71+
retval = resp.code || 0
7272
return retval
7373
end
7474
shell_id = winrm_get_shell_id(resp)

0 commit comments

Comments
 (0)