mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
text and cpp warning for hitagu fix suggested by jump
This commit is contained in:
parent
d5ecc626ab
commit
12f94a921a
5 changed files with 13 additions and 10 deletions
|
@ -649,5 +649,5 @@ void EPA_PACE_Simulate(const PacketCommandNG *c) {
|
||||||
|
|
||||||
Dbprintf("Standardized Domain Parameter: %i", pace_version_info.parameter_id);
|
Dbprintf("Standardized Domain Parameter: %i", pace_version_info.parameter_id);
|
||||||
DbpString("");
|
DbpString("");
|
||||||
DbpString("finished");
|
DbpString("Done!");
|
||||||
}
|
}
|
||||||
|
|
|
@ -247,7 +247,7 @@ static int CmdFlashMemLoad(const char *Cmd) {
|
||||||
uint8_t *data = calloc(FLASH_MEM_MAX_SIZE_P(spi_flash_pages), sizeof(uint8_t));
|
uint8_t *data = calloc(FLASH_MEM_MAX_SIZE_P(spi_flash_pages), sizeof(uint8_t));
|
||||||
|
|
||||||
switch (d) {
|
switch (d) {
|
||||||
case DICTIONARY_MIFARE:
|
case DICTIONARY_MIFARE: {
|
||||||
keylen = MF_KEY_LENGTH;
|
keylen = MF_KEY_LENGTH;
|
||||||
res = loadFileDICTIONARY(filename, data, &datalen, keylen, &keycount);
|
res = loadFileDICTIONARY(filename, data, &datalen, keylen, &keycount);
|
||||||
if (res || !keycount) {
|
if (res || !keycount) {
|
||||||
|
@ -261,7 +261,8 @@ static int CmdFlashMemLoad(const char *Cmd) {
|
||||||
}
|
}
|
||||||
strcpy(spiffsDest, MF_KEYS_FILE);
|
strcpy(spiffsDest, MF_KEYS_FILE);
|
||||||
break;
|
break;
|
||||||
case DICTIONARY_T55XX:
|
}
|
||||||
|
case DICTIONARY_T55XX: {
|
||||||
keylen = T55XX_KEY_LENGTH;
|
keylen = T55XX_KEY_LENGTH;
|
||||||
res = loadFileDICTIONARY(filename, data, &datalen, keylen, &keycount);
|
res = loadFileDICTIONARY(filename, data, &datalen, keylen, &keycount);
|
||||||
if (res || !keycount) {
|
if (res || !keycount) {
|
||||||
|
@ -275,7 +276,8 @@ static int CmdFlashMemLoad(const char *Cmd) {
|
||||||
}
|
}
|
||||||
strcpy(spiffsDest, T55XX_KEYS_FILE);
|
strcpy(spiffsDest, T55XX_KEYS_FILE);
|
||||||
break;
|
break;
|
||||||
case DICTIONARY_ICLASS:
|
}
|
||||||
|
case DICTIONARY_ICLASS: {
|
||||||
keylen = ICLASS_KEY_LENGTH;
|
keylen = ICLASS_KEY_LENGTH;
|
||||||
res = loadFileDICTIONARY(filename, data, &datalen, keylen, &keycount);
|
res = loadFileDICTIONARY(filename, data, &datalen, keylen, &keycount);
|
||||||
if (res || !keycount) {
|
if (res || !keycount) {
|
||||||
|
@ -289,7 +291,8 @@ static int CmdFlashMemLoad(const char *Cmd) {
|
||||||
}
|
}
|
||||||
strcpy(spiffsDest, ICLASS_KEYS_FILE);
|
strcpy(spiffsDest, ICLASS_KEYS_FILE);
|
||||||
break;
|
break;
|
||||||
case DICTIONARY_NONE:
|
}
|
||||||
|
case DICTIONARY_NONE: {
|
||||||
res = loadFile_safe(filename, ".bin", (void **)&data, &datalen);
|
res = loadFile_safe(filename, ".bin", (void **)&data, &datalen);
|
||||||
if (res != PM3_SUCCESS) {
|
if (res != PM3_SUCCESS) {
|
||||||
free(data);
|
free(data);
|
||||||
|
@ -302,6 +305,7 @@ static int CmdFlashMemLoad(const char *Cmd) {
|
||||||
return PM3_EOVFLOW;
|
return PM3_EOVFLOW;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ICEMAN: not needed when we transite to loadxxxx_safe methods
|
// ICEMAN: not needed when we transite to loadxxxx_safe methods
|
||||||
|
|
|
@ -3330,6 +3330,7 @@ int CmdHF14ANdefRead(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
free(ndef_file);
|
free(ndef_file);
|
||||||
|
PrintAndLogEx(NORMAL, "");
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3589,8 +3590,8 @@ int CmdHF14ANdefFormat(const char *Cmd) {
|
||||||
DropField();
|
DropField();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PrintAndLogEx(INFO, "Done!");
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
PrintAndLogEx(INFO, "finished");
|
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3742,8 +3743,8 @@ int CmdHF14ANdefWrite(const char *Cmd) {
|
||||||
PrintAndLogEx(INFO, "Write data file %02x " _GREEN_("success"), fnum);
|
PrintAndLogEx(INFO, "Write data file %02x " _GREEN_("success"), fnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PrintAndLogEx(INFO, "Done!");
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
PrintAndLogEx(INFO, "finished");
|
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2539,7 +2539,6 @@ static int CmdHF14AMfAutoPWN(const char *Cmd) {
|
||||||
char outfilename[FILE_PATH_SIZE] = {0};
|
char outfilename[FILE_PATH_SIZE] = {0};
|
||||||
CLIParamStrToBuf(arg_get_str(ctx, 6), (uint8_t *)outfilename, FILE_PATH_SIZE, &outfnlen);
|
CLIParamStrToBuf(arg_get_str(ctx, 6), (uint8_t *)outfilename, FILE_PATH_SIZE, &outfnlen);
|
||||||
|
|
||||||
|
|
||||||
bool slow = arg_get_lit(ctx, 7);
|
bool slow = arg_get_lit(ctx, 7);
|
||||||
bool legacy_mfchk = arg_get_lit(ctx, 8);
|
bool legacy_mfchk = arg_get_lit(ctx, 8);
|
||||||
bool verbose = arg_get_lit(ctx, 9);
|
bool verbose = arg_get_lit(ctx, 9);
|
||||||
|
|
|
@ -741,8 +741,7 @@ static int CmdEM410xClone(const char *Cmd) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//TODO: keep other fields?
|
//TODO: keep other fields?
|
||||||
memcpy(packet.data, &config_page, sizeof(config_page));
|
memcpy(packet.data, &config_page.asBytes, sizeof(config_page.asBytes));
|
||||||
// PrintAndLogEx(INFO, "packet.data: %s", sprint_hex(packet.data, sizeof(packet.data)));
|
|
||||||
packet.page = 1;
|
packet.page = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue