generated from KOLANICH/python_project_boilerplate.py
A companion lib for MifareClassicTool
.github | ||
MFCTool | ||
.editorconfig | ||
.gitignore | ||
.gitlab-ci.yml | ||
Code_Of_Conduct.md | ||
MANIFEST.in | ||
pyproject.toml | ||
ReadMe.md | ||
UNLICENSE |
MFCTool.py
The companion library for Android app MifareClassicTool. The app creates hex-dumps of Mifare Classic tags. This lib gives object-oriented interface to these dumps.
Features
.contents
contains bytes of a sector..meta
contains keys and other info as they are in the dump..trailer
contains a parsed trailer, including- keys
- decoded access conditions
.values
contains parsed and validated (.valid
) value blocks
Usage
from MFCTool import *
from pathlib import Path
d = Dump()
print(d.sectors[0].contents)
print(d.sectors[0].meta)
print(d.sectors[0].trailer)
print(d.sectors[0].values)
Requirements
kaitaistruct
as a runtime for Kaitai Struct-generated code. Used for decoding of values and access conditions.