Skip to content

Commit

Permalink
Merge remote-tracking branch 'pr3822/nestednonces' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
noproto committed Oct 23, 2024
2 parents 1f6f39c + 4763762 commit 68438e2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion applications/main/nfc/plugins/supported_cards/trt.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ static bool trt_parse(const NfcDevice* device, FuriString* parsed_data) {
const uint8_t* full_record_pointer = &data->page[FULL_SALE_TIME_STAMP_PAGE].data[0];
uint32_t latest_sale_record = bit_lib_get_bits_32(partial_record_pointer, 3, 20);
uint32_t latest_sale_full_record = bit_lib_get_bits_32(full_record_pointer, 0, 27);
if(latest_sale_record != (latest_sale_full_record & 0xFFFFF)) break;
if(latest_sale_record != (latest_sale_full_record & 0xFFFFF))
break; // check if the copy matches
if((latest_sale_record == 0) || (latest_sale_full_record == 0))
break; // prevent false positive

// Parse date
// yyy yyyymmmm dddddhhh hhnnnnnn
Expand Down
5 changes: 3 additions & 2 deletions documentation/doxygen/index.dox
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
@mainpage Overview
@mainpage notitle
## Welcome to Flipper Developer Documentation!

Welcome to the Flipper Developer Documentation!
---

This documentation is intended for developers interested in modifying the Flipper Zero firmware, creating Apps and JavaScript programs, or working on external hardware modules for the device.

Expand Down
3 changes: 3 additions & 0 deletions lib/digital_signal/digital_sequence.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
* Example:
* ./fbt --extra-define=DIGITAL_SIGNAL_DEBUG_OUTPUT_PIN=gpio_ext_pb3
*/
#ifdef DIGITAL_SIGNAL_DEBUG_OUTPUT_PIN
#include <furi_hal.h>
#endif

#define TAG "DigitalSequence"

Expand Down
2 changes: 1 addition & 1 deletion lib/nfc/protocols/mf_classic/mf_classic_poller.c
Original file line number Diff line number Diff line change
Expand Up @@ -1780,7 +1780,7 @@ NfcCommand mf_classic_poller_handler_nested_log(MfClassicPoller* instance) {
bool mf_classic_nested_is_target_key_found(MfClassicPoller* instance, bool is_dict_attack) {
MfClassicPollerDictAttackContext* dict_attack_ctx = &instance->mode_ctx.dict_attack_ctx;
bool is_weak = dict_attack_ctx->prng_type == MfClassicPrngTypeWeak;
uint8_t nested_target_key = dict_attack_ctx->nested_target_key;
uint16_t nested_target_key = dict_attack_ctx->nested_target_key;

MfClassicKeyType target_key_type;
uint8_t target_sector;
Expand Down

0 comments on commit 68438e2

Please sign in to comment.