From: Martin Holst Swende Date: Thu, 18 Dec 2014 13:46:38 +0000 (+0100) Subject: minor change X-Git-Tag: v2.0.0-rc1~80^2 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/8e9768399ccf8e22f73ac33e0456aeaa78fe626c?ds=inline;hp=--cc minor change --- 8e9768399ccf8e22f73ac33e0456aeaa78fe626c diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index 5cfcc46b..c2045952 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -518,11 +518,15 @@ int CmdHFiClassReader_Dump(const char *Cmd) uint8_t key_sel_p[8] = { 0 }; //HACK -- Below is for testing without access to a tag - uint8_t xdata[16] = {0x01,0x02,0x03,0x04,0xF7,0xFF,0x12,0xE0, //CSN from http://www.proxmark.org/forum/viewtopic.php?pid=11230#p11230 - 0xFE,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF}; // Just a random CC. Would be good to add a real testcase here - memcpy(resp.d.asBytes,xdata, 16); - resp.arg[0] = 2; uint8_t fake_dummy_test = false; + if(fake_dummy_test) + { + uint8_t xdata[16] = {0x01,0x02,0x03,0x04,0xF7,0xFF,0x12,0xE0, //CSN from http://www.proxmark.org/forum/viewtopic.php?pid=11230#p11230 + 0xFE,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF}; // Just a random CC. Would be good to add a real testcase here + memcpy(resp.d.asBytes,xdata, 16); + resp.arg[0] = 2; + } + //End hack