Harden WireGuard detection

Exploit the fixed size handshake messages and sender/receiver indices.
This commit is contained in:
Yağmur Oymak
2019-07-24 18:51:29 +03:00
parent a0d8ce4159
commit 9a899c54c9
2 changed files with 98 additions and 31 deletions
+4
View File
@@ -662,6 +662,10 @@ struct ndpi_flow_udp_struct {
/* NDPI_PROTOCOL_MEMCACHED */
u_int8_t memcached_matches;
/* NDPI_PROTOCOL_WIREGUARD */
u_int8_t wireguard_stage;
u_int32_t wireguard_peer_index[2];
}
#ifndef WIN32
__attribute__ ((__packed__))