]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - client/cmdhflegic.c
e2229a730475ef22344bb50a88849cd9d42e9362
5 #include "cmdhflegic.h"
7 static int CmdHelp(const char *Cmd
);
9 int CmdLegicRFRead(const char *Cmd
)
11 int byte_count
=0,offset
=0;
12 sscanf(Cmd
, "%i %i", &offset
, &byte_count
);
13 if(byte_count
== 0) byte_count
= 256;
14 if(byte_count
+ offset
> 256) byte_count
= 256 - offset
;
15 UsbCommand c
={CMD_READER_LEGIC_RF
, {offset
, byte_count
, 0}};
20 static command_t CommandTable
[] =
22 {"help", CmdHelp
, 1, "This help"},
23 {"reader", CmdLegicRFRead
, 0, "[offset [length]] -- read bytes from a LEGIC card"},
27 int CmdHFLegic(const char *Cmd
)
29 CmdsParse(CommandTable
, Cmd
);
33 int CmdHelp(const char *Cmd
)
35 CmdsHelp(CommandTable
);