예제 #1
0
        public void SetServiceState(DumpServices service, bool state)
        {
            int sid = (int)service;

            dState[sid] = state;
            string srvName = dumpServices[sid].Substring(4);

            logger.Log("MITM" + srvName + " set to " + ((state) ? "Enabled" : "Disabled"), VLogger.LogLevel.service);
        }
예제 #2
0
        public bool CheckServiceState(DumpServices service)
        {
            int  sid   = (int)service;
            bool state = dState[sid];

            if (service == DumpServices.Undefined)
            {
                logger.Log("Invalid service name specified!", VLogger.LogLevel.error);
            }
            return(state);
        }
예제 #3
0
        public string ServiceToString(DumpServices input)
        {
            int sid = (int)input;

            return(dumpServices[sid]);
        }