Skip to content

Instantly share code, notes, and snippets.

View sf-jonstewart's full-sized avatar

Jon Stewart sf-jonstewart

View GitHub Profile
@sf-jonstewart
sf-jonstewart / prelease201902-shell_items.py
Last active February 21, 2019 01:35
Stroz Friedberg developer Shane McCulley rewrote our Python scripts for parsing Windows shell items using Kaitai. We'll contribute the definitions to Kaitai as open source. shell_items.py shows how to construct a parser on top of the Kaitai-generated parsers. This is an unsupported pre-release. Feedback welcome!
import datetime
from typing import AnyStr, Generator, Optional, Tuple, Type, Union
import uuid
from kaitaistruct import BytesIO, KaitaiStream
import known_uuids
import logging
import ShellItemList