Skip to content

Instantly share code, notes, and snippets.

View useafterfree's full-sized avatar
🤘
Please add pointing to projects, tx

Nathan Trujillo useafterfree

🤘
Please add pointing to projects, tx
View GitHub Profile
@useafterfree
useafterfree / bio_unpack.py
Created March 29, 2018 00:22 — forked from XVilka/bio_unpack.py
Unpacks *.BIO and *.CAP EFI capsule files
#!/bin/env python
import ctypes
import struct
import sys
import os
import array
EFI_CAPSULE_GUID = "BD86663B760D3040B70EB5519E2FC5A0".decode('hex') # 3B6686BD-0D76-4030-B70E-B5519E2FC5A0
EFI2_CAPSULE_GUID = "8BA63C4A2377FB48803D578CC1FEC44D".decode('hex') # 4A3CA68B-7723-48FB-803D-578CC1FEC44D
UEFI_CAPSULE_GUID = "B9829153B5AB9143B69AE3A943F72FCC".decode('hex') # 539182B9-ABB5-4391-B69A-E3A943F72FCC