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