mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 06:18:35 -07:00
Join appletv spammy
This commit is contained in:
@@ -86,12 +86,12 @@ static Payload payloads[] = {
|
|||||||
.data = {.nearby_action = {.flags = 0xC0, .type = 0x27}},
|
.data = {.nearby_action = {.flags = 0xC0, .type = 0x27}},
|
||||||
}},
|
}},
|
||||||
{.title = "Join This AppleTV?",
|
{.title = "Join This AppleTV?",
|
||||||
.text = "Modal, unlocked",
|
.text = "Modal, unlocked, spammy",
|
||||||
.random = false,
|
.random = false,
|
||||||
.msg =
|
.msg =
|
||||||
{
|
{
|
||||||
.type = ContinuityTypeNearbyAction,
|
.type = ContinuityTypeNearbyAction,
|
||||||
.data = {.nearby_action = {.flags = 0xC0, .type = 0x20}},
|
.data = {.nearby_action = {.flags = 0xBF, .type = 0x20}},
|
||||||
}},
|
}},
|
||||||
{.title = "AppleTV Audio Sync",
|
{.title = "AppleTV Audio Sync",
|
||||||
.text = "Banner, locked, long range",
|
.text = "Banner, locked, long range",
|
||||||
|
|||||||
@@ -129,7 +129,9 @@ void continuity_generate_packet(const ContinuityMsg* msg, uint8_t* packet) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ContinuityTypeNearbyAction:
|
case ContinuityTypeNearbyAction:
|
||||||
packet[i++] = msg->data.nearby_action.flags; // Action Flags
|
packet[i] = msg->data.nearby_action.flags; // Action Flags
|
||||||
|
if(packet[i] == 0xBF && rand() % 2) packet[i]++; // Ugly hack to shift 0xBF-0xC0 for spam
|
||||||
|
i++;
|
||||||
packet[i++] = msg->data.nearby_action.type;
|
packet[i++] = msg->data.nearby_action.type;
|
||||||
packet[i++] = (rand() % 256); // Authentication Tag
|
packet[i++] = (rand() % 256); // Authentication Tag
|
||||||
packet[i++] = (rand() % 256); // ...
|
packet[i++] = (rand() % 256); // ...
|
||||||
|
|||||||
Reference in New Issue
Block a user