Skip to content

Instantly share code, notes, and snippets.

@horstle
horstle / wv_cros.py
Last active March 5, 2022 09:07
Python script to extract libwidevinecdm.so from a Chrome OS recovery image (as .bin or .zip) in the same directory as the script.
#!/usr/bin/python
from __future__ import absolute_import, division, unicode_literals
import os
from struct import calcsize, unpack
from zipfile import ZipFile
from io import UnsupportedOperation
class ChromeOSImage: