[hf seos] Simulate support
This commit is contained in:
7 files changed
+939
-1
No files matched your search
+4
-1
@@ -238,6 +238,7 @@ typedef struct {
|
||||
bool compiled_with_felica : 1;
|
||||
bool compiled_with_legicrf : 1;
|
||||
bool compiled_with_iclass : 1;
|
||||
bool compiled_with_seos : 1;
|
||||
bool compiled_with_nfcbarcode : 1;
|
||||
// misc
|
||||
bool compiled_with_lcd : 1;
|
||||
@@ -247,7 +248,7 @@ typedef struct {
|
||||
bool hw_available_smartcard : 1;
|
||||
bool is_rdv4 : 1;
|
||||
} PACKED capabilities_t;
|
||||
#define CAPABILITIES_VERSION 6
|
||||
#define CAPABILITIES_VERSION 7
|
||||
extern capabilities_t g_pm3_capabilities;
|
||||
|
||||
// For CMD_LF_T55XX_WRITEBL
|
||||
@@ -857,6 +858,8 @@ typedef struct {
|
||||
#define CMD_HF_SAM_SEOS 0x0901
|
||||
#define CMD_HF_SAM_MFC 0x0902
|
||||
|
||||
#define CMD_HF_SEOS_SIMULATE 0x0903
|
||||
|
||||
#define CMD_UNKNOWN 0xFFFF
|
||||
|
||||
//Mifare simulation flags
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// See LICENSE.txt for the text of the license.
|
||||
//-----------------------------------------------------------------------------
|
||||
// Seos type prototyping
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _SEOS_CMD_H_
|
||||
#define _SEOS_CMD_H_
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#define SEOS_ENCRYPTION_2K3DES 0x02
|
||||
#define SEOS_ENCRYPTION_3K3DES 0x03
|
||||
#define SEOS_ENCRYPTION_AES 0x09
|
||||
|
||||
#define SEOS_HASHING_SHA1 0x06
|
||||
#define SEOS_HASHING_SHA256 0x07
|
||||
|
||||
// Seos emulate request data structure
|
||||
typedef struct {
|
||||
uint8_t encr_alg;
|
||||
uint8_t hash_alg;
|
||||
|
||||
uint8_t uid[10];
|
||||
uint8_t uid_len;
|
||||
|
||||
uint8_t privenc[16];
|
||||
uint8_t privmac[16];
|
||||
uint8_t authkey[16];
|
||||
|
||||
uint8_t diversifier_len;
|
||||
uint8_t diversifier[16];
|
||||
|
||||
uint8_t data_tag_len;
|
||||
uint8_t data_tag[8];
|
||||
|
||||
uint8_t data_len;
|
||||
uint8_t data[128];
|
||||
|
||||
uint8_t oid_len;
|
||||
uint8_t oid[32];
|
||||
} PACKED seos_emulate_req_t;
|
||||
|
||||
#endif // _SEOS_H_
|
||||
Reference in new issue
Block a user