亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? detector.java

?? 基于人工免疫原理的入侵檢測系統框架
?? JAVA
字號:
/*================= * Copyright (C) 2001  Steven Hofmeyr * * Lisys is a program that monitors TCP SYN packets to detect network * traffic anomalies. * * Licensed under the GNU General Public License (GPL), version 2 or * higher.  Please see the COPYING and PATENT files included with the * Lisys distribution, which can be found at: * *   http://www.cs.unm.edu/~judd/lisys/ * * Also, the current text of the GPL can be found at:  * *   http://www.gnu.org/copyleft/gpl.html *  * Note that Lisys has NO WARRANTY! *=================*/package edu.unm.cs.lisys.detection;import edu.unm.cs.lisys.debug.*;import edu.unm.cs.lisys.util.*;import edu.unm.cs.lisys.detection.bip.*;import edu.unm.cs.lisys.detection.bif.*;import edu.unm.cs.lisys.detection.matchrule.*;import java.io.*;/**==========  * Detector.java  * * Many people have worked on this code. Here they are in the order they * have worked on it: *   @author Steven Hofmeyr <sah@santafe.edu> *   @author Todd Kaplan <kaplan@cs.unm.edu> *   @author Hajime Inoue <hinoue@cs.unm.edu> *   @author Dennis Chao <dlchao@cs.unm.edu> *   @author Justin Balthrop <judd@cs.unm.edu> * * The actual "detector" that behaves like a single T cell.   * A detector consists of a BIF (binary input filter) and a BIP * (binary input pattern).  Incoming BIPs are filtered and then * compared to the BIP. * * The main public methods are: *   int respondToBip(BinaryInputPattern incomingBip, double sensitivityLevel)  *   boolean costimulate(BinaryInputPattern verifyBip) *==========*/public class Detector implements Serializable{    private KnuthRandom random;    private boolean memory = false;    private boolean awaitingCostimulation = false;    private boolean immature = true;    private long age = 0;    private int numberMatches = 0;    private long ageAtLastMatch = 0;    private BinaryInputFilter localBif;    private BinaryInputPattern localBip;    private MatchRule localMatchRule;    private boolean activated = false;      private int currentMatchLength = 0; // length of last match    private String _szBipType;          // the name of the BIP class    private int _nActivationThreshhold = 10;    private int _nCostimulationDelay;    private int _nTolerizationPeriod;    private double _dDeathProbability;    private double _dMatchDecay;    private int _nMinMatchLength = 0;   // minimum length of a match    // These are the values that are returned by activated method.    public static final int NONE = 0;    public static final int DIE = 1;    public static final int ADJUST_SENSITIVITY = 2;    public static final int ACTIVATED = 3;    public Detector(BinaryInputFilter bif, 		    MatchRule matchRule, 		    KnuthRandom r,		    int activationThreshhold,		    int costimulationDelay,		    int tolerizationPeriod,		    double deathProbability,		    int minMatchLength,		    double matchDecay,		    String bipType)     {	// Use the parameters to set the class variables.        localBif = bif;          localMatchRule = matchRule;	random = r;        _nActivationThreshhold = activationThreshhold;	_nCostimulationDelay = costimulationDelay;        _nTolerizationPeriod = tolerizationPeriod;        _dDeathProbability = deathProbability;        _nMinMatchLength = minMatchLength;	_dMatchDecay = matchDecay;	// Now we'll try to look up the BIP class using it's name.	_szBipType = bipType;	try {	    localBip = (BinaryInputPattern)Class.forName(_szBipType).newInstance();	    localBip.constructBinaryString(random);	} 	catch (Exception e) {	    Debug.exception("Sorry, the BIP doesn't exist: ", e);	}    }    /**==========     * recreate:     *   This is the same as the constructor except we don't get a new     *   random number generator.     *==========*/    public void recreate(BinaryInputFilter bif, 			 MatchRule matchRule,			 int activationThreshhold,			 int costimulationDelay,			 int tolerizationPeriod,			 double deathProbability,			 int minMatchLength,			 double matchDecay,			 String bipType)    {	// Use the parameters to set the class variables.        localBif = bif;          localMatchRule = matchRule;          _nActivationThreshhold = activationThreshhold;	_nCostimulationDelay = costimulationDelay;        _nTolerizationPeriod = tolerizationPeriod;        _dDeathProbability = deathProbability;        _nMinMatchLength = minMatchLength;	_dMatchDecay = matchDecay;    	// Try to look up the BIP class by name.	_szBipType = bipType;	try {	    localBip = (BinaryInputPattern)Class.forName(_szBipType).newInstance();	    localBip.constructBinaryString(random);	}	catch (Exception e) {	    Debug.exception("Sorry, the BIP doesn't exist: ", e);	}	// We also need to reset the detector back to it's initial	// immature state.	memory = false;	awaitingCostimulation = false;	immature = true;	age = 0;	numberMatches = 0;	ageAtLastMatch = 0;	activated = false;      }        public int getTolerizationPeriod() { return _nTolerizationPeriod; }    public int setTolerizationPeriod(int i)     { 	if (i > 0)  _nTolerizationPeriod = i;	return _nTolerizationPeriod;    }        /**==========     * respondToBip:      *   Using the incoming BIP, this function determines what happens     *   next. The detector always gets older. In additon to that, we     *   can either die, become activated, adjust our sensitivity or     *   do nothing.     *     * @param incomingBip - the BIP used to determine our action     * @param sensitivityLevel - how sensitive will we be     * @return a constant indicating the response to the BIP     *==========*/    public int respondToBip(BinaryInputPattern incomingBip, double sensitivityLevel)     {        age++;	        // If the detector has exceeded the costimulation period then it must die.        if (awaitingCostimulation && 	    ((age - ageAtLastMatch) > _nCostimulationDelay)) {	    Debug.verbose(this.toString() + ": died from lack of costim");	    return DIE;	}        	// Check to see if the detector matures.        if (immature && (age >= _nTolerizationPeriod)) {            immature = false;        }        // Check for death from old age.        if (!immature && !memory && (_dDeathProbability > 0)) {             if (random.fraction() < _dDeathProbability) {		Debug.verbose(this.toString() + ": died of old age");                return DIE;	    }	}         // Permute the binary string.        BinaryInputPattern filteredBip = localBif.filter(incomingBip);        // Adjust the threshold according to sensitivity and memory.        double adjustedThreshold = _nActivationThreshhold - sensitivityLevel;        if (adjustedThreshold < 1) adjustedThreshold = 1;        if (memory) adjustedThreshold = 1;        currentMatchLength = localMatchRule.match(localBip, filteredBip);	activated = false;        boolean firstMatch = false;        if (currentMatchLength >= _nMinMatchLength) {             if (immature) {		Debug.verbose(this.toString() + ": died on immmature match");		return DIE;  // Even 1 match is death for an immature detector!	    }            	    numberMatches++;	    // Check if the detector has been activated.            if (numberMatches >= _nActivationThreshhold) {                  activated = true;		numberMatches = 0;  		                // If we are awaiting costimulation then don't reset the age 		// at the last match, otherwise set it to the current age.                if (! awaitingCostimulation) {                       ageAtLastMatch = age;                    awaitingCostimulation = true;                }            }            if (numberMatches == 1) firstMatch = true;        }        // Randomly decay the number of matches.        if (numberMatches > 0) {            if (random.fraction() < _dMatchDecay) numberMatches--;        }        if (activated) return ACTIVATED;        if (firstMatch) return ADJUST_SENSITIVITY;        return NONE;    }    public boolean isActivated() { return activated; }    public boolean isImmature() { return immature; }    public int getMatchLength() { return currentMatchLength; }        /**==========     * costimulate:     *   Checks to see if the given BIP stimulates the detector.     *   Costimulation cannot occur if the BIP is a memory detector or     *   an immature detector.     *     * @param verifyBip - the BIP used to determine stimulation     * @return whether this detector was costimulated      *==========*/    public boolean costimulate(BinaryInputPattern verifyBip)    {        if (immature || memory || !awaitingCostimulation) return false;        // Permute the binary string.        BinaryInputPattern filteredBip = localBif.filter(verifyBip);	        int currentMatchLength = localMatchRule.match(localBip, filteredBip);        if (currentMatchLength >= _nMinMatchLength) {            // Costimulation received!	    awaitingCostimulation = false;            return true;        }        	return false;    }    public boolean isMemory() { return memory; }    public void setMemory(boolean bool) { memory = bool; }    public String toString() { return localBip.toString(); }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久黄色| 99久久99久久精品国产片果冻 | 精品久久久久av影院 | 国产乱人伦偷精品视频不卡| 欧美大片一区二区三区| 国内精品不卡在线| 国产精品久久久久aaaa樱花 | 天天综合天天综合色| 在线电影一区二区三区| 麻豆高清免费国产一区| 国产欧美一区二区在线观看| 91亚洲国产成人精品一区二三| 玉米视频成人免费看| 欧美一区二区免费观在线| 国内精品国产成人| 亚洲男人的天堂在线aⅴ视频| 欧美性猛交xxxx黑人交| 乱一区二区av| 中文字幕欧美一| 欧美久久久久久蜜桃| 国产麻豆精品在线| 亚洲综合久久久久| 日韩欧美久久久| 91网站在线播放| 另类中文字幕网| 亚洲精选免费视频| 日韩免费看网站| 色综合久久中文字幕综合网| 美女免费视频一区二区| 亚洲欧美国产三级| 欧美xfplay| 91精品91久久久中77777| 精品在线观看免费| 一区二区三区在线视频观看| 久久先锋影音av鲁色资源| 日本韩国欧美一区| 另类小说色综合网站| 一区二区三区四区在线| 26uuu久久天堂性欧美| 在线观看www91| 成人妖精视频yjsp地址| 久久成人精品无人区| 尤物视频一区二区| 国产欧美综合在线| 欧美本精品男人aⅴ天堂| 欧美性猛片xxxx免费看久爱| 成人午夜视频网站| 精品系列免费在线观看| 亚洲一二三区视频在线观看| 国产蜜臀av在线一区二区三区| 欧美一区二区视频在线观看| 欧美亚洲愉拍一区二区| av激情亚洲男人天堂| 国产精品主播直播| 精品中文字幕一区二区| 日本欧美加勒比视频| 亚洲一区二区欧美日韩| 亚洲美女一区二区三区| 中文字幕色av一区二区三区| 国产亚洲精品aa午夜观看| 欧美变态tickling挠脚心| 欧美一三区三区四区免费在线看| 91在线国产观看| av高清久久久| av高清不卡在线| 91视频免费播放| av在线一区二区三区| 成人午夜精品在线| 国产精品亚洲一区二区三区在线| 久久电影网站中文字幕| 久久黄色级2电影| 美女高潮久久久| 精品在线视频一区| 国内精品不卡在线| 国产精品996| 成人午夜碰碰视频| 成人免费毛片嘿嘿连载视频| 成人免费高清视频| 99国产精品久久久久久久久久久| caoporm超碰国产精品| 成人av影视在线观看| 99视频超级精品| 在线亚洲精品福利网址导航| 欧亚洲嫩模精品一区三区| 欧美色图在线观看| 日韩欧美一级精品久久| 久久综合中文字幕| 国产欧美一区二区精品忘忧草 | 自拍偷在线精品自拍偷无码专区 | 成人一区二区三区视频| 91偷拍与自偷拍精品| 欧美三级中文字幕在线观看| 91精品久久久久久久91蜜桃| 日韩欧美亚洲一区二区| 国产午夜精品一区二区三区嫩草| 国产精品久久午夜| 亚洲图片欧美色图| 美国毛片一区二区三区| 成人久久视频在线观看| 色欧美乱欧美15图片| 7878成人国产在线观看| 精品国产乱码久久久久久影片| 久久久一区二区| 亚洲精品国产成人久久av盗摄 | 国产不卡视频一区| 色综合久久中文综合久久97| 欧美精品高清视频| 国产亚洲精品精华液| 亚洲综合成人网| 久久精品国产久精国产爱| av动漫一区二区| 欧美一区二区三区在线看| 国产精品视频免费看| 日韩精彩视频在线观看| 成人丝袜视频网| 欧美日韩高清不卡| 国产女人18毛片水真多成人如厕 | 国产99久久久国产精品| 欧美三级韩国三级日本一级| 久久久国产精华| 亚洲午夜国产一区99re久久| 国产精品一区二区久久精品爱涩 | 欧美老肥妇做.爰bbww视频| 久久综合一区二区| 亚洲一级二级三级在线免费观看| 国产麻豆91精品| 欧美精品日韩一本| 中文字幕亚洲电影| 激情成人综合网| 欧美美女喷水视频| 亚洲欧洲国产日韩| 国产精品亚洲视频| 欧美一区二区黄色| 亚洲女同ⅹxx女同tv| 高清不卡在线观看av| 日韩欧美一二三| 天天亚洲美女在线视频| 成人a区在线观看| 久久久久久久综合色一本| 日本不卡一区二区| 欧美色倩网站大全免费| 亚洲欧洲国产专区| 成人h动漫精品一区二区| 精品国产sm最大网站| 日日夜夜精品视频免费| 91在线免费播放| 国产精品久久久久精k8| 国产乱子伦视频一区二区三区| 91精品国产高清一区二区三区| 亚洲电影你懂得| 欧洲精品中文字幕| 亚洲精品视频在线看| 成人动漫一区二区在线| 中文字幕不卡在线观看| 激情五月激情综合网| 精品国产乱码91久久久久久网站| 午夜视频一区二区| 欧美色成人综合| 亚洲最大色网站| 91福利在线看| 亚洲精品久久7777| 在线观看日韩国产| 一区二区免费在线播放| 99精品视频在线观看| 国产精品素人一区二区| 国产传媒一区在线| 国产精品理论片| 99久久精品一区二区| 亚洲日本一区二区| 欧美性感一类影片在线播放| 亚洲免费观看高清在线观看| 欧美性三三影院| 日韩高清在线观看| 精品国产91久久久久久久妲己| 欧美aaaaaa午夜精品| 精品91自产拍在线观看一区| 国产尤物一区二区在线| 国产亲近乱来精品视频| 99国产一区二区三精品乱码| 亚洲激情成人在线| 欧美精品在线一区二区| 麻豆国产欧美日韩综合精品二区| 欧美哺乳videos| 国产福利91精品一区| 亚洲日本中文字幕区| 欧美亚洲禁片免费| 日本在线播放一区二区三区| 久久一区二区三区四区| 成人国产视频在线观看| 一区二区三区影院| 5月丁香婷婷综合| 久久www免费人成看片高清| 国产人妖乱国产精品人妖| 91香蕉视频在线| 免费成人在线播放| 国产夜色精品一区二区av| 91国偷自产一区二区开放时间 | 久久精品日产第一区二区三区高清版 | 在线亚洲免费视频| 蜜桃一区二区三区在线|