mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-05 19:19:18 +00:00
Add Atak seed
This commit is contained in:
parent
cd18e5ceb4
commit
690b6d8105
@ -17,7 +17,13 @@ will be copied into the `public_key` field.
|
|||||||
import base64
|
import base64
|
||||||
|
|
||||||
from meshtastic import BROADCAST_NUM
|
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):
|
def From(node: int = 9):
|
||||||
@ -135,6 +141,26 @@ packets = (
|
|||||||
**From(),
|
**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:
|
for name, packet in packets:
|
||||||
|
Loading…
Reference in New Issue
Block a user