mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-12 18:25:07 +08:00
started to extract VeriChip demod/clone
This commit is contained in:
parent
2439f9d33c
commit
af56fa8242
2 changed files with 17 additions and 4 deletions
|
@ -225,6 +225,7 @@ CMDSRCS = crapto1/crapto1.c \
|
||||||
cmdlfti.c \
|
cmdlfti.c \
|
||||||
cmdlfviking.c \
|
cmdlfviking.c \
|
||||||
cmdlfvisa2000.c \
|
cmdlfvisa2000.c \
|
||||||
|
cmdlfverichip.c \
|
||||||
cmdtrace.c \
|
cmdtrace.c \
|
||||||
cmdflashmem.c \
|
cmdflashmem.c \
|
||||||
cmdflashmemspiffs.c \
|
cmdflashmemspiffs.c \
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
#include "cmdlfsecurakey.h" // for securakey menu
|
#include "cmdlfsecurakey.h" // for securakey menu
|
||||||
#include "cmdlfpac.h" // for pac menu
|
#include "cmdlfpac.h" // for pac menu
|
||||||
#include "cmdlfkeri.h" // for keri menu
|
#include "cmdlfkeri.h" // for keri menu
|
||||||
|
#include "cmdlfverichip.h" // for VeriChip menu
|
||||||
|
|
||||||
bool g_lf_threshold_set = false;
|
bool g_lf_threshold_set = false;
|
||||||
|
|
||||||
|
@ -977,12 +978,21 @@ int CmdLFSimBidir(const char *Cmd) {
|
||||||
// Set ADC to twice the carrier for a slight supersampling
|
// Set ADC to twice the carrier for a slight supersampling
|
||||||
// HACK: not implemented in ARMSRC.
|
// HACK: not implemented in ARMSRC.
|
||||||
PrintAndLogEx(INFO, "Not implemented yet.");
|
PrintAndLogEx(INFO, "Not implemented yet.");
|
||||||
SendCommandMIX(CMD_LF_SIMULATE_BIDIR, 47, 384, 0, NULL, 0);
|
// SendCommandMIX(CMD_LF_SIMULATE_BIDIR, 47, 384, 0, NULL, 0);
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ICEMAN, todo, swap from Graphbuffer.
|
// ICEMAN, todo, swap from Graphbuffer.
|
||||||
|
// according to Westhus this demod uses decimated samples / 2.
|
||||||
|
// need to do complete rewrite. Need access to reader / chip
|
||||||
|
// should be extracted to seperate files aswell
|
||||||
int CmdVchDemod(const char *Cmd) {
|
int CmdVchDemod(const char *Cmd) {
|
||||||
|
|
||||||
|
if (GraphTraceLen < 4096) {
|
||||||
|
PrintAndLogEx(DEBUG, "debug; VchDemod - too few samples");
|
||||||
|
return PM3_EINVARG;
|
||||||
|
}
|
||||||
|
|
||||||
// Is this the entire sync pattern, or does this also include some
|
// Is this the entire sync pattern, or does this also include some
|
||||||
// data bits that happen to be the same everywhere? That would be
|
// data bits that happen to be the same everywhere? That would be
|
||||||
// lovely to know.
|
// lovely to know.
|
||||||
|
@ -1154,9 +1164,10 @@ int CmdLFfind(const char *Cmd) {
|
||||||
if (demodSecurakey() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Securakey ID") "found!"); goto out;}
|
if (demodSecurakey() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Securakey ID") "found!"); goto out;}
|
||||||
if (demodViking() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Viking ID") "found!"); goto out;}
|
if (demodViking() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Viking ID") "found!"); goto out;}
|
||||||
if (demodVisa2k() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Visa2000 ID") "found!"); goto out;}
|
if (demodVisa2k() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Visa2000 ID") "found!"); goto out;}
|
||||||
if (demodTI() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Texas Instrument ID") "found!"); goto out;}
|
// if (demodTI() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Texas Instrument ID") "found!"); goto out;}
|
||||||
|
// if (demodVerichip() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("VeriChip ID") "found!"); goto out;}
|
||||||
//if (demodFermax() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Fermax ID") "found!"); goto out;}
|
//if (demodFermax() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Fermax ID") "found!"); goto out;}
|
||||||
//if (demodFlex() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Flex ID") "found!"); goto out;}
|
//if (demodFlex() == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Motorola FlexPass ID") "found!"); goto out;}
|
||||||
|
|
||||||
PrintAndLogEx(FAILED, _RED_("No known 125/134 kHz tags found!"));
|
PrintAndLogEx(FAILED, _RED_("No known 125/134 kHz tags found!"));
|
||||||
|
|
||||||
|
@ -1229,6 +1240,7 @@ static command_t CommandTable[] = {
|
||||||
{"securakey", CmdLFSecurakey, AlwaysAvailable, "{ Securakey RFIDs... }"},
|
{"securakey", CmdLFSecurakey, AlwaysAvailable, "{ Securakey RFIDs... }"},
|
||||||
{"ti", CmdLFTI, AlwaysAvailable, "{ TI CHIPs... }"},
|
{"ti", CmdLFTI, AlwaysAvailable, "{ TI CHIPs... }"},
|
||||||
{"t55xx", CmdLFT55XX, AlwaysAvailable, "{ T55xx CHIPs... }"},
|
{"t55xx", CmdLFT55XX, AlwaysAvailable, "{ T55xx CHIPs... }"},
|
||||||
|
// {"verichip", CmdLFVerichip, AlwaysAvailable, "{ VeriChip RFIDs... }"},
|
||||||
{"viking", CmdLFViking, AlwaysAvailable, "{ Viking RFIDs... }"},
|
{"viking", CmdLFViking, AlwaysAvailable, "{ Viking RFIDs... }"},
|
||||||
{"visa2000", CmdLFVisa2k, AlwaysAvailable, "{ Visa2000 RFIDs... }"},
|
{"visa2000", CmdLFVisa2k, AlwaysAvailable, "{ Visa2000 RFIDs... }"},
|
||||||
{"config", CmdLFSetConfig, IfPm3Lf, "Set config for LF sampling, bit/sample, decimation, frequency"},
|
{"config", CmdLFSetConfig, IfPm3Lf, "Set config for LF sampling, bit/sample, decimation, frequency"},
|
||||||
|
@ -1243,7 +1255,7 @@ static command_t CommandTable[] = {
|
||||||
{"simbidir", CmdLFSimBidir, IfPm3Lf, "Simulate LF tag (with bidirectional data transmission between reader and tag)"},
|
{"simbidir", CmdLFSimBidir, IfPm3Lf, "Simulate LF tag (with bidirectional data transmission between reader and tag)"},
|
||||||
{"sniff", CmdLFSniff, IfPm3Lf, "Sniff LF traffic between reader and tag"},
|
{"sniff", CmdLFSniff, IfPm3Lf, "Sniff LF traffic between reader and tag"},
|
||||||
{"tune", CmdLFTune, IfPm3Lf, "Continuously measure LF antenna tuning"},
|
{"tune", CmdLFTune, IfPm3Lf, "Continuously measure LF antenna tuning"},
|
||||||
{"vchdemod", CmdVchDemod, AlwaysAvailable, "['clone'] -- Demodulate samples for VeriChip"},
|
// {"vchdemod", CmdVchDemod, AlwaysAvailable, "['clone'] -- Demodulate samples for VeriChip"},
|
||||||
{NULL, NULL, NULL, NULL}
|
{NULL, NULL, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue