Merge pull request #353 from matthiaskonrath/hardnested_autopwn

Autopwn
This commit is contained in:
Iceman 2019-08-26 15:12:21 +02:00 committed by GitHub
commit d548b8daeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 624 additions and 52 deletions

View file

@ -47,6 +47,7 @@
#include "ui.h"
#include "emv/emvjson.h"
#include "mifare/mifare4.h"
#include "mifare/mifarehost.h"
#include "cmdhfmfu.h"
typedef enum {
@ -102,6 +103,16 @@ int saveFileEML(const char *preferredName, uint8_t *data, size_t datalen, size_t
*/
int saveFileJSON(const char *preferredName, JSONFileType ftype, uint8_t *data, size_t datalen);
/**
* @brief Utility function to save a keydump.
*
* @param sectorsCnt the used sectors
* @param e_sector the keys in question
* @param fptr string pointer to the filename
* @return 0 for ok, 1 for failz
*/
int createMfcKeyDump(uint8_t sectorsCnt, sector_t *e_sector, char* fptr);
/** STUB
* @brief Utility function to load data from a binary file. This method takes a preferred name.
* E.g. dumpdata-15.bin