]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfnedap.c
CHG: printing of progress dots is better now.
[proxmark3-svn] / client / cmdlfnedap.c
index 16c1585470b2a70e4fa62450a744130fc5252443..d9e5d48a4bd296f3634faca1cb869b470994e113 100644 (file)
@@ -109,7 +109,7 @@ int CmdLFNedapDemod(const char *Cmd) {
 
 /* Index map                                                     O
  preamble    enc tag type         encrypted uid                  P   d    33    d    90    d    04    d    71    d    40    d    45    d    E7    P
-1111111110 00101101000001011 01000110010010000101101010011010110 0 1 0 00110011 0 10010000 0 00000100 0 01110001 0 01000000 0 01000101 0 11100111 1
+1111111110 0010110100000101101000110010010000101101010011010110 0 1 0 00110011 0 10010000 0 00000100 0 01110001 0 01000000 0 01000101 0 11100111 1
                                                                          uid2       uid1       uid0         I          I          R           R    
         Tag ID is 049033 
         I = Identical on all tags
@@ -197,6 +197,7 @@ int CmdLFNedapClone(const char *Cmd) {
        blocks[0] = T55x7_MODULATION_BIPHASE | T55x7_BITRATE_RF_64 | 4<<T55x7_MAXBLOCK_SHIFT;
 
        if (param_getchar(Cmd, 3) == 'Q' || param_getchar(Cmd, 3) == 'q')
+               //t5555 (Q5) BITRATE = (RF-2)/2 (iceman)
                blocks[0] = T5555_MODULATION_BIPHASE | T5555_INVERT_OUTPUT | 64<<T5555_BITRATE_SHIFT | 4<<T5555_MAXBLOCK_SHIFT;
 
        blocks[1] = bytebits_to_byte(bs,32);
@@ -261,6 +262,8 @@ int CmdLFNedapSim(const char *Cmd) {
        return 0;
 }
 
+
+
 int CmdLFNedapChk(const char *Cmd){
     
        uint8_t data[256] = { 0x30, 0x16, 0x00, 0x71, 0x40, 0x21, 0xBE};
@@ -271,10 +274,9 @@ int CmdLFNedapChk(const char *Cmd){
        
        PrintAndLog("Input: [%d] %s", len, sprint_hex(data, len));
        
-       uint8_t last = GetParity(data, EVEN, 62);
-       PrintAndLog("TEST PARITY::  %d | %d ", DemodBuffer[62], last);
+       //uint8_t last = GetParity(data, EVEN, 62);
+       //PrintAndLog("TEST PARITY::  %d | %d ", DemodBuffer[62], last);
 
-       return 1;
     uint8_t cl = 0x1D, ch = 0x1D, carry = 0;
     uint8_t al, bl, temp;
     
Impressum, Datenschutz