mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 14:23:50 -07:00
Update cmdhficlass.c
This commit is contained in:
parent
e4f373dd65
commit
7b4af95a40
1 changed files with 3 additions and 3 deletions
|
@ -225,7 +225,7 @@ static bool check_config_card(const iclass_config_card_item_t *o) {
|
|||
|
||||
static int load_config_cards(void) {
|
||||
PrintAndLogEx(INFO, "detecting cardhelper...");
|
||||
if (IsCardHelperPresent(false) == false) {
|
||||
if (IsCardHelperPresent(false)) {
|
||||
PrintAndLogEx(FAILED, "failed to detect cardhelper");
|
||||
return PM3_ENODATA;
|
||||
}
|
||||
|
@ -365,7 +365,7 @@ static int generate_config_card(const iclass_config_card_item_t *o, uint8_t *ke
|
|||
// KEYROLL need to encrypt
|
||||
uint8_t key_en[16] = {0};
|
||||
uint8_t *keyptr_en = NULL;
|
||||
if (IsCardHelperPresent(false) == false){
|
||||
if (IsCardHelperPresent(false)){
|
||||
size_t keylen = 0;
|
||||
int res_key = loadFile_safe(ICLASS_DECRYPTION_BIN, "", (void **)&keyptr_en, &keylen);
|
||||
if (res_key != PM3_SUCCESS) {
|
||||
|
@ -4422,7 +4422,7 @@ static int CmdHFiClassConfigCard(const char *Cmd) {
|
|||
return PM3_EINVARG;
|
||||
}
|
||||
}
|
||||
if(ccidx < -1 && ccidx > 12 && IsCardHelperPresent(false) == false){
|
||||
if(ccidx < -1 && ccidx > 12 && IsCardHelperPresent(false)){
|
||||
PrintAndLogEx(ERR, "Please specify a configuration between 0 and 12!");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue