Purectypes
pure-python C types packer/unpacker
Install / Use
/learn @aguinet/PurectypesREADME
purectypes
PureCTypes is a pure-python package to describe portable C structures.
Why not using ctypes?
The standard ctypes Python module can also be used to described C structures, but they are mapped to the current process ABI.
This means that it isn't possible, for instance, to describe a structure packed for the Windows 32-bit ABI while running under Linux. This can be very useful for people that want to analyze memory gathered from a system A on another system B offline, or for exploit development.
Generating purectypes structures
purectypes structures are not meant to be written by hand, and are better generated by an automatic tool.
DragonFFI provides the ability to
generate purectypes structures from a C one, for a given ABI. This makes the
generated structures tied to the ABI of the process that ran
DragonFFI.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
