mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 10:14:34 +08:00
e108a48ac4
ADD: 'script run hard' - a first try for a lua script to run the hardnested attack on a complete tag.
36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2015 piwi
|
|
//
|
|
// 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.
|
|
//-----------------------------------------------------------------------------
|
|
// hf mf hardnested command
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef CMDHFMFHARD_H__
|
|
#define CMDHFMFHARD_H__
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <pthread.h>
|
|
#include <locale.h>
|
|
#include <math.h>
|
|
#include "proxmark3.h" // time_t , PRIu32
|
|
#include "sleep.h"
|
|
#include "cmdmain.h"
|
|
#include "ui.h"
|
|
#include "util.h"
|
|
#include "nonce2key/crapto1.h"
|
|
#include "nonce2key/crypto1_bs.h"
|
|
#include "parity.h"
|
|
// don't include for APPLE/mac which has malloc stuff elsewhere.
|
|
#ifndef __APPLE__
|
|
#include <malloc.h>
|
|
#endif
|
|
#include <assert.h>
|
|
|
|
int mfnestedhard(uint8_t blockNo, uint8_t keyType, uint8_t *key, uint8_t trgBlockNo, uint8_t trgKeyType, uint8_t *trgkey, bool nonce_file_read, bool nonce_file_write, bool slow, int tests, uint64_t *foundkey);
|
|
|
|
#endif
|