Skip to main content

Module kit_wireguard_placement

Module kit_wireguard_placement 

Source
Expand description

WireGuard placement on Windows, decided by facts about the interface that carries traffic to the C2 endpoint (not by adapter names). Pure logic; tested on every target.

Structs§

Decision
Why the decision was made (logged verbatim).
RouteFact
One route candidate toward the C2 endpoint with facts about its interface.

Enums§

Placement

Functions§

decide
decisive_route
Most specific route wins; ties broken by lowest metric.
is_split_default
0.0.0.0/1 or 128.0.0.0/1 (typical VPN split-default).
opens_adapter
parse_route_facts
Parse tab-separated lines: if_index \t prefix \t metric \t if_type \t hardware \t virtual \t media \t alias \t desc
prefix_len
Prefix length of a.b.c.d/n; unparseable = 0.
tunnel_reason
Facts that make an interface a tunnel. Returns the reason when it is one.