mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
chg: unifying some different download functions from device.
This commit is contained in:
parent
b279d04c85
commit
295054c190
4 changed files with 81 additions and 65 deletions
|
@ -534,7 +534,7 @@ int CmdAnalyseA(const char *Cmd){
|
|||
uint8_t got[0x3FFFF];
|
||||
memset(got, 0, sizeof(got));
|
||||
PrintAndLogEx(NORMAL, "downloading %u bytes from flashmem", sizeof(got));
|
||||
GetFromFlashMen(got, sizeof(got), 0, NULL, -1, true);
|
||||
GetFromDevice(FLASH_MEM, got, sizeof(got), 0, NULL, -1, true);
|
||||
|
||||
print_hex(got, 8);
|
||||
|
||||
|
@ -543,6 +543,12 @@ int CmdAnalyseA(const char *Cmd){
|
|||
printf("I %u (0x%x) | %x \n", i, i, got[i] );
|
||||
}
|
||||
}
|
||||
|
||||
// binary
|
||||
saveFile("flash_mem", "bin", got, sizeof(got));
|
||||
|
||||
// eml
|
||||
saveFileEML("flash_mem", "eml", got, sizeof(got), 16);
|
||||
break;
|
||||
}
|
||||
// wipe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue