def parse_netntlm(authenticate_header, authorization_header, headers, ack, seq):
 if (authenticate_header != None):
  chal_header = authenticate_header.group()
  parse_netntlm_chal(headers, chal_header, ack)
 elif (authorization_header != None):
  resp_header = authorization_header.group()
  msg = parse_netntlm_resp_msg(headers, resp_header, seq)
  if (msg != None):
   return msg

def parse_netntlm ( authenticate_header , authorization_header , headers , ack , seq ) : if ( authenticate_header != None ) : chal_header = authenticate_header . group ( ) parse_netntlm_chal ( headers , chal_header , ack ) elif ( authorization_header != None ) : resp_header = authorization_header . group ( ) msg = parse_netntlm_resp_msg ( headers , resp_header , seq ) if ( msg != None ) : return msg
parse ntlm hashes out .