Plugins: ibutton fuzzer improvements

and rfid fuzzer too
This commit is contained in:
MX 2022-11-15 04:42:54 +03:00
parent 5989651b10
commit be97baef06
No known key found for this signature in database
GPG key ID: 6C4C311DFD4B4AB5
2 changed files with 11 additions and 5 deletions

View file

@ -118,6 +118,7 @@ void flipfrid_scene_run_attack_on_tick(FlipFridState* context) {
lfrfid_worker_stop(context->worker);
lfrfid_worker_stop_thread(context->worker);
context->workr_rund = false;
furi_delay_ms(200);
}
switch(context->attack) {
case FlipFridAttackDefaultValues:
@ -515,7 +516,7 @@ void flipfrid_scene_run_attack_on_event(FlipFridEvent event, FlipFridState* cont
break;
case InputKeyLeft:
if(!context->is_attacking) {
if(context->time_between_cards > 0) {
if(context->time_between_cards > 5) {
context->time_between_cards--;
}
}
@ -562,7 +563,9 @@ void flipfrid_scene_run_attack_on_event(FlipFridEvent event, FlipFridState* cont
case InputKeyLeft:
if(!context->is_attacking) {
if(context->time_between_cards > 0) {
context->time_between_cards -= 10;
if((context->time_between_cards - 10) > 5) {
context->time_between_cards -= 10;
}
}
}
break;

View file

@ -108,6 +108,7 @@ void ibtnfuzzer_scene_run_attack_on_tick(iBtnFuzzerState* context) {
ibutton_worker_stop(context->worker);
ibutton_worker_stop_thread(context->worker);
context->workr_rund = false;
furi_delay_ms(500);
}
switch(context->attack) {
case iBtnFuzzerAttackDefaultValues:
@ -361,7 +362,7 @@ void ibtnfuzzer_scene_run_attack_on_event(iBtnFuzzerEvent event, iBtnFuzzerState
break;
case InputKeyLeft:
if(!context->is_attacking) {
if(context->time_between_cards > 0) {
if(context->time_between_cards > 8) {
context->time_between_cards--;
}
}
@ -407,8 +408,10 @@ void ibtnfuzzer_scene_run_attack_on_event(iBtnFuzzerEvent event, iBtnFuzzerState
switch(event.key) {
case InputKeyLeft:
if(!context->is_attacking) {
if(context->time_between_cards > 0) {
context->time_between_cards -= 10;
if(context->time_between_cards > 8) {
if((context->time_between_cards - 10) > 8) {
context->time_between_cards -= 10;
}
}
}
break;