def ntlm_message_type(msg):
    if not msg.startswith('NTLMSSP\x00') or len(msg)<12:
        raise RuntimeError("Not a valid NTLM message: '%s'" % hexlify(msg))
    msg_type = unpack('<I', msg[8:8+4])[0]
    if (1,2,3) not in msg_type:
        raise RuntimeError("Incorrect NTLM message Type: %d" % msg_type)
    return msg_type
dataset/ETHPy150Open Legrandin/PyAuthenNTLM2/pyntlm.py/ntlm_message_type/swapped operands of `not in`