]> cvs.zerfleddert.de Git - proxmark3-svn/blame - client/cmdhficlass.h
ADD: `analyse nuid` - generates NUID 4byte from a UID 7byte. Mifare Classic Ev1...
[proxmark3-svn] / client / cmdhficlass.h
CommitLineData
cee5a30d 1//-----------------------------------------------------------------------------
2// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
3// Copyright (C) 2011 Gerhard de Koning Gans
4//
5// This code is licensed to you under the terms of the GNU GPL, version 2 or,
6// at your option, any later version. See the LICENSE.txt file for the text of
7// the license.
8//-----------------------------------------------------------------------------
9// High frequency iClass support
10//-----------------------------------------------------------------------------
11
12#ifndef CMDHFICLASS_H__
13#define CMDHFICLASS_H__
14
76c74bf9 15#include <stdio.h>
16#include <stdlib.h>
17#include <string.h>
18#include <sys/stat.h>
19#include "iso14443crc.h" // Can also be used for iClass, using 0xE012 as CRC-type
20#include "data.h"
21#include "proxmark3.h"
22#include "ui.h"
23#include "cmdparser.h"
24#include "common.h"
25#include "util.h"
26#include "cmdmain.h"
27#include "loclass/des.h"
28#include "loclass/cipherutils.h"
29#include "loclass/cipher.h"
30#include "loclass/ikeys.h"
31#include "loclass/elite_crack.h"
32#include "loclass/fileutils.h"
33#include "protocols.h"
34#include "usb_cmd.h"
35#include "cmdhfmfu.h"
36#include "cmdhf.h"
37#include "protocols.h" // picopass structs,
38
cee5a30d 39int CmdHFiClass(const char *Cmd);
40
e98572a1 41int CmdHFiClassCalcNewKey(const char *Cmd);
42int CmdHFiClassCloneTag(const char *Cmd);
43int CmdHFiClassDecrypt(const char *Cmd);
44int CmdHFiClassEncryptBlk(const char *Cmd);
45int CmdHFiClassELoad(const char *Cmd);
cee5a30d 46int CmdHFiClassList(const char *Cmd);
8949bb5d 47int HFiClassReader(const char *Cmd, bool loop, bool verbose);
1e262141 48int CmdHFiClassReader(const char *Cmd);
e98572a1 49int CmdHFiClassReader_Dump(const char *Cmd);
f38a1528 50int CmdHFiClassReader_Replay(const char *Cmd);
e98572a1 51int CmdHFiClassReadKeyFile(const char *filename);
52int CmdHFiClassReadTagFile(const char *Cmd);
53int CmdHFiClass_ReadBlock(const char *Cmd);
54int CmdHFiClass_TestMac(const char *Cmd);
55int CmdHFiClassManageKeys(const char *Cmd);
56int CmdHFiClass_loclass(const char *Cmd);
57int CmdHFiClassSnoop(const char *Cmd);
58int CmdHFiClassSim(const char *Cmd);
59int CmdHFiClassWriteKeyFile(const char *Cmd);
60int CmdHFiClass_WriteBlock(const char *Cmd);
61void printIclassDumpContents(uint8_t *iclass_dump, uint8_t startblock, uint8_t endblock, size_t filesize);
62void HFiClassCalcDivKey(uint8_t *CSN, uint8_t *KEY, uint8_t *div_key, bool elite);
cee5a30d 63#endif
Impressum, Datenschutz