projects
/
proxmark3-svn
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5e0b213
)
Added Unique Code to EM41x
author
midnitesnake
<midnitesnake@gmail.com>
Tue, 18 Mar 2014 07:41:02 +0000
(07:41 +0000)
committer
midnitesnake
<midnitesnake@gmail.com>
Tue, 18 Mar 2014 07:41:02 +0000
(07:41 +0000)
client/cmdlfem4x.c
patch
|
blob
|
blame
|
history
diff --git
a/client/cmdlfem4x.c
b/client/cmdlfem4x.c
index bd6137ac49eb0b4d6d0e2d34d7c016418ffb9e29..287083e8743d233bb382956ead9453553177a027 100644
(file)
--- a/
client/cmdlfem4x.c
+++ b/
client/cmdlfem4x.c
@@
-35,6
+35,7
@@
int CmdEM410xRead(const char *Cmd)
int i, j, clock, header, rows, bit, hithigh, hitlow, first, bit2idx, high, low;
int parity[4];
char id[11];
int i, j, clock, header, rows, bit, hithigh, hitlow, first, bit2idx, high, low;
int parity[4];
char id[11];
+ char id2[11];
int retested = 0;
uint8_t BitStream[MAX_GRAPH_TRACE_LEN];
high = low = 0;
int retested = 0;
uint8_t BitStream[MAX_GRAPH_TRACE_LEN];
high = low = 0;
@@
-101,6
+102,7
@@
retest:
{
/* Read another byte! */
sprintf(id+rows, "%x", (8 * BitStream[i]) + (4 * BitStream[i+1]) + (2 * BitStream[i+2]) + (1 * BitStream[i+3]));
{
/* Read another byte! */
sprintf(id+rows, "%x", (8 * BitStream[i]) + (4 * BitStream[i+1]) + (2 * BitStream[i+2]) + (1 * BitStream[i+3]));
+ sprintf(id+rows, "%x", (8 * BitStream[i+3]) + (4 * BitStream[i+2]) + (2 * BitStream[i+1]) + (1 * BitStream[i]));
rows++;
/* Keep parity info */
rows++;
/* Keep parity info */
@@
-135,6
+137,7
@@
retest:
{
/* Sweet! */
PrintAndLog("EM410x Tag ID: %s", id);
{
/* Sweet! */
PrintAndLog("EM410x Tag ID: %s", id);
+ PrintAndLog("Unique Tag ID: %s", id);
/* Stop any loops */
return 1;
/* Stop any loops */
return 1;
Impressum
,
Datenschutz