2011-06-10 21:35:10 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2011 Merlok
|
|
|
|
//
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// High frequency MIFARE commands
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef CMDHFMF_H__
|
|
|
|
#define CMDHFMF_H__
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <ctype.h>
|
2011-06-18 02:39:54 +08:00
|
|
|
#include "proxmark3.h"
|
2015-10-08 05:00:46 +08:00
|
|
|
#include "iso14443crc.h"
|
2011-06-10 21:35:10 +08:00
|
|
|
#include "data.h"
|
|
|
|
#include "ui.h"
|
|
|
|
#include "cmdparser.h"
|
2015-10-08 05:00:46 +08:00
|
|
|
#include "common.h"
|
2011-06-10 21:35:10 +08:00
|
|
|
#include "util.h"
|
2016-08-05 03:51:26 +08:00
|
|
|
#include "mifare.h" // nonces_t struct
|
|
|
|
#include "cmdhfmfhard.h"
|
|
|
|
#include "nonce2key/nonce2key.h"
|
2011-06-10 21:35:10 +08:00
|
|
|
|
2017-07-13 19:10:46 +08:00
|
|
|
extern int CmdHFMF(const char *Cmd);
|
2016-10-27 18:38:53 +08:00
|
|
|
|
2017-07-13 19:10:46 +08:00
|
|
|
extern int CmdHF14AMfDbg(const char* cmd);
|
|
|
|
extern int CmdHF14AMfRdBl(const char* cmd);
|
|
|
|
extern int CmdHF14AMfURdBl(const char* cmd);
|
|
|
|
extern int CmdHF14AMfRdSc(const char* cmd);
|
|
|
|
extern int CmdHF14SMfURdCard(const char* cmd);
|
|
|
|
extern int CmdHF14AMfDump(const char* cmd);
|
|
|
|
extern int CmdHF14AMfRestore(const char* cmd);
|
|
|
|
extern int CmdHF14AMfWrBl(const char* cmd);
|
|
|
|
extern int CmdHF14AMfUWrBl(const char* cmd);
|
|
|
|
extern int CmdHF14AMfChk(const char* cmd);
|
|
|
|
extern int CmdHF14AMifare(const char* cmd);
|
|
|
|
extern int CmdHF14AMfNested(const char* cmd);
|
|
|
|
extern int CmdHF14AMfNestedHard(const char *Cmd);
|
|
|
|
extern int CmdHF14AMfSniff(const char* cmd);
|
|
|
|
extern int CmdHF14AMf1kSim(const char* cmd);
|
|
|
|
extern int CmdHF14AMfKeyBrute(const char *Cmd);
|
|
|
|
extern int CmdHF14AMfEClear(const char* cmd);
|
|
|
|
extern int CmdHF14AMfEGet(const char* cmd);
|
|
|
|
extern int CmdHF14AMfESet(const char* cmd);
|
|
|
|
extern int CmdHF14AMfELoad(const char* cmd);
|
|
|
|
extern int CmdHF14AMfESave(const char* cmd);
|
|
|
|
extern int CmdHF14AMfECFill(const char* cmd);
|
|
|
|
extern int CmdHF14AMfEKeyPrn(const char* cmd);
|
|
|
|
extern int CmdHF14AMfCSetUID(const char* cmd);
|
|
|
|
extern int CmdHF14AMfCSetBlk(const char* cmd);
|
|
|
|
extern int CmdHF14AMfCGetBlk(const char* cmd);
|
|
|
|
extern int CmdHF14AMfCGetSc(const char* cmd);
|
|
|
|
extern int CmdHF14AMfCLoad(const char* cmd);
|
|
|
|
extern int CmdHF14AMfCSave(const char* cmd);
|
|
|
|
extern int CmdHf14MfDecryptBytes(const char *Cmd);
|
|
|
|
extern int CmdHf14AMfSetMod(const char *Cmd);
|
2015-12-15 16:34:55 +08:00
|
|
|
|
2017-01-30 06:09:23 +08:00
|
|
|
void showSectorTable(void);
|
|
|
|
void readerAttack(nonces_t data, bool setEmulatorMem, bool verbose);
|
2017-03-07 02:11:08 +08:00
|
|
|
void printKeyTable( uint8_t sectorscnt, sector_t *e_sector );
|
2011-06-10 21:35:10 +08:00
|
|
|
#endif
|