]> git.zerfleddert.de Git - proxmark3-svn/blob - armsrc/mifaresniff.h
db5af9a850305ddafab2f7c25237ac46a2ee5d97
[proxmark3-svn] / armsrc / mifaresniff.h
1 //-----------------------------------------------------------------------------
2 // Merlok - June 2012
3 //
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
6 // the license.
7 //-----------------------------------------------------------------------------
8 // Routines to support mifare classic sniffer.
9 //-----------------------------------------------------------------------------
10
11 #ifndef __MIFARESNIFF_H
12 #define __MIFARESNIFF_H
13
14 #include "proxmark3.h"
15 #include "apps.h"
16 #include "util.h"
17 #include "string.h"
18
19 #include "iso14443crc.h"
20 #include "iso14443a.h"
21 #include "crapto1.h"
22 #include "mifareutil.h"
23 #include "common.h"
24
25 #define SNF_INIT 0
26 #define SNF_NO_FIELD 1
27 #define SNF_WUPREQ 2
28 #define SNF_ATQA 3
29 #define SNF_ANTICOL1 4
30 #define SNF_UID1 5
31 #define SNF_ANTICOL2 6
32 #define SNF_UID2 7
33 #define SNF_SAK 8
34 #define SNF_CARD_IDLE 9
35 #define SNF_CARD_CMD 10
36 #define SNF_CARD_RESP 11
37
38 #define SNF_UID_4 0
39 #define SNF_UID_7 0
40
41 int MfSniffInit(void);
42 int RAMFUNC MfSniffLogic(const uint8_t * data, int len, uint32_t parity, int bitCnt, int reader);
43 int RAMFUNC MfSniffSend(int maxTimeoutMs);
44 int intMfSniffSend();
45 int MfSniffEnd(void);
46
47 #endif
Impressum, Datenschutz