SkillAgentSearch skills...

Purectypes

pure-python C types packer/unpacker

Install / Use

/learn @aguinet/Purectypes
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

purectypes

Python package

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

View on GitHub
GitHub Stars19
CategoryDevelopment
Updated4mo ago
Forks2

Languages

Python

Security Score

87/100

Audited on Nov 8, 2025

No findings