]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - linux/cli.c
10 #include "../winsrc/prox.h"
11 #include "proxmark3.h"
13 #define HANDLE_ERROR if (error_occured) { \
18 int main(int argc
, char **argv
)
20 if(argc
!= 3 && argc
!= 4)
22 printf("\n\tusage: cli <command 1> <command 2> [logfile (default cli.log)]\n");
24 printf("\texample: cli hi14asnoop hi14alist h14a.log\n");
31 setlogfilename(argv
[3]);
33 setlogfilename("cli.log");
38 while(!(devh
=OpenProxmark(0))) { sleep(1); }
44 CommandReceived(argv
[1]);
47 ReceiveCommand(&cmdbuf
);
50 ReceiveCommandP(&cmdbuf
);
54 CommandReceived(argv
[2]);