X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/3b920280db306fd05322be0e70156e51dd2191f1..beb2ce1f2dd06501d2bc914d8b19a3ea65c02e8f:/client/cmdhflegic.h?ds=sidebyside diff --git a/client/cmdhflegic.h b/client/cmdhflegic.h index 31082155..db38b723 100644 --- a/client/cmdhflegic.h +++ b/client/cmdhflegic.h @@ -11,17 +11,49 @@ #ifndef CMDHFLEGIC_H__ #define CMDHFLEGIC_H__ +#include +#include +#include "proxmark3.h" +#include "data.h" +#include "ui.h" +#include "cmdparser.h" +#include "cmdmain.h" +#include "util.h" +#include "crc.h" +#include "legic_prng.h" +#include "legic.h" // legic_card_select_t struct +#include "cmdhf.h" // "hf list" + int CmdHFLegic(const char *Cmd); -int CmdLegicRFRead(const char *Cmd); -int CmdLegicDecode(const char *Cmd); +int CmdLegicInfo(const char *Cmd); +int CmdLegicRdmem(const char *Cmd); int CmdLegicLoad(const char *Cmd); -int CmdLegicSave(const char *Cmd); int CmdLegicRfSim(const char *Cmd); int CmdLegicRfWrite(const char *Cmd); -int CmdLegicRfFill(const char *Cmd); +int CmdLegicCalcCrc(const char *Cmd); +int CmdLegicDump(const char *Cmd); +int CmdLegicRestore(const char *Cmd); +int CmdLegicReader(const char *Cmd); +int CmdLegicELoad(const char *Cmd); +int CmdLegicESave(const char *Cmd); +int CmdLegicList(const char *Cmd); +int CmdLegicWipe(const char *Cmd); -int CmdLegicCalcCrc8(const char *Cmd); +int HFLegicReader(const char *Cmd, bool verbose); +int legic_print_type(uint32_t tagtype, uint8_t spaces); +int legic_get_type(legic_card_select_t *card); +void legic_chk_iv(uint32_t *iv); +void legic_seteml(uint8_t *src, uint32_t offset, uint32_t numofbytes); -int usage_legic_calccrc8(void); +int usage_legic_calccrc(void); +int usage_legic_load(void); +int usage_legic_rdmem(void); +int usage_legic_sim(void); +int usage_legic_write(void); +int usage_legic_reader(void); +int usage_legic_info(void); +int usage_legic_dump(void); +int usage_legic_restore(void); +int usage_legic_wipe(void); #endif