mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
19 lines
465 B
Go
19 lines
465 B
Go
//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)
|
|
}
|
|
}
|
|
}
|