BLE Spam add some help messages to config menus

This commit is contained in:
Willy-JL
2023-10-20 23:38:11 +01:00
parent a75122011d
commit 3f0b9f2d41
5 changed files with 13 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ static Attack attacks[] = {
},
{
.title = "Windows Device Found",
.text = "Requires enabling SwiftPair",
.text = "No cooldown, short range",
.protocol = &protocol_swiftpair,
.payload =
{

View File

@@ -458,6 +458,11 @@ static void continuity_extra_config(Ctx* ctx) {
variable_item_set_current_value_text(item, flags_name);
break;
}
case ContinuityTypeCustomCrash: {
variable_item_list_add(list, "Lock+unlock helps to crash", 0, NULL, NULL);
variable_item_list_add(list, "Works on iPhone 12 and up", 0, NULL, NULL);
break;
}
default:
break;
}

View File

@@ -128,6 +128,8 @@ static void fastpair_extra_config(Ctx* ctx) {
variable_item_set_current_value_index(item, value_index);
variable_item_set_current_value_text(item, model_name);
variable_item_list_add(list, "Requires Google services", 0, NULL, NULL);
variable_item_list_set_enter_callback(list, config_callback, ctx);
}

View File

@@ -70,6 +70,8 @@ static void swiftpair_extra_config(Ctx* ctx) {
variable_item_set_current_value_text(
item, cfg->display_name[0] != '\0' ? cfg->display_name : "Random");
variable_item_list_add(list, "Requires enabling SwiftPair", 0, NULL, NULL);
variable_item_list_set_enter_callback(list, config_callback, ctx);
}

View File

@@ -20,7 +20,9 @@ void scene_config_on_enter(void* _ctx) {
variable_item_set_current_value_index(item, ctx->attack->payload.random_mac);
variable_item_set_current_value_text(item, ctx->attack->payload.random_mac ? "ON" : "OFF");
if(ctx->attack->protocol && ctx->attack->protocol->extra_config) {
if(!ctx->attack->protocol) {
variable_item_list_add(list, "None shall escape the S I N K", 0, NULL, NULL);
} else if(ctx->attack->protocol->extra_config) {
ctx->attack->protocol->extra_config(ctx);
}