]> git.zerfleddert.de Git - proxmark3-svn/blob - client/snooper.c
Removing windows specific code. Everything now compile and work the same for the...
[proxmark3-svn] / client / snooper.c
1 #include "sleep.h"
2 #include "ui.h"
3 #include "proxusb.h"
4 #include "cmdmain.h"
5
6 #define HANDLE_ERROR if (error_occured) { \
7 error_occured = 0;\
8 break;\
9 }
10
11 int main()
12 {
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;
37 }
Impressum, Datenschutz