Pārlūkot izejas kodu

Added configuration for injecting headers, and default mapping from SNFServer code to SA score.




git-svn-id: https://svn.microneil.com/svn/PKG-SNF-CS-NIX/trunk@7 233e721a-07f6-49eb-a7da-05e0e16828fc
master
adeniz pirms 15 gadiem
vecāks
revīzija
6da4dd0c70
1 mainītis faili ar 12 papildinājumiem un 2 dzēšanām
  1. 12
    2
      SNF_CS_Developer_Package.3.0.2_p4/SNF4SA/snf4sa.cf

+ 12
- 2
SNF_CS_Developer_Package.3.0.2_p4/SNF4SA/snf4sa.cf Parādīt failu

@@ -9,8 +9,18 @@
#snf4sa.cf
loadplugin Snf4sa snf4sa.pm
full SNF4SA eval:snf4sa_sacheck()
describe SNF4SA The Message Sniffer Snf4sa Plugin
score SNF4SA 10.0
describe SNF4SA Message Sniffer Snf4sa Plugin
# Header line containing the results from SNFServer.
add_header all SNF-Result _SNFRESULTTAG_
add_header all MessageSniffer-Scan-Result _SNFMESSAGESNIFFERSCANRESULT_
add_header all MessageSniffer-Rules _SNFMESSAGESNIFFERRULES_
add_header all GBUdb-Analysis _SNFGBUDBANALYSIS_
# Test lines.
GBUdb_max_weight 3.0
snf_result 1 sa_score -5.0 short_circuit_no
snf_result 20 sa_score 6.0 short_circuit_yes
snf_result 40 sa_score 5.0 short_circuit_yes
snf_result 47-62 sa_score 4.0 short_circuit_yes
snf_result 63 sa_score 2.5 short_circuit_no

Notiek ielāde…
Atcelt
Saglabāt