Skip to content

Instantly share code, notes, and snippets.

@P1nGu1n
P1nGu1n / deobfuscate_par2.py
Last active June 24, 2018 17:31
Rename obfuscated files using a .par2 file for SABnzbd, by parsing the .par2 file and matching the source files.
#!/usr/bin/env python
import os
import sys
import struct
import fnmatch
import hashlib
from os import path
# see: http://parchive.sourceforge.net/docs/specifications/parity-volume-spec/article-spec.html