Skip to content

Commit bdeb7c1

Browse files
committed
Exclude multiple port-scanner
Due to conflicts and missleading data multiple port-scanner need to be deactivated. This is currently done manually but should be done via the policy resolver within ospd-openvas smoketests.
1 parent 6ad3a29 commit bdeb7c1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

feature-tests/converter/scan.go

+22
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,32 @@ func (tc *targetStartScanConverter) selection(pols []string, oids []string) []sc
3636
selection.Single = append(selection.Single, ps.Single...)
3737
}
3838

39+
// conflicting port-scannner
40+
// when this is solved by the policy resolver remove this
41+
exclude_oid := []string{
42+
"1.3.6.1.4.1.25623.1.0.105924",
43+
"1.3.6.1.4.1.25623.1.0.104000",
44+
"1.3.6.1.4.1.25623.1.0.80009",
45+
"1.3.6.1.4.1.25623.1.0.80001",
46+
"1.3.6.1.4.1.25623.1.0.80002",
47+
"1.3.6.1.4.1.25623.1.0.11219",
48+
"1.3.6.1.4.1.25623.1.0.10335",
49+
"1.3.6.1.4.1.25623.1.0.14274",
50+
"1.3.6.1.4.1.25623.1.0.10796",
51+
"1.3.6.1.4.1.25623.1.0.14663",
52+
}
53+
3954
for _, oid := range oids {
55+
for _, exclude := range exclude_oid {
56+
if oid == exclude {
57+
goto skip_me
58+
}
59+
}
60+
4061
selection.Single = append(selection.Single, scan.VTSingle{
4162
ID: oid,
4263
})
64+
skip_me:
4365
}
4466

4567
return []scan.VTSelection{selection}

0 commit comments

Comments
 (0)