Skip to content

Instantly share code, notes, and snippets.

@blegloannec
blegloannec / cpk_unpack.py
Created March 12, 2018 15:56
CPK file unpacker/extractor
#!/usr/bin/env python3
# CPK file extractor (e.g. used as ressource packages in some games)
import sys, struct, os, zlib
class DCPK:
def read_uint(self):
return struct.unpack('<I',self.f.read(4))[0]
@blegloannec
blegloannec / exploriff.py
Created February 7, 2018 22:34
RIFF Explorer
#!/usr/bin/env python3
# GUI to explore the tree structure of RIFF files
# use in conjunction with an hex editor to explore raw data at the leaves
# RIFF format specification:
# https://msdn.microsoft.com/en-us/library/dd798636(v=vs.85).aspx
import sys, struct
import tkinter as tk