Skip to content

Commit 2ec87d1

Browse files
author
Brent Cook
committed
check if constant aliases are already set before setting
(I'm presuming that was what removing was intended to help with)
1 parent 4acb29a commit 2ec87d1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/msf/core/exploit/ntlm.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
require 'rex/proto/ntlm/message'
66
require 'rex/proto/ntlm/utils'
77

8-
NTLM_CONST = ::Rex::Proto::NTLM::Constants
9-
NTLM_CRYPT = ::Rex::Proto::NTLM::Crypt
10-
NTLM_UTILS = ::Rex::Proto::NTLM::Utils
11-
NTLM_BASE = ::Rex::Proto::NTLM::Base
12-
NTLM_MESSAGE = ::Rex::Proto::NTLM::Message
8+
NTLM_CONST ||= ::Rex::Proto::NTLM::Constants
9+
NTLM_CRYPT ||= ::Rex::Proto::NTLM::Crypt
10+
NTLM_UTILS ||= ::Rex::Proto::NTLM::Utils
11+
NTLM_BASE ||= ::Rex::Proto::NTLM::Base
12+
NTLM_MESSAGE ||= ::Rex::Proto::NTLM::Message
1313

1414
module Msf
1515

0 commit comments

Comments
 (0)