5/15/2023 0 Comments Unpkg status![]() Main_entries1_digest = pkg_file.read(SHA256_HASH_SIZE) Main_entries_data_size = read_uint32_be(pkg_file)Ĭontent_offset = read_uint32_be(pkg_file) Num_system_entries = read_uint16_be(pkg_file)įile_table_offset = read_uint32_be(pkg_file) Num_table_entries = read_uint32_be(pkg_file) Pkg_ek(0x10) # FIXME: or maybe uint16 at 0x16? Is_retail = (type & FILE_TYPE_FLAGS_RETAIL) != 0 With open(pkg_file_path, 'rb') as pkg_file: Self.type, self.unk1, self.flags1, self.flags2, self.offset, self.size = struct.unpack(self.entry_fmt, f.read(struct.calcsize(self.entry_fmt))) Return struct.unpack('q', f.read(struct.calcsize('>q'))) ![]() Return struct.unpack('i', f.read(struct.calcsize('>i'))) Return struct.unpack('h', f.read(struct.calcsize('>h'))) Return struct.unpack('b', f.read(struct.calcsize('>b'))) Return struct.unpack('Q', f.read(struct.calcsize('>Q'))) Return struct.unpack('I', f.read(struct.calcsize('>I'))) Return struct.unpack('H', f.read(struct.calcsize('>H'))) ![]() Return struct.unpack('B', f.read(struct.calcsize('>B'))) Print 'error: invalid directory specified' If os.path.exists(output_dir) and not os.path.isdir(output_dir): If len(sys.argv) '.format(script_file_name) Import sys, os, hashlib, hmac, struct, math, traceback ![]() # UnPKG rev 0x00000008 (public edition), (c) flatz
0 Comments
Leave a Reply. |