From 069e73d025808681892f1590d0938f017d9601d5 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 26 Mar 2019 21:13:57 +0100 Subject: [PATCH] preparing for more descramble patterns. --- client/cmdlfindala.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/client/cmdlfindala.c b/client/cmdlfindala.c index aabb0f0e3..64857d702 100644 --- a/client/cmdlfindala.c +++ b/client/cmdlfindala.c @@ -238,10 +238,24 @@ int CmdIndalaDemod(const char *Cmd) { p1 |= DemodBuffer[32+21] << 2; p1 |= DemodBuffer[32+22] << 0; p1 |= DemodBuffer[32+24] << 9; - + +/* + uint16_t fc = 0; + fc |= DemodBuffer[32+ 1] << 0; + fc |= DemodBuffer[32+ 2] << 1; + fc |= DemodBuffer[32+ 4] << 2; + fc |= DemodBuffer[32+ 5] << 3; + fc |= DemodBuffer[32+ 7] << 4; + fc |= DemodBuffer[32+10] << 5; + fc |= DemodBuffer[32+14] << 6; + fc |= DemodBuffer[32+15] << 7; + fc |= DemodBuffer[32+17] << 8; +*/ + PrintAndLogEx(NORMAL, ""); PrintAndLogEx(SUCCESS, "Possible de-scramble patterns"); PrintAndLogEx(SUCCESS, "\tPrinted | __%04d__ [0x%X]", p1, p1); + //PrintAndLogEx(SUCCESS, "\tPrinted | __%04d__ [0x%X]", fc, fc); PrintAndLogEx(SUCCESS, "\tInternal ID | %" PRIu64 , foo);