2021-09-17 15:25:03 +08:00
|
|
|
{
|
|
|
|
"mifare classic": {
|
2021-09-18 01:59:00 +08:00
|
|
|
"nested": {
|
|
|
|
"cmd": "hf mf nested --<card type> --blk <block> -<key type> -k <key>",
|
|
|
|
"static cmd": "hf mf staticnested --<card type> --blk <block> -<key type> -k <key>",
|
2021-09-17 15:25:03 +08:00
|
|
|
"card type": {
|
|
|
|
"mini": "mini",
|
|
|
|
"1k": "1k",
|
|
|
|
"2k": "2k",
|
|
|
|
"4k": "4k"
|
|
|
|
},
|
2021-09-18 01:59:00 +08:00
|
|
|
"key type": {
|
2021-09-17 15:25:03 +08:00
|
|
|
"A": "a",
|
|
|
|
"B": "b"
|
|
|
|
},
|
2021-09-18 01:59:00 +08:00
|
|
|
"key pattern": "\\|\\s*\\d{3}\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|",
|
|
|
|
"key A index": 2,
|
|
|
|
"key B index": 4
|
2021-09-17 15:25:03 +08:00
|
|
|
},
|
2021-09-19 01:10:12 +08:00
|
|
|
"check": {
|
2021-09-17 15:25:03 +08:00
|
|
|
"cmd": "hf mf chk --<card type>",
|
|
|
|
"card type": {
|
|
|
|
"mini": "mini",
|
|
|
|
"1k": "1k",
|
|
|
|
"2k": "2k",
|
|
|
|
"4k": "4k"
|
|
|
|
},
|
2021-09-18 01:59:00 +08:00
|
|
|
"key pattern": "\\|\\s*\\d{3}\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|\\s*.+?\\s*\\|",
|
|
|
|
"key A index": 2,
|
|
|
|
"key B index": 4
|
2021-09-17 15:25:03 +08:00
|
|
|
},
|
|
|
|
"info": {
|
|
|
|
"cmd": "hf 14a info"
|
|
|
|
},
|
|
|
|
"sniff": {
|
|
|
|
"cmd": "hf sniff"
|
|
|
|
},
|
|
|
|
"sniff 14a": {
|
|
|
|
"cmd": "hf 14a sniff"
|
|
|
|
},
|
|
|
|
"list": {
|
|
|
|
"cmd": "trace list -t mf"
|
|
|
|
},
|
|
|
|
"dump": {
|
|
|
|
"cmd": "hf mf dump"
|
|
|
|
},
|
|
|
|
"restore": {
|
|
|
|
"cmd": "hf mf restore"
|
|
|
|
},
|
2021-09-19 01:10:12 +08:00
|
|
|
"emulator wipe": {
|
2021-09-17 15:25:03 +08:00
|
|
|
"cmd": "hf mf eclr"
|
|
|
|
},
|
2021-09-19 01:10:12 +08:00
|
|
|
"Magic Card wipe": {
|
2021-09-17 15:25:03 +08:00
|
|
|
"cmd": "hf mf cwipe"
|
2021-09-19 01:10:12 +08:00
|
|
|
},
|
|
|
|
"emulator read block": {
|
|
|
|
"cmd": "hf mf egetblk --blk <block>",
|
|
|
|
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
|
|
|
|
},
|
|
|
|
"Magic Card read block": {
|
|
|
|
"cmd": "hf mf cgetblk --blk <block>",
|
|
|
|
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
|
|
|
|
},
|
|
|
|
"normal read block": {
|
|
|
|
"cmd": "hf mf rdbl --blk <block> -<key type> -k <key>",
|
|
|
|
"key type": {
|
|
|
|
"A": "a",
|
|
|
|
"B": "b"
|
|
|
|
},
|
|
|
|
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
|
|
|
|
},
|
|
|
|
"darkside": {
|
|
|
|
"cmd": "hf mf darkside"
|
|
|
|
},
|
|
|
|
"save sniff": {
|
|
|
|
"cmd": "trace save -f <filename>"
|
|
|
|
},
|
|
|
|
"load sniff": {
|
|
|
|
"cmd": "trace load -f <filename>",
|
|
|
|
"show cmd": "trace list --buffer -t mf"
|
2021-09-19 21:00:23 +08:00
|
|
|
},
|
|
|
|
"hardnested": {
|
|
|
|
"cmd": "hf mf hardnested --blk <known key block> -<known key type> -k <known key> --tblk <target key block> --t<target key type>",
|
|
|
|
"known key type": {
|
|
|
|
"A": "a",
|
|
|
|
"B": "b"
|
|
|
|
},
|
|
|
|
"target key type": {
|
|
|
|
"A": "a",
|
|
|
|
"B": "b"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"normal read sector": {
|
|
|
|
"cmd": "hf mf rdsc --sec <sector> -<key type> -k <key>",
|
|
|
|
"key type": {
|
|
|
|
"A": "a",
|
|
|
|
"B": "b"
|
|
|
|
},
|
|
|
|
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
|
|
|
|
},
|
|
|
|
"Magic Card read sector": {
|
|
|
|
"cmd": "hf mf cgetsc --sec <sector>",
|
|
|
|
"data pattern": "([0-9a-fA-F]{2} ){15}[0-9a-fA-F]{2}"
|
|
|
|
},
|
|
|
|
"normal write block": {
|
|
|
|
"cmd": "hf mf wrbl --blk <block> -<key type> -k <key> -d <data>",
|
|
|
|
"key type": {
|
|
|
|
"A": "a",
|
|
|
|
"B": "b"
|
|
|
|
},
|
|
|
|
"failed flag": [
|
|
|
|
"fail",
|
|
|
|
"error"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"Magic Card write block": {
|
|
|
|
"cmd": "hf mf csetblk --blk <block> -d <data>",
|
|
|
|
"failed flag": [
|
|
|
|
"fail",
|
|
|
|
"error"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"emulator write block": {
|
|
|
|
"cmd": "hf mf esetblk --blk <block> -d <data>"
|
|
|
|
},
|
|
|
|
"Magic Card lock": {
|
|
|
|
"cmd": "hf 14a raw ",
|
|
|
|
"sequence": [
|
|
|
|
"-ak -b 7 40",
|
|
|
|
"-ak 43",
|
|
|
|
"-ak E0 00 39 F7",
|
|
|
|
"-ak E1 00 E1 EE",
|
|
|
|
"-ak 85 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 18 47",
|
|
|
|
"-a 52"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"Magic Card set parameter": {
|
|
|
|
"cmd": "hf mf csetuid --uid <uid> --atqa <atqa> --sak <sak>"
|
2021-09-17 15:25:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|