]> cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/mifaresniff.h
still wrong...
[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 #include "iso14443crc.h"
19 #include "iso14443a.h"
20 #include "crapto1.h"
21 #include "mifareutil.h"
22 #include "common.h"
23
24 #define SNF_INIT 0
25 #define SNF_NO_FIELD 1
26 #define SNF_WUPREQ 2
27 #define SNF_ATQA 3
28 #define SNF_ANTICOL1 4
29 #define SNF_UID1 5
30 #define SNF_ANTICOL2 6
31 #define SNF_UID2 7
32 #define SNF_ANTICOL3 8
33 #define SNF_UID3 9
34 #define SNF_SAK 10
35 #define SNF_CARD_IDLE 11
36 #define SNF_CARD_CMD 12
37 #define SNF_CARD_RESP 13
38
39 #define SNF_UID_4 0
40 #define SNF_UID_7 0
41 #define SNF_UID_10 0
42
43 void MfSniffInit(void);
44 bool RAMFUNC MfSniffLogic(const uint8_t *data, uint16_t len, uint8_t *parity, uint16_t bitCnt, bool reader);
45 bool RAMFUNC MfSniffSend(uint16_t maxTimeoutMs);
46 bool intMfSniffSend();
47 void MfSniffEnd(void);
48
49 #endif
Impressum, Datenschutz