Stabilize TeamSpeak connection: implement command compression, fragmentation, and fix MAC/flags

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-15 20:30:03 +01:00
parent 7a9844f977
commit 338f6d4704
7 changed files with 766 additions and 614 deletions

View File

@@ -290,7 +290,8 @@ func (h *HandshakeState) ProcessInitivexpand2(cmdArgs map[string]string) error {
// SharedMac = SHA1(SharedIV)[0..8]
macHash := sha1.Sum(h.SharedIV)
copy(h.SharedMac[:], macHash[0:8])
h.SharedMac = make([]byte, 8)
copy(h.SharedMac, macHash[0:8])
log.Printf("Debug - SharedSecret (SHA512): %s", hex.EncodeToString(h.SharedSecret))
log.Printf("Debug - SharedIV: %s", hex.EncodeToString(h.SharedIV))