mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
reduce scanner client fingerprints
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user