ADD: Started to add a Presco LF clone functionality. Can calc Wiegand from printed number.

This commit is contained in:
iceman1001 2016-02-13 20:53:06 +01:00
commit 5a6e19e614
5 changed files with 233 additions and 3 deletions

30
client/cmdlfpresco.h Normal file
View file

@ -0,0 +1,30 @@
//-----------------------------------------------------------------------------
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// Low frequency T55xx commands
//-----------------------------------------------------------------------------
#ifndef CMDLFPRESCO_H__
#define CMDLFPRESCO_H__
#include "proxmark3.h"
#include "ui.h"
#include "util.h"
#include "graph.h"
#include "cmdparser.h"
#include "cmddata.h"
#include "cmdmain.h"
#include "cmdlf.h"
#include "protocols.h" // for T55xx config register definitions
#include "lfdemod.h" // parityTest
int CmdLFPresco(const char *Cmd);
int CmdPrescoClone(const char *Cmd);
//int CmdPrescoSim(const char *Cmd);
int usage_lf_presco_clone(void);
int usage_lf_presco_sim(void);
int GetWiegandFromPresco(const char *id, uint32_t *sitecode, uint32_t *usercode);
#endif