Skip to content

Commit a710f65

Browse files
authored
Remove ntlm apply des patch (#195)
2 parents 7c966ba + 45a16bb commit a710f65

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

app/models/metasploit/credential/ntlm_hash.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
require 'net/ntlm'
22

3-
# TODO: Revert once available in rubyntlm
4-
# https://github.com/WinRb/rubyntlm/pull/51
5-
module Net
6-
module NTLM
7-
class << self
8-
def apply_des(plain, keys)
9-
keys.map {|k|
10-
dec = OpenSSL::Cipher.new("des-cbc").encrypt
11-
dec.padding = 0
12-
dec.key = k
13-
dec.update(plain) + dec.final
14-
}
15-
end
16-
end
17-
end
18-
end
19-
203
# A {Metasploit::Credential::PasswordHash password hash} that can be {Metasploit::Credential::ReplayableHash replayed}
214
# to authenticate to SMB. It is composed of two hash hex digests (where the hash bytes are printed as a
225
# hexadecimal string where 2 characters represent a byte of the original hash with the high nibble first): (1)

0 commit comments

Comments
 (0)