mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
HF_BOG make style
This commit is contained in:
parent
d3633b719f
commit
6614995256
1 changed files with 3 additions and 3 deletions
|
@ -138,7 +138,7 @@ void RAMFUNC SniffAndStore(uint8_t param) {
|
||||||
|
|
||||||
if (triggered) {
|
if (triggered) {
|
||||||
if ((receivedCmd) &&
|
if ((receivedCmd) &&
|
||||||
((receivedCmd[0] == MIFARE_ULEV1_AUTH) || (receivedCmd[0] == MIFARE_ULC_AUTH_1))) {
|
((receivedCmd[0] == MIFARE_ULEV1_AUTH) || (receivedCmd[0] == MIFARE_ULC_AUTH_1))) {
|
||||||
if (DBGLEVEL > 1)
|
if (DBGLEVEL > 1)
|
||||||
Dbprintf("PWD-AUTH KEY: 0x%02x%02x%02x%02x", receivedCmd[1], receivedCmd[2],
|
Dbprintf("PWD-AUTH KEY: 0x%02x%02x%02x%02x", receivedCmd[1], receivedCmd[2],
|
||||||
receivedCmd[3], receivedCmd[4]);
|
receivedCmd[3], receivedCmd[4]);
|
||||||
|
@ -207,8 +207,8 @@ void RAMFUNC SniffAndStore(uint8_t param) {
|
||||||
Dbprintf("[!] Authentication attempts = %u", auth_attempts);
|
Dbprintf("[!] Authentication attempts = %u", auth_attempts);
|
||||||
|
|
||||||
if
|
if
|
||||||
size_t size = 4 * auth_attempts;
|
size_t size = 4 * auth_attempts;
|
||||||
uint8_t *data = BigBuf_malloc(size);
|
uint8_t *data = BigBuf_malloc(size);
|
||||||
|
|
||||||
if (!exists_in_spiffs((char *)HF_BOG_LOGFILE)) {
|
if (!exists_in_spiffs((char *)HF_BOG_LOGFILE)) {
|
||||||
rdv40_spiffs_write((char *)HF_BOG_LOGFILE, (uint8_t *)data, size, RDV40_SPIFFS_SAFETY_SAFE);
|
rdv40_spiffs_write((char *)HF_BOG_LOGFILE, (uint8_t *)data, size, RDV40_SPIFFS_SAFETY_SAFE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue