コード例 #1
0
        public override List <CheckInfoResult> ThreadProc()
        {
            List <CheckInfoResult> _result = new List <CheckInfoResult>();

            #region 办案平台、分平台检测
            //检测WCF服务连接
            WCFServiceCheck _dbc    = new WCFServiceCheck();
            string          chk_wcf = "";
            int             res_wcf = _dbc.Check(ref chk_wcf);
            _result.Add(new CheckInfoResult("WCFStatusCheck", chk_wcf, res_wcf));

            //检测Web应用访问(通过IIS日志)
            IISLogCheck _iisc   = new IISLogCheck();
            string      chk_iis = "";
            int         res_iis = _iisc.Check(ref chk_iis);
            _result.Add(new CheckInfoResult("IISLogCheck", chk_iis, res_iis));

            //检测应用目录授权

            //检测自动更新目录

            //检测应用日志 系统操作、接口日志
            SystemLogCheck _slc    = new SystemLogCheck();
            string         chk_slc = "";
            int            res_slc = _slc.Check(ref chk_slc);
            _result.Add(new CheckInfoResult("SystemLogCheck", chk_slc, res_slc));

            UserLogCheck _ulc    = new UserLogCheck();
            string       chk_ulc = "";
            int          res_ulc = _ulc.Check(ref chk_ulc);
            _result.Add(new CheckInfoResult("UserLogCheck", chk_ulc, res_ulc));

            QueryLogCheck _qlc    = new QueryLogCheck();
            string        chk_qlc = "";
            int           res_qlc = _qlc.Check(ref chk_qlc);
            _result.Add(new CheckInfoResult("QueryLogCheck", chk_qlc, res_qlc));

            #endregion


            return(_result);
        }
コード例 #2
0
        private byte[] DoSystemLogExport(byte[] ParameterData)
        {
            string _str = CommandCommon.GetParamDataObj <string>(ParameterData);

            string[] _cstr = _str.Split('.');
            switch (_cstr[0])
            {
            case "SystemLogCheck":
                SystemLogCheck _l = new SystemLogCheck();
                return(_l.GetLogData(_cstr[1]));

            case "QueryLogCheck":
                QueryLogCheck _q = new QueryLogCheck();
                return(_q.GetLogData(_cstr[1]));

            case "UserLogCheck":
                UserLogCheck _u = new UserLogCheck();
                return(_u.GetLogData(_cstr[1]));

            default:
                return(null);
            }
        }