mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
use lf hitag hts
submenu
This commit is contained in:
parent
9d8cbe5495
commit
8b1e5c88b1
6 changed files with 15 additions and 15 deletions
|
@ -375,7 +375,7 @@ set (TARGET_SOURCES
|
|||
${PM3_ROOT}/client/src/cmdlfguard.c
|
||||
${PM3_ROOT}/client/src/cmdlfhid.c
|
||||
${PM3_ROOT}/client/src/cmdlfhitag.c
|
||||
${PM3_ROOT}/client/src/cmdlfhitags.c
|
||||
${PM3_ROOT}/client/src/cmdlfhitaghts.c
|
||||
${PM3_ROOT}/client/src/cmdlfidteck.c
|
||||
${PM3_ROOT}/client/src/cmdlfindala.c
|
||||
${PM3_ROOT}/client/src/cmdlfio.c
|
||||
|
|
|
@ -659,7 +659,7 @@ SRCS = mifare/aiddesfire.c \
|
|||
cmdlfgallagher.c \
|
||||
cmdlfhid.c \
|
||||
cmdlfhitag.c \
|
||||
cmdlfhitags.c \
|
||||
cmdlfhitaghts.c \
|
||||
cmdlfidteck.c \
|
||||
cmdlfindala.c \
|
||||
cmdlfio.c \
|
||||
|
|
|
@ -376,7 +376,7 @@ set (TARGET_SOURCES
|
|||
${PM3_ROOT}/client/src/cmdlfguard.c
|
||||
${PM3_ROOT}/client/src/cmdlfhid.c
|
||||
${PM3_ROOT}/client/src/cmdlfhitag.c
|
||||
${PM3_ROOT}/client/src/cmdlfhitags.c
|
||||
${PM3_ROOT}/client/src/cmdlfhitaghts.c
|
||||
${PM3_ROOT}/client/src/cmdlfidteck.c
|
||||
${PM3_ROOT}/client/src/cmdlfindala.c
|
||||
${PM3_ROOT}/client/src/cmdlfio.c
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include "pm3_cmd.h" // return codes
|
||||
#include "hitag2/hitag2_crypto.h"
|
||||
#include "util_posix.h" // msclock
|
||||
#include "cmdlfhitags.h"
|
||||
#include "cmdlfhitaghts.h"
|
||||
|
||||
static int CmdHelp(const char *Cmd);
|
||||
|
||||
|
@ -2478,7 +2478,7 @@ static int CmdLFHitag2Selftest(const char *Cmd) {
|
|||
static command_t CommandTable[] = {
|
||||
{"help", CmdHelp, AlwaysAvailable, "This help"},
|
||||
{"list", CmdLFHitagList, AlwaysAvailable, "List Hitag trace history"},
|
||||
{"s", CmdLFHitagS, AlwaysAvailable, "Hitag S/8211 operations"},
|
||||
{"hts", CmdLFHitagS, AlwaysAvailable, "{ Hitag S/8211 operations }"},
|
||||
{"-----------", CmdHelp, IfPm3Hitag, "------------------------ " _CYAN_("General") " ------------------------"},
|
||||
{"info", CmdLFHitagInfo, IfPm3Hitag, "Hitag 2 tag information"},
|
||||
{"reader", CmdLFHitagReader, IfPm3Hitag, "Act like a Hitag 2 reader"},
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
// Low frequency Hitag S support
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "cmdlfhitags.h"
|
||||
#include "cmdlfhitaghts.h"
|
||||
#include <ctype.h>
|
||||
#include "cmdparser.h" // command_t
|
||||
#include "comms.h"
|
||||
|
@ -39,15 +39,15 @@ static int CmdHelp(const char *Cmd);
|
|||
|
||||
static int CmdLFHitagSRead(const char *Cmd) {
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "lf hitag s read",
|
||||
CLIParserInit(&ctx, "lf hitag hts read",
|
||||
"Read Hitag S memory.\n\n"
|
||||
" Crypto mode: \n"
|
||||
" - key format ISK high + ISK low\n"
|
||||
" - default key 4F4E4D494B52 (ONMIKR)\n",
|
||||
" lf hitag s read -> Hitag S, plain mode\n"
|
||||
" lf hitag s read --nrar 0102030411223344 -> Hitag S, challenge mode\n"
|
||||
" lf hitag s read --crypto -> Hitag S, crypto mode, def key\n"
|
||||
" lf hitag s read -k 4F4E4D494B52 -> Hitag S, crypto mode\n\n"
|
||||
" lf hitag hts read --nrar 0102030411223344 -> Hitag S, challenge mode\n"
|
||||
" lf hitag hts read --crypto -> Hitag S, crypto mode, def key\n"
|
||||
" lf hitag hts read -k 4F4E4D494B52 -> Hitag S, crypto mode\n\n"
|
||||
);
|
||||
|
||||
void *argtable[] = {
|
||||
|
@ -164,15 +164,15 @@ static int CmdLFHitagSRead(const char *Cmd) {
|
|||
|
||||
static int CmdLFHitagSWrite(const char *Cmd) {
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "lf hitag s write",
|
||||
CLIParserInit(&ctx, "lf hitag hts write",
|
||||
"Write a page in Hitag S memory.\n"
|
||||
" Crypto mode: \n"
|
||||
" - key format ISK high + ISK low\n"
|
||||
" - default key 4F4E4D494B52 (ONMIKR)\n",
|
||||
" lf hitag write -p 6 -d 01020304 -> Hitag S, plain mode\n"
|
||||
" lf hitag write -p 6 -d 01020304 --nrar 0102030411223344 -> Hitag S, challenge mode\n"
|
||||
" lf hitag write -p 6 -d 01020304 --crypto -> Hitag S, crypto mode, def key\n"
|
||||
" lf hitag write -p 6 -d 01020304 -k 4F4E4D494B52 -> Hitag S, crypto mode\n\n"
|
||||
" lf hitag hts write -p 6 -d 01020304 --nrar 0102030411223344 -> Hitag S, challenge mode\n"
|
||||
" lf hitag hts write -p 6 -d 01020304 --crypto -> Hitag S, crypto mode, def key\n"
|
||||
" lf hitag hts write -p 6 -d 01020304 -k 4F4E4D494B52 -> Hitag S, crypto mode\n\n"
|
||||
);
|
||||
|
||||
void *argtable[] = {
|
||||
|
@ -286,7 +286,7 @@ static int CmdLFHitagSWrite(const char *Cmd) {
|
|||
}
|
||||
|
||||
static int CmdLFHitagSList(const char *Cmd) {
|
||||
return CmdTraceListAlias(Cmd, "lf hitag s", "hitags");
|
||||
return CmdTraceListAlias(Cmd, "lf hitag hts", "hitags");
|
||||
}
|
||||
|
||||
static command_t CommandTable[] = {
|
Loading…
Add table
Add a link
Reference in a new issue