mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
added loadbinarykeys fct which takes fn and loads binary MFC keys into two arrays KeyA, KeyB.
This commit is contained in:
parent
e10c70adc3
commit
dab3171ba6
2 changed files with 82 additions and 14 deletions
|
|
@ -236,6 +236,7 @@ int loadFileDICTIONARYEx(const char *preferredName, void *data, size_t maxdatale
|
|||
*/
|
||||
int loadFileDICTIONARY_safe(const char *preferredName, void **pdata, uint8_t keylen, uint32_t *keycnt);
|
||||
|
||||
int loadFileBinaryKey(const char *preferredName, const char *suffix, void **keya, void **keyb, size_t *alen, size_t *blen);
|
||||
|
||||
typedef enum {
|
||||
MFU_DF_UNKNOWN,
|
||||
|
|
@ -276,5 +277,20 @@ DumpFileType_t getfiletype(const char *filename);
|
|||
*/
|
||||
int pm3_load_dump(const char *fn, void **pdump, size_t *dumplen, size_t maxdumplen);
|
||||
|
||||
|
||||
/** STUB
|
||||
* @brief Utility function to save data to three file files (BIN/EML/JSON).
|
||||
* It also tries to save according to user preferences set dump folder paths.
|
||||
* E.g. dumpdata.bin
|
||||
* E.g. dumpdata.eml
|
||||
* E.g. dumpdata.json
|
||||
|
||||
* @param fn
|
||||
* @param d The binary data to write to the file
|
||||
* @param n the length of the data
|
||||
* @param jsft json format type for the different memory cards (MFC, MFUL, LEGIC, 14B, 15, ICLASS etc)
|
||||
* @param blocksize
|
||||
* @return PM3_SUCCESS if OK
|
||||
*/
|
||||
int pm3_save_dump(const char *fn, uint8_t *d, size_t n, JSONFileType jsft, size_t blocksize);
|
||||
#endif // FILEUTILS_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue