Gameloft Custompak (obb unpacker)
Posted: Mon Apr 28, 2014 5:31 pm
obb files from Android games are supposedly plain zip archives, but I've come across one from GT Racing 2 that doesn't look like a zip. I started analyzing it and below is a quickbms script that should extract it.
Code: Select all
# Gameloft CustomPak extractor # script for QuickBMS http://quickbms.aluigi.org # tested with GT Racing 2 and The Dark Knight Rises .obb archives endian big get DUMMY long get DATA_OFF long get NAMES_OFF long get FILES long get BNAME basename savepos LASTFILE for i = 0 < FILES goto LASTFILE get OFFSET long #relative to file start get SIZE long get NAME_OFF long #relative to NAMES_OFF get DUMMY long savepos LASTFILE math NAME_OFF += NAMES_OFF goto NAME_OFF get NAME string set FNAME string BNAME string FNAME += / string FNAME += NAME log FNAME OFFSET SIZE next i