Add Atak seed

This commit is contained in:
Eric Severance 2025-01-09 15:43:46 -08:00
parent cd18e5ceb4
commit 690b6d8105
No known key found for this signature in database
GPG Key ID: F19AABB5E1EA1B5F

View File

@ -17,7 +17,13 @@ will be copied into the `public_key` field.
import base64
from meshtastic import BROADCAST_NUM
from meshtastic.protobuf import admin_pb2, mesh_pb2, portnums_pb2, telemetry_pb2
from meshtastic.protobuf import (
admin_pb2,
atak_pb2,
mesh_pb2,
portnums_pb2,
telemetry_pb2,
)
def From(node: int = 9):
@ -135,6 +141,26 @@ packets = (
**From(),
),
),
(
"atak",
mesh_pb2.MeshPacket(
decoded=mesh_pb2.Data(
portnum=portnums_pb2.PortNum.ATAK_PLUGIN,
payload=atak_pb2.TAKPacket(
is_compressed=True,
# Note, the strings are not valid for a compressed message, but will
# give the fuzzer a starting point.
contact=atak_pb2.Contact(
callsign="callsign", device_callsign="device_callsign"
),
chat=atak_pb2.GeoChat(
message="message", to="to", to_callsign="to_callsign"
),
).SerializeToString(),
),
**From(),
),
),
)
for name, packet in packets: