Fix a bug where we weren't actually trying to get the correct case for lm/ntlm hashes

git-svn-id: file:///home/svn/framework3/trunk@13927 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee 2011-10-15 04:35:06 +00:00
parent 89ab6c11a9
commit b615055c89
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ module Auxiliary::JohnTheRipper
def john_lm_upper_to_ntlm(pwd, hash)
pwd = pwd.upcase
hash = hash.upcase
Rex::Text.permute_case(pwd) do |str|
Rex::Text.permute_case(pwd).each do |str|
if hash == Rex::Proto::NTLM::Crypt.ntlm_hash(str).unpack("H*")[0].upcase
return str
end