mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-21 22:03:19 -07:00
hf fido
command
This commit is contained in:
parent
54e3cfcb74
commit
2da7c502bc
4 changed files with 99 additions and 0 deletions
|
@ -159,6 +159,7 @@ CMDSRCS = $(SRC_SMARTCARD) \
|
||||||
cmdhfmfhard.c \
|
cmdhfmfhard.c \
|
||||||
hardnested/hardnested_bruteforce.c \
|
hardnested/hardnested_bruteforce.c \
|
||||||
cmdhftopaz.c \
|
cmdhftopaz.c \
|
||||||
|
cmdhffido.c \
|
||||||
cmdhw.c \
|
cmdhw.c \
|
||||||
cmdlf.c \
|
cmdlf.c \
|
||||||
cmdlfawid.c \
|
cmdlfawid.c \
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
#include "protocols.h"
|
#include "protocols.h"
|
||||||
#include "emv/cmdemv.h"
|
#include "emv/cmdemv.h"
|
||||||
#include "cmdhflist.h"
|
#include "cmdhflist.h"
|
||||||
|
#include "cmdhffido.h"
|
||||||
|
|
||||||
static int CmdHelp(const char *Cmd);
|
static int CmdHelp(const char *Cmd);
|
||||||
|
|
||||||
|
@ -596,6 +597,7 @@ static command_t CommandTable[] =
|
||||||
{"mf", CmdHFMF, 1, "{ MIFARE RFIDs... }"},
|
{"mf", CmdHFMF, 1, "{ MIFARE RFIDs... }"},
|
||||||
{"mfu", CmdHFMFUltra, 1, "{ MIFARE Ultralight RFIDs... }"},
|
{"mfu", CmdHFMFUltra, 1, "{ MIFARE Ultralight RFIDs... }"},
|
||||||
{"topaz", CmdHFTopaz, 1, "{ TOPAZ (NFC Type 1) RFIDs... }"},
|
{"topaz", CmdHFTopaz, 1, "{ TOPAZ (NFC Type 1) RFIDs... }"},
|
||||||
|
{"fido", CmdHFFido, 1, "{ FIDO and FIDO2 authenticators... }"},
|
||||||
{"tune", CmdHFTune, 0, "Continuously measure HF antenna tuning"},
|
{"tune", CmdHFTune, 0, "Continuously measure HF antenna tuning"},
|
||||||
{"list", CmdHFList, 1, "List protocol data in trace buffer"},
|
{"list", CmdHFList, 1, "List protocol data in trace buffer"},
|
||||||
{"search", CmdHFSearch, 1, "Search for known HF tags [preliminary]"},
|
{"search", CmdHFSearch, 1, "Search for known HF tags [preliminary]"},
|
||||||
|
|
69
client/cmdhffido.c
Normal file
69
client/cmdhffido.c
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// Copyright (C) 2018 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 Plus commands
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Documentation here:
|
||||||
|
//
|
||||||
|
// FIDO Alliance specifications
|
||||||
|
// https://fidoalliance.org/download/
|
||||||
|
// FIDO NFC Protocol Specification v1.0
|
||||||
|
// https://fidoalliance.org/specs/fido-u2f-v1.2-ps-20170411/fido-u2f-nfc-protocol-v1.2-ps-20170411.html
|
||||||
|
// FIDO U2F Raw Message Formats
|
||||||
|
// https://fidoalliance.org/specs/fido-u2f-v1.2-ps-20170411/fido-u2f-raw-message-formats-v1.2-ps-20170411.html
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
#include "cmdhffido.h"
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include "comms.h"
|
||||||
|
#include "cmdmain.h"
|
||||||
|
#include "util.h"
|
||||||
|
#include "ui.h"
|
||||||
|
#include "cmdhf14a.h"
|
||||||
|
#include "mifare.h"
|
||||||
|
|
||||||
|
static int CmdHelp(const char *Cmd);
|
||||||
|
|
||||||
|
int CmdHFMFPInfo(const char *cmd) {
|
||||||
|
|
||||||
|
if (cmd && strlen(cmd) > 0)
|
||||||
|
PrintAndLog("WARNING: command don't have any parameters.\n");
|
||||||
|
|
||||||
|
// info about 14a part
|
||||||
|
CmdHF14AInfo("");
|
||||||
|
|
||||||
|
// FIDO info
|
||||||
|
|
||||||
|
DropField();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static command_t CommandTable[] =
|
||||||
|
{
|
||||||
|
{"help", CmdHelp, 1, "This help"},
|
||||||
|
{"info", CmdHFMFPInfo, 0, "Info about FIDO tag"},
|
||||||
|
{NULL, NULL, 0, NULL}
|
||||||
|
};
|
||||||
|
|
||||||
|
int CmdHFFido(const char *Cmd) {
|
||||||
|
(void)WaitForResponseTimeout(CMD_ACK,NULL,100);
|
||||||
|
CmdsParse(CommandTable, Cmd);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int CmdHelp(const char *Cmd) {
|
||||||
|
CmdsHelp(CommandTable);
|
||||||
|
return 0;
|
||||||
|
}
|
27
client/cmdhffido.h
Normal file
27
client/cmdhffido.h
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// Copyright (C) 2018 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 FIDO U2F and FIDO2 contactless authenticators
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Documentation here:
|
||||||
|
//
|
||||||
|
// FIDO Alliance specifications
|
||||||
|
// https://fidoalliance.org/download/
|
||||||
|
// FIDO NFC Protocol Specification v1.0
|
||||||
|
// https://fidoalliance.org/specs/fido-u2f-v1.2-ps-20170411/fido-u2f-nfc-protocol-v1.2-ps-20170411.html
|
||||||
|
// FIDO U2F Raw Message Formats
|
||||||
|
// https://fidoalliance.org/specs/fido-u2f-v1.2-ps-20170411/fido-u2f-raw-message-formats-v1.2-ps-20170411.html
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#ifndef CMDHFFIDO_H__
|
||||||
|
#define CMDHFFIDO_H__
|
||||||
|
|
||||||
|
extern int CmdHFFido(const char *Cmd);
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
Loading…
Add table
Add a link
Reference in a new issue