|
|
@@ -25,7 +25,7 @@ using namespace std; |
|
|
|
|
|
|
|
//// Version Info |
|
|
|
|
|
|
|
const char* SNF_ENGINE_VERSION = "SNFMulti Engine Version 3.1.0 Build: " __DATE__ " " __TIME__; |
|
|
|
const char* SNF_ENGINE_VERSION = "SNFMulti Engine Version 3.1.1 Build: " __DATE__ " " __TIME__; |
|
|
|
|
|
|
|
//// Script Caller Methods |
|
|
|
|
|
|
@@ -1779,9 +1779,22 @@ int snf_EngineHandler::scanMessage( |
|
|
|
|
|
|
|
switch(ScanResultType) { // Evaluate the scan result. |
|
|
|
case NoPattern: // On no pattern (benefit of doubt) or |
|
|
|
case WhitePattern: { // a white pattern: |
|
|
|
MyRulebase->MyGBUdb.addGood( // then add a good count to the |
|
|
|
MyScanData.SourceIPRecord().IP); // source IP. |
|
|
|
case WhitePattern: { // a white pattern:
|
|
|
|
|
|
|
|
GBUdbRecord thisRecord = // Grab the GBUdb record for later |
|
|
|
MyRulebase->MyGBUdb.addGood( // then add a good count to the |
|
|
|
MyScanData.SourceIPRecord().IP); // source IP.
|
|
|
|
|
|
|
|
const unsigned int WhiteGuardValue = 7;
|
|
|
|
bool triggeredWhiteGuard = (0 == thisRecord.Bad() && 1 == thisRecord.Good());
|
|
|
|
if(triggeredWhiteGuard) {
|
|
|
|
thisRecord.Good(WhiteGuardValue);
|
|
|
|
thisRecord.Bad(WhiteGuardValue);
|
|
|
|
MyRulebase->MyGBUdb.setRecord(
|
|
|
|
MyScanData.SourceIPRecord().IP,
|
|
|
|
thisRecord
|
|
|
|
);
|
|
|
|
}
|
|
|
|
break; |
|
|
|
} |
|
|
|
case BlackPattern: { // On a black pattern: |