예제 #1
0
def AddFriendSetting(data):
    jce = JceInputStream(data)
    my_qqnumber = jce.ReadNumber()
    add_qqnumber = jce.ReadNumber()
    verify_type = jce.ReadByte()
    COUNT = jce.ReadList()
    if COUNT == 1:
        p = jce.data[2:]
        question = jce.ReadString()
    else:
        question = ''
    return [my_qqnumber, add_qqnumber, verify_type, question]
예제 #2
0
def Un_friendlistgetFriendGroupList(data):

    list = []
    data = data[8:]
    jce = JceInputStream(data)
    jce.ReadValue()
    jce.ReadValue()
    jce.ReadValue()
    jce.ReadValue()
    jce.ReadValue()
    jce.ReadValue()
    jce.getHex(4)
    LONG = jce.ReadValue()
    jce.data = jce.data[:LONG * 2]
    jce.getHex(6)
    jce.ReadValue()
    jce.getHex(4)
    LONG1 = jce.ReadValue()
    jce.data = jce.data[:LONG1 * 2]
    jce.data = re.findall('^0a(.*?)0b$', jce.data)[0]
    jce.ReadValue()
    jce.ReadValue()
    jce.ReadValue()
    jce.ReadValue()
    jce.ReadValue()
    jce.ReadValue()
    jce.ReadValue()
    CONT = jce.ReadList()
    for item in range(CONT):
        dict = {}
        jce.ReadValue()  #0A
        dict['friendUin'] = jce.ReadValue()
        dict['groupId'] = jce.ReadValue()
        dict['faceId'] = jce.ReadValue()
        dict['name'] = jce.ReadValue()
        dict['sqqtype'] = jce.ReadValue()
        dict['status'] = jce.ReadValue()
        dict['memberLevel'] = jce.ReadValue()
        dict['isMqqOnLine'] = jce.ReadValue()
        dict['sqqOnLineState'] = jce.ReadValue()
        dict['isIphoneOnline'] = jce.ReadValue()
        dict['detalStatusFlag'] = jce.ReadValue()
        dict['sqqOnLineStateV2'] = jce.ReadValue()
        dict['sShowName'] = jce.ReadValue()
        jce.ReadValue()
        dict['nickname'] = jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        CONT1 = int(jce.getHex(4), 16)
        for item1 in range(CONT1):
            jce.ReadValue()
            jce.ReadValue()
            jce.ReadValue()
            jce.ReadValue()
            jce.ReadValue()
            jce.ReadValue()
            jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadSimpleList()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        jce.ReadValue()
        list.append(dict)
    return list