]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: @marshmellow's fix for "lf viking clone", wrong mask was applied.
authoriceman1001 <iceman@iuse.se>
Tue, 9 Feb 2016 19:42:59 +0000 (20:42 +0100)
committericeman1001 <iceman@iuse.se>
Tue, 9 Feb 2016 19:42:59 +0000 (20:42 +0100)
see:  http://www.proxmark.org/forum/viewtopic.php?pid=19896#p19896

client/cmdlfviking.c

index b0fa3aad8a1a85b0eee7d2e93e69072fbc63639c..f717c3f9bf046528f19575296d0910462117058d 100644 (file)
@@ -53,6 +53,7 @@ uint64_t getVikingBits(uint32_t id) {
        ret     |= checksum;
        return ret;
 }
+
 //by marshmellow
 //see ASKDemod for what args are accepted
 int CmdVikingRead(const char *Cmd) {
@@ -80,7 +81,7 @@ int CmdVikingClone(const char *Cmd) {
 
        rawID = getVikingBits(id);
 
-       UsbCommand c = {CMD_VIKING_CLONE_TAG,{rawID >> 32, rawID & 0xFFFF, Q5}};
+       UsbCommand c = {CMD_VIKING_CLONE_TAG,{rawID >> 32, rawID & 0xFFFFFFFF, Q5}};
        clearCommandBuffer();
     SendCommand(&c);
        //check for ACK
Impressum, Datenschutz