mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
Merge pull request #2814 from johndekroon/Standalone-mattyrun-spiffs
Standalone mattyrun spiffs
This commit is contained in:
commit
22bff9e85b
2 changed files with 10 additions and 1 deletions
|
@ -33,6 +33,7 @@
|
||||||
#include "mifaresim.h" // mifare1ksim
|
#include "mifaresim.h" // mifare1ksim
|
||||||
#include "mifareutil.h"
|
#include "mifareutil.h"
|
||||||
#include "proxmark3_arm.h"
|
#include "proxmark3_arm.h"
|
||||||
|
#include "spiffs.h"
|
||||||
#include "standalone.h" // standalone definitions
|
#include "standalone.h" // standalone definitions
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "ticks.h"
|
#include "ticks.h"
|
||||||
|
@ -534,7 +535,12 @@ void RunMod(void) {
|
||||||
SpinErr(LED_D, 50, 8);
|
SpinErr(LED_D, 50, 8);
|
||||||
partialEmulation = true;
|
partialEmulation = true;
|
||||||
} else {
|
} else {
|
||||||
DbpString("[" _GREEN_("+") "] " _GREEN_("Emulator memory filled completely."));
|
DbpString("[" _GREEN_("+") "] " _GREEN_("Emulator memory filled completely. Start storing card in spiff memory."));
|
||||||
|
uint8_t *emCARD = BigBuf_get_EM_addr();
|
||||||
|
char dumpFileName[30] = {0};
|
||||||
|
sprintf(dumpFileName, DUMP_FILE, mattyrun_card.uid[0], mattyrun_card.uid[1], mattyrun_card.uid[2], mattyrun_card.uid[3]);
|
||||||
|
rdv40_spiffs_write(dumpFileName, emCARD, 1024, RDV40_SPIFFS_SAFETY_SAFE);
|
||||||
|
Dbprintf("[" _GREEN_("+") "] " _GREEN_("Stored card on %s"), dumpFileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
state = STATE_EMULATE;
|
state = STATE_EMULATE;
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
|
// Filename to store the card info in spiff memory
|
||||||
|
#define DUMP_FILE "hf_mattyrun_dump_%02x%02x%02x%02x.bin"
|
||||||
|
|
||||||
// Set of standard keys to be used
|
// Set of standard keys to be used
|
||||||
static uint64_t const MATTYRUN_MFC_DEFAULT_KEYS[] = {
|
static uint64_t const MATTYRUN_MFC_DEFAULT_KEYS[] = {
|
||||||
0xFFFFFFFFFFFF, // Default key
|
0xFFFFFFFFFFFF, // Default key
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue