]> cvs.zerfleddert.de Git - proxmark3-svn/blame - client/snooper.c
Removing windows specific code. Everything now compile and work the same for the...
[proxmark3-svn] / client / snooper.c
CommitLineData
4cd41f34 1#include "sleep.h"
7fe9b0b7 2#include "ui.h"
3#include "proxusb.h"
4#include "cmdmain.h"
6658905f 5
6#define HANDLE_ERROR if (error_occured) { \
7fe9b0b7 7 error_occured = 0;\
8 break;\
6658905f 9}
10
11int main()
12{
7fe9b0b7 13 usb_init();
14 SetLogFilename("snooper.log");
15
16 return_on_error = 1;
17
18 while(1) {
19 while (!OpenProxmark(0)) { sleep(1); }
20 while (1) {
21 UsbCommand cmdbuf;
22 CommandReceived("hi14asnoop");
23 HANDLE_ERROR;
24 ReceiveCommand(&cmdbuf);
25 HANDLE_ERROR;
26 for (int i = 0; i < 5; ++i) {
27 ReceiveCommandPoll(&cmdbuf);
28 }
29 HANDLE_ERROR;
30 CommandReceived("hi14alist");
31 HANDLE_ERROR;
32 }
33 }
34
35 CloseProxmark();
36 return 0;
6658905f 37}
Impressum, Datenschutz