mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
mfd_multi_brute, a new tool that targets all crypto modes and six different LCG
This commit is contained in:
parent
623169fe02
commit
e17b0e43fb
6 changed files with 799 additions and 2 deletions
42
tools/mfd_aes_brute/randoms.h
Normal file
42
tools/mfd_aes_brute/randoms.h
Normal file
|
@ -0,0 +1,42 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Copyright Iceman 2022
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
// linear congruential generator (LCG)
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef RANDOMS_H__
|
||||
#define RANDOMS_H__
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct generator_s {
|
||||
const char *Name;
|
||||
void (*Parse)(uint32_t seed, uint8_t key[], const size_t keylen);
|
||||
} generator_t;
|
||||
// generator_t array are expected to be NULL terminated
|
||||
|
||||
void make_key_rand_n(uint32_t seed, uint8_t key[], const size_t keylen);
|
||||
void make_key_borland_n(uint32_t seed, uint8_t key[], const size_t keylen);
|
||||
void make_key_recipies_n(uint32_t seed, uint8_t key[], const size_t keylen);
|
||||
void make_key_glibc_n(uint32_t seed, uint8_t key[], const size_t keylen);
|
||||
void make_key_ansic_n(uint32_t seed, uint8_t key[], const size_t keylen);
|
||||
void make_key_turbopascal_n(uint32_t seed, uint8_t key[], const size_t keylen);
|
||||
void make_key_posix_rand_r_n(uint32_t seed, uint8_t key[], const size_t keylen);
|
||||
void make_key_ms_rand_r_n(uint32_t seed, uint8_t key[], const size_t keylen);
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue