Exemple #1
0
 void pluginMngr_pluginLoaded(Plugins.Plugin plugin)
 {
     lbLoadedScripts.Invoke(new MethodInvoker(delegate
     {
         lbLoadedScripts.Items.Add(plugin);
     }));
 }
Exemple #2
0
        public void Unload(Plugin p)
        {
            lstPlugins.Remove(p);

            if (pluginUnloaded != null)
                pluginUnloaded(p);
        }
Exemple #3
0
        private void btLoadPlugin_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Plugins.Plugin p = new Plugins.Plugin(ofd.FileName);
                Program.data.pluginMngr.Load(p);
            }
        }
Exemple #4
0
        public void Load(Plugin p)
        {
            if (File.Exists(p.filename))
            {
                lstPlugins.Add(p);

                if (pluginLoaded != null)
                    pluginLoaded(p);

                p.ExecuteCode();
            }
            else
            {
                Program.LogThis("Core", "Plugin " + p.filename + " doesn't exist");
            }
        }
Exemple #5
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            tabControl1.TabPages.Remove(tabFuzzer);
            tabControl1.TabPages.Remove(tabRepeater);

            Thread tPool = new Thread(new ThreadStart(Pool));

            tPool.IsBackground = true;
            tPool.Start();

            lbFunction.Text = "";

            cbIntercepting.Checked = Program.data.intercept;


            if (Program.data.intercept)
            {
                cbIntercepting.Text = "Intercepting is ON";
            }
            else
            {
                cbIntercepting.Text = "Intercepting is OFF";
            }

            Program.data.NewMatchAndReplace += new Core.Data.matchAndReplaceHandler(data_NewMatchAndReplace);
            Program.LogThis("Core", "Program started");


            // Si se ha indicado un plugin desde la consola, se carga aqui
            foreach (string pString in Program.consoleHandler.pluginsToLoad)
            {
                Plugins.Plugin p = new Plugins.Plugin(pString);
                Program.data.pluginMngr.Load(p);
            }

            wBrowser.Navigate(Program.data.configuration.urlSponsor);
        }
Exemple #6
0
 private void btLoadPlugin_Click(object sender, EventArgs e)
 {
     OpenFileDialog ofd = new OpenFileDialog();
     if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         Plugins.Plugin p = new Plugins.Plugin(ofd.FileName);
         Program.data.pluginMngr.Load(p);
     }
     
 }
Exemple #7
0
        private void FormMain_Load(object sender, EventArgs e)
        {
                tabControl1.TabPages.Remove(tabFuzzer);
                tabControl1.TabPages.Remove(tabRepeater);

                Thread tPool = new Thread(new ThreadStart(Pool));
                tPool.IsBackground = true;
                tPool.Start();

                lbFunction.Text = "";

                cbIntercepting.Checked = Program.data.intercept;


                if (Program.data.intercept)
                    cbIntercepting.Text = "Intercepting is ON";
                else
                    cbIntercepting.Text = "Intercepting is OFF";

                Program.data.NewMatchAndReplace += new Core.Data.matchAndReplaceHandler(data_NewMatchAndReplace);
                Program.LogThis("Core", "Program started");


                // Si se ha indicado un plugin desde la consola, se carga aqui
                foreach (string pString in Program.consoleHandler.pluginsToLoad)
                {
                    Plugins.Plugin p = new Plugins.Plugin(pString);
                    Program.data.pluginMngr.Load(p);
                }

                wBrowser.Navigate(Program.data.configuration.urlSponsor);
        }