reduce scanner client fingerprints

This commit is contained in:
ZacharyZcR
2026-05-23 07:20:24 +08:00
parent 0046817c2e
commit 1a714f6a0c
6 changed files with 44 additions and 38 deletions
+18
View File
@@ -0,0 +1,18 @@
//go:build plugin_oracle || !plugin_selective
package services
import (
"bytes"
"testing"
)
func TestOracleConnectDataDoesNotExposeClientIdentity(t *testing.T) {
connectData := oracleConnectData("db.example", 1521, "ORCL")
for _, value := range []string{"CID=", "PROGRAM=", "USER=", "fscan"} {
if bytes.Contains([]byte(connectData), []byte(value)) {
t.Fatalf("oracle connect data contains client-identifying value %q: %s", value, connectData)
}
}
}