/ c2_config.py
c2_config.py
 1  # Global Configuration for the Swarm's Command & Control
 2  C2_BROKER = "broker.emqx.io"  # In production, use your private mesh IP
 3  C2_PORT = 8883                # Secure TLS Port
 4  C2_TOPIC = "sys/updates/v1/shards"
 5  SWARM_ID = "GHOST_LEADER_001"
 6  
 7  # The 'Invisible' Payload Wrapper
 8  def wrap_signal(agent_id, status, data):
 9      import json
10      import time
11      return json.dumps({
12          "ts": time.time(),
13          "id": agent_id,
14          "status": status,
15          "payload": data
16      })