]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/cli.c
9863b898cdfecd30c24f59bccbbc0f13f2021b03
10 #include "proxmark3.h"
12 #define HANDLE_ERROR if (error_occured) { \
17 int main(int argc
, char **argv
)
19 if(argc
!= 3 && argc
!= 4)
21 printf("\n\tusage: cli <command 1> <command 2> [logfile (default cli.log)]\n");
23 printf("\texample: cli hi14asnoop hi14alist h14a.log\n");
30 setlogfilename(argv
[3]);
32 setlogfilename("cli.log");
37 while(!(devh
=OpenProxmark(0))) { sleep(1); }
43 CommandReceived(argv
[1]);
46 ReceiveCommand(&cmdbuf
);
49 ReceiveCommandP(&cmdbuf
);
53 CommandReceived(argv
[2]);