Module: Net::NTLM
- Defined in:
- app/models/metasploit/credential/ntlm_hash.rb
Class Method Summary collapse
Class Method Details
.apply_des(plain, keys) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/models/metasploit/credential/ntlm_hash.rb', line 8 def apply_des(plain, keys) keys.map {|k| dec = OpenSSL::Cipher.new("des-cbc").encrypt dec.padding = 0 dec.key = k dec.update(plain) + dec.final } end |