A companion lib for MifareClassicTool
Find a file
2023-10-16 01:37:07 +03:00
.github Initial commit 2023-10-16 01:37:07 +03:00
MFCTool Initial commit 2023-10-16 01:37:07 +03:00
.editorconfig Initial commit 2023-10-16 01:37:07 +03:00
.gitignore Initial commit 2023-10-16 01:37:07 +03:00
.gitlab-ci.yml Initial commit 2023-10-16 01:37:07 +03:00
Code_Of_Conduct.md Initial commit 2023-10-16 01:37:07 +03:00
MANIFEST.in Initial commit 2023-10-16 01:37:07 +03:00
pyproject.toml Initial commit 2023-10-16 01:37:07 +03:00
ReadMe.md Initial commit 2023-10-16 01:37:07 +03:00
UNLICENSE Initial commit 2023-10-16 01:37:07 +03:00

MFCTool.py Unlicensed work

wheel PyPi Status GitLab Build Status GitLab Coverage Libraries.io Status Code style: antiflash

The companion library for Android app MifareClassicToolLicense. 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 PyPi Status License as a runtime for Kaitai Struct-generated code. Used for decoding of values and access conditions.