This commit is contained in:
iceman1001 committed 2023-07-26 23:50:12 +02:00
1 parent fc3a518f28
commit 123ef14667
5 files changed
+42 -29

No files matched your search

+4 -4
View File
@@ -790,17 +790,17 @@ static int NxpSysInfo(uint8_t *uid) {
PrintAndLogEx(INFO, "--- " _CYAN_("NXP Sysinfo")); PrintAndLogEx(INFO, "--- " _CYAN_("NXP Sysinfo"));
PrintAndLogEx(INFO, " raw... %s", sprint_hex(recv, 8)); PrintAndLogEx(INFO, " raw... %s", sprint_hex(recv, 8));
PrintAndLogEx(INFO, " " _CYAN_("Password protection configuration:")); PrintAndLogEx(INFO, " " _CYAN_("Password protection configuration:"));
PrintAndLogEx(INFO, " * Page L read%s password protected", ((recv[2] & 0x01) ? "" : _GREEN_(" not"))); PrintAndLogEx(INFO, " * Page L read%s password protected", ((recv[2] & 0x01) ? "" : _GREEN_(" not")));
PrintAndLogEx(INFO, " * Page L write%s password protected", ((recv[2] & 0x02) ? "" : _GREEN_(" not"))); PrintAndLogEx(INFO, " * Page L write%s password protected", ((recv[2] & 0x02) ? "" : _GREEN_(" not")));
PrintAndLogEx(INFO, " * Page H read%s password protected", ((recv[2] & 0x10) ? "" : _GREEN_(" not"))); PrintAndLogEx(INFO, " * Page H read%s password protected", ((recv[2] & 0x10) ? "" : _GREEN_(" not")));
PrintAndLogEx(INFO, " * Page H write%s password protected", ((recv[2] & 0x20) ? "" : _GREEN_(" not"))); PrintAndLogEx(INFO, " * Page H write%s password protected", ((recv[2] & 0x20) ? "" : _GREEN_(" not")));
PrintAndLogEx(INFO, " " _CYAN_("Lock bits:")); PrintAndLogEx(INFO, " " _CYAN_("Lock bits:"));
// AFI lock bit // AFI lock bit
PrintAndLogEx(INFO, " * AFI%s locked", ((recv[3] & 0x01) ? "" : _GREEN_(" not"))); PrintAndLogEx(INFO, " * AFI%s locked", ((recv[3] & 0x01) ? "" : _GREEN_(" not")));
// EAS lock bit // EAS lock bit
PrintAndLogEx(INFO, " * EAS%s locked", ((recv[3] & 0x02) ? "" : _GREEN_(" not"))); PrintAndLogEx(INFO, " * EAS%s locked", ((recv[3] & 0x02) ? "" : _GREEN_(" not")));
// DSFID lock bit // DSFID lock bit
PrintAndLogEx(INFO, " * DSFID%s locked", ((recv[3] & 0x03) ? "" : _GREEN_(" not"))); PrintAndLogEx(INFO, " * DSFID%s locked", ((recv[3] & 0x03) ? "" : _GREEN_(" not")));
+5 -5
View File
@@ -1479,10 +1479,10 @@ static int CmdHF14AMfRestore(const char *Cmd) {
} }
PrintAndLogEx(INFO, " %3d | %s| ( " _RED_("fail") " ) key " _YELLOW_("%c"), PrintAndLogEx(INFO, " %3d | %s| ( " _RED_("fail") " ) key " _YELLOW_("%c"),
blockno, blockno,
sprint_hex(bldata, sizeof(bldata)), sprint_hex(bldata, sizeof(bldata)),
(kt == MF_KEY_A) ? 'A' : 'B' (kt == MF_KEY_A) ? 'A' : 'B'
); );
} // end loop key types } // end loop key types
} // end loop B } // end loop B
} // end loop S } // end loop S
@@ -8008,7 +8008,7 @@ static int CmdHF14AGen4Save(const char *Cmd) {
int res = mfG4GetBlock(pwd, i, dump + (i * MFBLOCK_SIZE), flags); int res = mfG4GetBlock(pwd, i, dump + (i * MFBLOCK_SIZE), flags);
if (res != PM3_SUCCESS) { if (res != PM3_SUCCESS) {
PrintAndLogEx(NORMAL,""); PrintAndLogEx(NORMAL, "");
PrintAndLogEx(WARNING, "Can't get magic card block: %u. error=%d", i, res); PrintAndLogEx(WARNING, "Can't get magic card block: %u. error=%d", i, res);
PrintAndLogEx(HINT, "Verify your card size, and try again or try another tag position"); PrintAndLogEx(HINT, "Verify your card size, and try again or try another tag position");
free(dump); free(dump);
+5 -4
View File
@@ -177,10 +177,12 @@ const static vocabulory_t vocabulory[] = {
{ 0, "hf 15 reader" }, { 0, "hf 15 reader" },
{ 0, "hf 15 restore" }, { 0, "hf 15 restore" },
{ 0, "hf 15 samples" }, { 0, "hf 15 samples" },
{ 1, "hf 15 view" },
{ 0, "hf 15 wrbl" },
{ 0, "hf 15 sim" },
{ 0, "hf 15 eload" }, { 0, "hf 15 eload" },
{ 0, "hf 15 esave" }, { 0, "hf 15 esave" },
{ 0, "hf 15 eview" }, { 0, "hf 15 eview" },
{ 0, "hf 15 sim" },
{ 0, "hf 15 slixwritepwd" }, { 0, "hf 15 slixwritepwd" },
{ 0, "hf 15 slixeasdisable" }, { 0, "hf 15 slixeasdisable" },
{ 0, "hf 15 slixeasenable" }, { 0, "hf 15 slixeasenable" },
@@ -188,7 +190,6 @@ const static vocabulory_t vocabulory[] = {
{ 0, "hf 15 slixprivacyenable" }, { 0, "hf 15 slixprivacyenable" },
{ 0, "hf 15 passprotectafi" }, { 0, "hf 15 passprotectafi" },
{ 0, "hf 15 passprotecteas" }, { 0, "hf 15 passprotecteas" },
{ 0, "hf 15 wrbl" },
{ 0, "hf 15 findafi" }, { 0, "hf 15 findafi" },
{ 0, "hf 15 writeafi" }, { 0, "hf 15 writeafi" },
{ 0, "hf 15 writedsfid" }, { 0, "hf 15 writedsfid" },
@@ -265,13 +266,14 @@ const static vocabulory_t vocabulory[] = {
{ 1, "hf jooki encode" }, { 1, "hf jooki encode" },
{ 0, "hf jooki sim" }, { 0, "hf jooki sim" },
{ 1, "hf iclass help" }, { 1, "hf iclass help" },
{ 1, "hf iclass list" },
{ 0, "hf iclass dump" }, { 0, "hf iclass dump" },
{ 1, "hf iclass info" }, { 1, "hf iclass info" },
{ 1, "hf iclass list" },
{ 0, "hf iclass rdbl" }, { 0, "hf iclass rdbl" },
{ 0, "hf iclass reader" }, { 0, "hf iclass reader" },
{ 0, "hf iclass restore" }, { 0, "hf iclass restore" },
{ 0, "hf iclass sniff" }, { 0, "hf iclass sniff" },
{ 1, "hf iclass view" },
{ 0, "hf iclass wrbl" }, { 0, "hf iclass wrbl" },
{ 0, "hf iclass chk" }, { 0, "hf iclass chk" },
{ 1, "hf iclass loclass" }, { 1, "hf iclass loclass" },
@@ -287,7 +289,6 @@ const static vocabulory_t vocabulory[] = {
{ 1, "hf iclass decrypt" }, { 1, "hf iclass decrypt" },
{ 1, "hf iclass managekeys" }, { 1, "hf iclass managekeys" },
{ 1, "hf iclass permutekey" }, { 1, "hf iclass permutekey" },
{ 1, "hf iclass view" },
{ 0, "hf iclass sam" }, { 0, "hf iclass sam" },
{ 1, "hf legic help" }, { 1, "hf legic help" },
{ 0, "hf legic dump" }, { 0, "hf legic dump" },
+16 -5
View File
@@ -1895,6 +1895,19 @@
], ],
"usage": "hf 15 sniff [-h]" "usage": "hf 15 sniff [-h]"
}, },
"hf 15 view": {
"command": "hf 15 view",
"description": "Print a ISO-15693 tag dump file (bin/eml/json)",
"notes": [
"hf 15 view -f hf-iclass-AA162D30F8FF12F1-dump.bin"
],
"offline": true,
"options": [
"-h, --help This help",
"-f, --file <fn> filename of dump (bin/eml/json)"
],
"usage": "hf 15 view [-h] -f <fn>"
},
"hf 15 wrbl": { "hf 15 wrbl": {
"command": "hf 15 wrbl", "command": "hf 15 wrbl",
"description": "Write block on ISO-15693 tag", "description": "Write block on ISO-15693 tag",
@@ -4375,13 +4388,11 @@
"options": [ "options": [
"-h, --help This help", "-h, --help This help",
"--blk <dec> block number", "--blk <dec> block number",
"-a input key type is key A (def)",
"-b input key type is key B",
"-d, --data <hex> bytes to write, 16 hex bytes", "-d, --data <hex> bytes to write, 16 hex bytes",
"-k, --key <hex> key, 6 hex bytes", "-k, --key <hex> key, 6 hex bytes",
"--force override warnings" "--force override warnings"
], ],
"usage": "hf mf gdmsetblk [-hab] --blk <dec> [-d <hex>] [-k <hex>] [--force]" "usage": "hf mf gdmsetblk [-h] --blk <dec> [-d <hex>] [-k <hex>] [--force]"
}, },
"hf mf gdmsetcfg": { "hf mf gdmsetcfg": {
"command": "hf mf gdmsetcfg", "command": "hf mf gdmsetcfg",
@@ -11768,8 +11779,8 @@
} }
}, },
"metadata": { "metadata": {
"commands_extracted": 682, "commands_extracted": 683,
"extracted_by": "PM3Help2JSON v1.00", "extracted_by": "PM3Help2JSON v1.00",
"extracted_on": "2023-07-23T09:59:37" "extracted_on": "2023-07-26T21:49:57"
} }
} }
+12 -11
View File
@@ -236,10 +236,12 @@ Check column "offline" for their availability.
|`hf 15 reader `|N |`Act like an ISO-15693 reader` |`hf 15 reader `|N |`Act like an ISO-15693 reader`
|`hf 15 restore `|N |`Restore from file to all memory pages of an ISO-15693 tag` |`hf 15 restore `|N |`Restore from file to all memory pages of an ISO-15693 tag`
|`hf 15 samples `|N |`Acquire samples as reader (enables carrier, sends inquiry)` |`hf 15 samples `|N |`Acquire samples as reader (enables carrier, sends inquiry)`
|`hf 15 view `|Y |`Display content from tag dump file`
|`hf 15 wrbl `|N |`Write a block`
|`hf 15 sim `|N |`Fake an ISO-15693 tag`
|`hf 15 eload `|N |`Load image file into emulator to be used by 'sim' command` |`hf 15 eload `|N |`Load image file into emulator to be used by 'sim' command`
|`hf 15 esave `|N |`Save emulator memory into image file` |`hf 15 esave `|N |`Save emulator memory into image file`
|`hf 15 eview `|N |`View emulator memory` |`hf 15 eview `|N |`View emulator memory`
|`hf 15 sim `|N |`Fake an ISO-15693 tag`
|`hf 15 slixwritepwd `|N |`Writes a password on a SLIX ISO-15693 tag` |`hf 15 slixwritepwd `|N |`Writes a password on a SLIX ISO-15693 tag`
|`hf 15 slixeasdisable `|N |`Disable EAS mode on SLIX ISO-15693 tag` |`hf 15 slixeasdisable `|N |`Disable EAS mode on SLIX ISO-15693 tag`
|`hf 15 slixeasenable `|N |`Enable EAS mode on SLIX ISO-15693 tag` |`hf 15 slixeasenable `|N |`Enable EAS mode on SLIX ISO-15693 tag`
@@ -247,7 +249,6 @@ Check column "offline" for their availability.
|`hf 15 slixprivacyenable`|N |`Enable privacy mode on SLIX ISO-15693 tag` |`hf 15 slixprivacyenable`|N |`Enable privacy mode on SLIX ISO-15693 tag`
|`hf 15 passprotectafi `|N |`Password protect AFI - Cannot be undone` |`hf 15 passprotectafi `|N |`Password protect AFI - Cannot be undone`
|`hf 15 passprotecteas `|N |`Password protect EAS - Cannot be undone` |`hf 15 passprotecteas `|N |`Password protect EAS - Cannot be undone`
|`hf 15 wrbl `|N |`Write a block`
|`hf 15 findafi `|N |`Brute force AFI of an ISO-15693 tag` |`hf 15 findafi `|N |`Brute force AFI of an ISO-15693 tag`
|`hf 15 writeafi `|N |`Writes the AFI on an ISO-15693 tag` |`hf 15 writeafi `|N |`Writes the AFI on an ISO-15693 tag`
|`hf 15 writedsfid `|N |`Writes the DSFID on an ISO-15693 tag` |`hf 15 writedsfid `|N |`Writes the DSFID on an ISO-15693 tag`
@@ -404,13 +405,14 @@ Check column "offline" for their availability.
|command |offline |description |command |offline |description
|------- |------- |----------- |------- |------- |-----------
|`hf iclass help `|Y |`This help` |`hf iclass help `|Y |`This help`
|`hf iclass list `|Y |`List iclass history`
|`hf iclass dump `|N |`Dump Picopass / iCLASS tag to file` |`hf iclass dump `|N |`Dump Picopass / iCLASS tag to file`
|`hf iclass info `|Y |`Tag information` |`hf iclass info `|Y |`Tag information`
|`hf iclass list `|Y |`List iclass history`
|`hf iclass rdbl `|N |`Read Picopass / iCLASS block` |`hf iclass rdbl `|N |`Read Picopass / iCLASS block`
|`hf iclass reader `|N |`Act like a Picopass / iCLASS reader` |`hf iclass reader `|N |`Act like a Picopass / iCLASS reader`
|`hf iclass restore `|N |`Restore a dump file onto a Picopass / iCLASS tag` |`hf iclass restore `|N |`Restore a dump file onto a Picopass / iCLASS tag`
|`hf iclass sniff `|N |`Eavesdrop Picopass / iCLASS communication` |`hf iclass sniff `|N |`Eavesdrop Picopass / iCLASS communication`
|`hf iclass view `|Y |`Display content from tag dump file`
|`hf iclass wrbl `|N |`Write Picopass / iCLASS block` |`hf iclass wrbl `|N |`Write Picopass / iCLASS block`
|`hf iclass chk `|N |`Check keys` |`hf iclass chk `|N |`Check keys`
|`hf iclass loclass `|Y |`Use loclass to perform bruteforce reader attack` |`hf iclass loclass `|Y |`Use loclass to perform bruteforce reader attack`
@@ -426,7 +428,6 @@ Check column "offline" for their availability.
|`hf iclass decrypt `|Y |`Decrypt given block data or tag dump file` |`hf iclass decrypt `|Y |`Decrypt given block data or tag dump file`
|`hf iclass managekeys `|Y |`Manage keys to use with iclass commands` |`hf iclass managekeys `|Y |`Manage keys to use with iclass commands`
|`hf iclass permutekey `|Y |`Permute function from 'heart of darkness' paper` |`hf iclass permutekey `|Y |`Permute function from 'heart of darkness' paper`
|`hf iclass view `|Y |`Display content from tag dump file`
|`hf iclass sam `|N |`SAM tests` |`hf iclass sam `|N |`SAM tests`
@@ -878,14 +879,14 @@ Check column "offline" for their availability.
|`lf em 4x05 help `|Y |`This help` |`lf em 4x05 help `|Y |`This help`
|`lf em 4x05 brute `|N |`Bruteforce password` |`lf em 4x05 brute `|N |`Bruteforce password`
|`lf em 4x05 chk `|N |`Check passwords from dictionary` |`lf em 4x05 chk `|N |`Check passwords from dictionary`
|`lf em 4x05 demod `|Y |`demodulate a EM4x05/EM4x69 tag from the GraphBuffer` |`lf em 4x05 demod `|Y |`Demodulate a EM4x05/EM4x69 tag from the GraphBuffer`
|`lf em 4x05 dump `|N |`dump EM4x05/EM4x69 tag` |`lf em 4x05 dump `|N |`Dump EM4x05/EM4x69 tag`
|`lf em 4x05 info `|N |`tag information EM4x05/EM4x69` |`lf em 4x05 info `|N |`Tag information`
|`lf em 4x05 read `|N |`read word data from EM4x05/EM4x69` |`lf em 4x05 read `|N |`Read word data from EM4x05/EM4x69`
|`lf em 4x05 sniff `|Y |`Attempt to recover em4x05 commands from sample buffer` |`lf em 4x05 sniff `|Y |`Attempt to recover em4x05 commands from sample buffer`
|`lf em 4x05 unlock `|N |`execute tear off against EM4x05/EM4x69` |`lf em 4x05 unlock `|N |`Execute tear off against EM4x05/EM4x69`
|`lf em 4x05 wipe `|N |`wipe EM4x05/EM4x69 tag` |`lf em 4x05 wipe `|N |`Wipe EM4x05/EM4x69 tag`
|`lf em 4x05 write `|N |`write word data to EM4x05/EM4x69` |`lf em 4x05 write `|N |`Write word data to EM4x05/EM4x69`
### lf em 4x50 ### lf em 4x50