]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhficlass.c
Fix (iclass)
[proxmark3-svn] / client / cmdhficlass.c
index 7156b1188809ab9c492ac52a2efb4d2e32e270e6..a59a9bac3e1289470355002fe0f5f32ce97c84d8 100644 (file)
@@ -340,7 +340,7 @@ int CmdHFiClassSim(const char *Cmd)
 
        if(simType == 2)
        {
-               UsbCommand c = {CMD_SIMULATE_TAG_ICLASS, {simType,63}};
+               UsbCommand c = {CMD_SIMULATE_TAG_ICLASS, {simType,8}};
                UsbCommand resp = {0};
 
                uint8_t csns[64] = {
@@ -502,6 +502,8 @@ int CmdHFiClassReader_Dump(const char *Cmd)
   SendCommand(&c);
   
   UsbCommand resp;
+  uint8_t key_sel[8] = {0};
+  uint8_t key_sel_p[8] = { 0 };
 
   if (WaitForResponseTimeout(CMD_ACK,&resp,4500)) {
         uint8_t isOK    = resp.arg[0] & 0xff;
@@ -520,8 +522,6 @@ int CmdHFiClassReader_Dump(const char *Cmd)
         {
             if(elite)
             {
-                uint8_t key_sel[8] = {0};
-                uint8_t key_sel_p[8] = { 0 };
                 //Get the key index (hash1)
                 uint8_t key_index[8] = {0};
 
Impressum, Datenschutz