Skip to content

KOLANICH-libs/MFCTool.py

Repository files navigation

MFCTool.py Unlicensed work

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

We have moved to https://codeberg.org/KFmts/MFCTool.py (the namespace has changed to KFmts, which groups packages related to parsing or serialization), grab new versions there.

Under the disguise of "better security" Micro$oft-owned GitHub has discriminated users of 1FA passwords while having commercial interest in success and wide adoption of FIDO 1FA specifications and Windows Hello implementation which it promotes as a replacement for passwords. It will result in dire consequencies and is competely inacceptable, read why.

If you don't want to participate in harming yourself, it is recommended to follow the lead and migrate somewhere away of GitHub and Micro$oft. Here is the list of alternatives and rationales to do it. If they delete the discussion, there are certain well-known places where you can get a copy of it. Read why you should also leave GitHub.


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.

Releases

No releases published

Packages

No packages published

Languages