2016-02-14 03:53:06 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//-----------------------------------------------------------------------------
|
2017-07-14 22:20:34 +08:00
|
|
|
// Low frequency Presco tag commands
|
2016-02-14 03:53:06 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef CMDLFPRESCO_H__
|
|
|
|
#define CMDLFPRESCO_H__
|
2017-07-30 15:17:48 +08:00
|
|
|
#include <string.h>
|
|
|
|
#include <inttypes.h>
|
2016-02-14 03:53:06 +08:00
|
|
|
#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
|
2017-07-14 22:20:34 +08:00
|
|
|
|
|
|
|
extern int CmdLFPresco(const char *Cmd);
|
|
|
|
extern int CmdPrescoRead(const char *Cmd);
|
|
|
|
extern int CmdPrescoDemod(const char *Cmd);
|
2017-07-30 15:17:48 +08:00
|
|
|
extern int CmdPrescoClone(const char *Cmd);
|
|
|
|
extern int CmdPrescoSim(const char *Cmd);
|
2016-03-08 01:53:02 +08:00
|
|
|
|
2017-07-30 15:17:48 +08:00
|
|
|
extern int detectPresco(uint8_t *dest, size_t *size);
|
2016-03-08 01:53:02 +08:00
|
|
|
int GetWiegandFromPresco(const char *id, uint32_t *sitecode, uint32_t *usercode, uint32_t *fullcode, bool *Q5);
|
2016-02-14 03:53:06 +08:00
|
|
|
|
2017-07-30 15:17:48 +08:00
|
|
|
extern int usage_lf_presco_clone(void);
|
|
|
|
extern int usage_lf_presco_sim(void);
|
2016-02-14 03:53:06 +08:00
|
|
|
#endif
|
|
|
|
|