From 690b6d810571e6bd0fa6c0c7ced6b0f729e34b5f Mon Sep 17 00:00:00 2001 From: Eric Severance Date: Thu, 9 Jan 2025 15:43:46 -0800 Subject: [PATCH] Add Atak seed --- .clusterfuzzlite/router_fuzzer_seed_corpus.py | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.clusterfuzzlite/router_fuzzer_seed_corpus.py b/.clusterfuzzlite/router_fuzzer_seed_corpus.py index 684293a62..71736c147 100644 --- a/.clusterfuzzlite/router_fuzzer_seed_corpus.py +++ b/.clusterfuzzlite/router_fuzzer_seed_corpus.py @@ -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: