xbe titleID
January 8th, 2009
dirty *python gurus, close your eyes*
fh = open("q:\\scripts\\default.xbe",'rb') #open xbe
fh.seek(0x104) # seek to first dword
s1 = fh.read(4) #read dword
s1 = struct.unpack('l',s1) #unpack byte into integer
fh.close() #close file
fh = open("q:\\scripts\\default.xbe",'rb') # open xbe
fh.seek(0x118) # seek to second dword
s2 = fh.read(4) # read dword
s2 = struct.unpack('l',s2) # unpack byte to integer
fh.close() # close file
s3 = int(s2[0]) - int(s1[0]) + 8 # calculate final dword
fh = open("q:\\scripts\\default.xbe",'rb') # open xbe
fh.seek(s3) # seek to final dword
thes = fh.read(4) # read dword
thes = struct.unpack('l',thes) # unpack byte to integer
fh.close() # close file
thes = hex(thes[0]) # make a hex number of it, needs to be parsed, but its 4am here so i'll give it a rest :d
#If you have any other info about this subject , Please add it free.# |
Posted in freedeadaim.com | edit
A little something about you, the author. Nothing lengthy, just an overview.