Pārlūkot izejas kodu

Implemented WhiteGuard

Updated engine revision number

git-svn-id: https://svn.microneil.com/svn/SNFMulti/trunk@55 dc71a809-1921-45c4-985c-09c81d0142d9
wx
madscientist pirms 10 gadiem
vecāks
revīzija
68b932d2cf
1 mainītis faili ar 17 papildinājumiem un 4 dzēšanām
  1. 17
    4
      SNFMulti.cpp

+ 17
- 4
SNFMulti.cpp Parādīt failu



//// Version Info //// 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 //// Script Caller Methods




switch(ScanResultType) { // Evaluate the scan result. switch(ScanResultType) { // Evaluate the scan result.
case NoPattern: // On no pattern (benefit of doubt) or 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; break;
} }
case BlackPattern: { // On a black pattern: case BlackPattern: { // On a black pattern:

Notiek ielāde…
Atcelt
Saglabāt