Пример #1
0
def getStringArray(arrSize, i, arrData):  #Needs to fix
    while (arrSize > 0):
        strPointer = hex(struct.unpack("<I", i.read(4))[0])
        [j, strOff] = art.fromPointer(strPointer, mapList)
        if j:
            arrData.append(art.getStringClass(strOff, j))
        arrSize = arrSize - 1
    return arrData
Пример #2
0
def getStringArray(arrSize, i, arrData):  #Needs to fix
    while (arrSize > 0):
        strPointer = hex(unpack_int(i.read(4))[0])
        if strPointer != "0x0":
            [j, strOff] = art.fromPointer(strPointer, mapList)
            if j:
                arrData.append(art.getStringClass(strOff, j))
            j.close()
        arrSize = arrSize - 1
    return arrData
Пример #3
0
def resolveName(klass, mapList):
	name ='Cannot Be Resolved'
	nameOff = getNamePointer(klass, mapList)
	if (int(nameOff, 16)> 0):
		[i, strOff] = art.fromPointer(nameOff, mapList)
		if i == None:
			name ='Cannot Be Resolved'
		else:
			name = art.getStringClass(strOff, i)
	return name