File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
app/models/metasploit/credential Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 11require '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)
You can’t perform that action at this time.
0 commit comments