void pluginMngr_pluginLoaded(Plugins.Plugin plugin) { lbLoadedScripts.Invoke(new MethodInvoker(delegate { lbLoadedScripts.Items.Add(plugin); })); }
public void Unload(Plugin p) { lstPlugins.Remove(p); if (pluginUnloaded != null) pluginUnloaded(p); }
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); } }
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"); } }
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); }
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); }