Skip to content

Instantly share code, notes, and snippets.

@P1nGu1n
P1nGu1n / deobfuscate_par2.py
Last active Jun 24, 2018
Rename obfuscated files using a .par2 file for SABnzbd, by parsing the .par2 file and matching the source files.
View deobfuscate_par2.py
#!/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