Exemple #1
0
        public DDoSEngine(FluxEngineWorkObject ewobject) : base(ewobject)
        {
            ewObject = ewobject;

            htMonitors = new System.Collections.Hashtable();

            sMasterHost = ewObject.sPluginWork.Split('|')[0];
            sUsername   = ewObject.sPluginWork.Split('|')[1];
            sPassword   = ewObject.sPluginWork.Split('|')[2];

            string sPostData = "username="******"&password=" + sPassword;

            sApiToken = wc.UploadString(sMasterHost, sPostData);

            pluginClassObject.oParentEngine = this;
        }
        public DDoSEngine(FluxEngineWorkObject ewobject)
            : base(ewobject)
        {
            ewObject = ewobject;

            htMonitors = new System.Collections.Hashtable();

            sMasterHost = ewObject.sPluginWork.Split('|')[0];
            sUsername = ewObject.sPluginWork.Split('|')[1];
            sPassword = ewObject.sPluginWork.Split('|')[2];

            string sPostData = "username="******"&password=" + sPassword;

            sApiToken = wc.UploadString(sMasterHost, sPostData);

            pluginClassObject.oParentEngine = this;
        }
        public BruteForceEngine(FluxEngineWorkObject ewobject) : base(ewobject)
        {
            string sBruteForceType = ewObject.sPluginWork.Substring(0, 4);

            string[] spWork = ewObject.sPluginWork.Split('|');

            switch (sBruteForceType)
            {
            // dict|dict_name|start|stop|target|port
            case "dict":
                BruteForceType   = eBruteForceType.Dictionary;
                sDictionaryName  = spWork[1];
                sDictionaryStart = spWork[2];
                sDictionaryStop  = spWork[3];
                break;

            // forc|style|length|start|stop|target|port
            case "forc":
                BruteForceType = eBruteForceType.BruteForce;

                switch (spWork[1])
                {
                case "alpha":
                    BruteForceStyle = eBruteForceStyle.Alpha;
                    break;

                case "alphanumeric":
                    BruteForceStyle = eBruteForceStyle.AlphaNumeric;
                    break;

                case "fullkeyboard":
                    BruteForceStyle = eBruteForceStyle.FullKeyboard;
                    break;
                }

                sBruteForceLength = spWork[2];
                sBruteForceStart  = spWork[3];
                sBruteForceStop   = spWork[4];
                break;
            }

            sPluginTargetHost = spWork[spWork.Length - 2];
            iPluginTargetPort = int.Parse(spWork[spWork.Length - 1]);
        }
        public BruteForceEngine(FluxEngineWorkObject ewobject)
            : base(ewobject)
        {
            string sBruteForceType = ewObject.sPluginWork.Substring(0, 4);
            string[] spWork = ewObject.sPluginWork.Split('|');

            switch (sBruteForceType)
            {
                // dict|dict_name|start|stop|target|port
                case "dict":
                    BruteForceType = eBruteForceType.Dictionary;
                    sDictionaryName = spWork[1];
                    sDictionaryStart = spWork[2];
                    sDictionaryStop = spWork[3];
                    break;

                // forc|style|length|start|stop|target|port
                case "forc":
                    BruteForceType = eBruteForceType.BruteForce;

                    switch (spWork[1])
                    {
                        case "alpha":
                            BruteForceStyle = eBruteForceStyle.Alpha;
                            break;
                        case "alphanumeric":
                            BruteForceStyle = eBruteForceStyle.AlphaNumeric;
                            break;
                        case "fullkeyboard":
                            BruteForceStyle = eBruteForceStyle.FullKeyboard;
                            break;
                    }

                    sBruteForceLength = spWork[2];
                    sBruteForceStart = spWork[3];
                    sBruteForceStop = spWork[4];
                    break;
            }

            sPluginTargetHost = spWork[spWork.Length - 2];
            iPluginTargetPort = int.Parse(spWork[spWork.Length - 1]);
        }
 public FluxEngine(FluxEngineWorkObject ewobject)
 {
     ewObject = ewobject;
 }