Home | History | Annotate | Download | only in impacket

Lines Matching refs:nthash

32 def computeResponse(flags, serverChallenge, clientChallenge, serverName, domain, user, password, lmhash='', nthash='',
36 lmhash, nthash, use_ntlmv2=use_ntlmv2)
39 lmhash, nthash, use_ntlmv2=use_ntlmv2)
408 def __init__(self, username = '', password = '', challenge = '', lmhash = '', nthash = '', flags = 0):
427 if username and ( lmhash != '' or nthash != ''):
429 self['ntlm'] = get_ntlmv1_response(nthash, challenge)
432 nthash = compute_nthash(password)
434 self['ntlm']=get_ntlmv1_response(nthash, challenge) # This is not used for LM_KEY nor NTLM_KEY
585 def getNTLMSSPType3(type1, type2, user, password, domain, lmhash = '', nthash = '', use_ntlmv2 = USE_NTLMv2):
618 ntResponse, lmResponse, sessionBaseKey = computeResponse(ntlmChallenge['flags'], ntlmChallenge['challenge'], clientChallenge, serverName, domain, user, password, lmhash, nthash, use_ntlmv2 )
640 keyExchangeKey = KXKEY(ntlmChallenge['flags'],sessionBaseKey, lmResponse, ntlmChallenge['challenge'], password, lmhash, nthash,use_ntlmv2)
643 if user == '' and password == '' and lmhash == '' and nthash == '':
688 def generateSessionKeyV1(password, lmhash, nthash):
693 hash.update(NTOWFv1(password, lmhash, nthash))
696 def computeResponseNTLMv1(flags, serverChallenge, clientChallenge, serverName, domain, user, password, lmhash='', nthash='', use_ntlmv2 = USE_NTLMv2):
702 lmhash = LMOWFv1(password, lmhash, nthash)
703 nthash = NTOWFv1(password, lmhash, nthash)
711 ntResponse = ntlmssp_DES_encrypt(nthash, md5.digest()[:8])
714 ntResponse = get_ntlmv1_response(nthash,serverChallenge)
717 sessionBaseKey = generateSessionKeyV1(password, lmhash, nthash)
727 def NTOWFv1(password, lmhash = '', nthash=''):
728 if nthash != '':
729 return nthash
732 def LMOWFv1(password, lmhash = '', nthash=''):
846 def KXKEY(flags, sessionBaseKey, lmChallengeResponse, serverChallenge, password, lmhash, nthash, use_ntlmv2 = USE_NTLMv2):
890 def computeResponseNTLMv2(flags, serverChallenge, clientChallenge, serverName, domain, user, password, lmhash = '', nthash = '', use_ntlmv2 = USE_NTLMv2):
894 responseKeyNT = NTOWFv2(user, password, domain, nthash)