//public static string ascx_ScriptControl { get; set; } //[STAThread] private static void Main() { if (O2Messages.openAscxGui()) { KO2MessageQueue.getO2KernelQueue().onMessages += ascx_Scripts_onMessages; // O2 Debugger O2AscxGUI.openAscx(typeof(ascx_O2MdbgShell), O2DockState.DockBottom, ascx_O2MdbgShellName); //this needs to be opened before the ascx_Breakpoints // scripts controls //O2AscxGUI.openAscx(typeof(ascx_Scripts), O2DockState.Document, ascx_ScriptsName); // this needs to loaded before ascx_ScriptsFolder var scriptsFolder = (ascx_ScriptsFolder)O2AscxGUI.openAscx(typeof(ascx_ScriptsFolder), O2DockState.DockLeft, ascx_ScriptsFolderName); scriptsFolder.loadSampleScripts(); O2AscxGUI.openAscx(typeof(ascx_AssemblyInvoke), O2DockState.DockRight, ascx_AssemblyInvokeName); /*O2AscxGUI.openAscx(typeof(ascx_Breakpoints), O2DockState.DockRightAutoHide, ascx_BreakpointsName); * O2AscxGUI.openAscx(typeof(ascx_BreakpointCreator), O2DockState.DockRightAutoHide, ascx_BreakpointCreatorName); * O2AscxGUI.openAscx(typeof(ascx_Variables), O2DockState.DockRightAutoHide, ascx_CurrentFrameDetailsName); * O2AscxGUI.openAscx(typeof(ascx_FindingsCreator), O2DockState.DockRight, ascx_FindingsCreatorName);*/ O2AscxGUI.addControlToMenu(typeof(ascx_Breakpoints), O2DockState.DockRightAutoHide, ascx_BreakpointsName); O2AscxGUI.addControlToMenu(typeof(ascx_BreakpointCreator), O2DockState.DockRightAutoHide, ascx_BreakpointCreatorName); O2AscxGUI.addControlToMenu(typeof(ascx_Variables), O2DockState.DockRightAutoHide, ascx_CurrentFrameDetailsName); O2AscxGUI.addControlToMenu(typeof(ascx_FindingsCreator), O2DockState.DockRight, ascx_FindingsCreatorName); } }
static void Main() { // XRules_Config.PathTo_XRulesDatabase_fromLocalDisk = DI.PathToLocalUnitTestsFiles; // O2AscxGUI.openAscxAsForm(typeof(ascx_PatchAndMonitor)); // return; if (O2AscxGUI.launch("O2 Scanner - DotNet (Dynamic tracing and patching)")) { O2AscxGUI.addControlToMenu(typeof(ascx_DotNetGac)); O2AscxGUI.addControlToMenu(typeof(ascx_XRules_Editor), O2DockState.Document, "XRules Editor"); O2AscxGUI.addControlToMenu(typeof(ascx_XRules_Execution), O2DockState.Document, "XRules Execution"); //var unitTestExecution = "UnitTestExecution"; //var patchandmonitor = "PatchAndMonitor"; var xRulesEditor = "XRules Editor"; //O2AscxGUI.openAscx(typeof(ascx_XRules_UnitTestExecution_BigGUI), O2DockState.DockRight, unitTestExecution); //O2AscxGUI.openAscx(typeof(ascx_PatchAndMonitor), O2DockState.Document, patchandmonitor); O2AscxGUI.openAscx(typeof(ascx_XRules_Editor), O2DockState.Document, xRulesEditor); O2AscxGUI.openAscx(typeof(ascx_XRules_UnitTests), O2DockState.DockRight, "XRules_UnitTests"); O2AscxGUI.openAscx(typeof(ascx_AssemblyInvoke), O2DockState.DockRight, "Invoke Assesmblies"); //O2DockUtils.setDocState(unitTestExecution,patchandmonitor, DockStyle.Left); //O2DockUtils.setDocState(unitTestExecution, xRulesEditor, DockStyle.Left); } }
static void Main(string[] args) { OunceAvailableEngines.addAvailableEnginesToControl(typeof(ascx_FindingsViewer)); if (O2AscxGUI.launch("O2 Scripts")) { var scriptsFolder = (ascx_ScriptsFolder)O2AscxGUI.openAscx(typeof(ascx_ScriptsFolder), O2DockState.DockLeft, "Sample Scripts"); scriptsFolder.loadSampleScripts(new ScriptSamples(), true); var sourceCodeEditor = (ascx_SourceCodeEditor)O2AscxGUI.openAscx(typeof(ascx_SourceCodeEditor), O2DockState.Document, "Script Editor"); sourceCodeEditor.loadSampleScripts(); /* O2AscxGUI.addControlToMenu("O2 Object Model", () => * { * var cirDataViewer = (ascx_CirDataViewer)O2AscxGUI.openAscx(typeof(ascx_CirDataViewer), O2DockState.DockRight, "O2 Object Model"); * cirDataViewer.loadO2ObjectModel(); * //DI.log.info("code executed") * }); */ // O2AscxGUI.addControlToMenu(typeof(ascx_FunctionsViewer), O2DockState.Document, "Functions Viewer"); // preloaded menu items O2AscxGUI.addControlToMenu(typeof(ascx_FileMappings), O2DockState.Document, "File Mappings"); O2AscxGUI.addControlToMenu(typeof(ascx_FindingsViewer), O2DockState.Document, "Findings Viewer"); HandleO2MessageOnSD.setO2MessageFileEventListener(); // set this up so that we can open files from the Findings Viewer } }
private static void Main() { if (O2AscxGUI.launch("Java Velocity Parser")) { O2AscxGUI.openAscx(typeof(ascx_JavaVelocityAnalyzer)); } }
public void testIndividualViewers() { // view webXml mappings var webXmlControl = (ascx_J2EE_web_xml)O2AscxGUI.openAscx(typeof(ascx_J2EE_web_xml)); Assert.That(webXmlControl != null, "webXmlControl was null"); webXmlControl.mapFile(web_xml); // view strutsConfig mappings var strusConfigControl = (ascx_Struts_config_xml)O2AscxGUI.openAscx(typeof(ascx_Struts_config_xml)); Assert.That(strusConfigControl != null, "strusConfigControl was null"); strusConfigControl.mapFile(struts_config_xml); // view validation mappings var validationControl = (ascx_Validation_xml)O2AscxGUI.openAscx(typeof(ascx_Validation_xml)); Assert.That(validationControl != null, "validationControl was null"); validationControl.mapFile(validation_xml); // view validation mappings var tilesDefinitions = (ascx_TilesDefinition_xml)O2AscxGUI.openAscx(typeof(ascx_TilesDefinition_xml)); Assert.That(validationControl != null, "ascx_TilesDefinition_xml was null"); O2AscxGUI.waitForAscxGuiClose(); O2AscxGUI.close(); }
public void buildGui() { // this will make files to be opened on the main Document window HandleO2MessageOnSD.setO2MessageFileEventListener(); if (O2AscxGUI.launch("O2 Tool - Search Engine")) // O2Messages.openGUI(); { var fileMappings = (FileMappings)O2AscxGUI.openAscx(typeof(FileMappings), O2DockState.DockLeft, "File Mappings"); //fileMappings.loadFilesFromFolder(DI.config.CurrentExecutableDirectory); // O2Messages.openControlInGUI(typeof (ascx_TextSearch), O2DockState.Document, "Text Search"); O2AscxGUI.openAscx(typeof(ascx_SearchTargets), O2DockState.DockRight, "Search Targets"); O2AscxGUI.openAscx(typeof(ascx_SearchResults), O2DockState.DockTop, "Search Results"); O2AscxGUI.addControlToMenu(typeof(ascx_FunctionsViewer), O2DockState.Document, "Signatures Viewer"); OunceAvailableEngines.addAvailableEnginesToControl(typeof(ascx_FindingsViewer)); //ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6()); O2AscxGUI.addControlToMenu(typeof(ascx_FindingsViewer), O2DockState.Document, "Findings Viewer"); O2AscxGUI.addControlToMenu(typeof(SourceCodeEditor), O2DockState.Document, "Source Code Editor"); /* O2AscxGUI.addControlToMenu(typeof (ascx_TilesDefinition_xml)); * O2AscxGUI.addControlToMenu(typeof(ascx_J2EE_web_xml)); * O2AscxGUI.addControlToMenu(typeof (ascx_Validation_xml)); * O2AscxGUI.addControlToMenu(typeof (ascx_Struts_config_xml)); * O2AscxGUI.addControlToMenu(typeof (ascx_StrutsMappings_ManualMapping)); * O2AscxGUI.addControlToMenu(typeof (ascx_DotNet_Dependencies)); * * * O2AscxGUI.addControlToMenu(typeof(ascx_O2Rules_Struts),O2DockState.Document, "O2 Rules Struts"); */ } }
private static void Main(String[] asArgs) { if (O2AscxGUI.launch("O2 Tool - Host Local Website")) { O2AscxGUI.openAscx(typeof(ascx_HostLocalWebsite), O2DockState.Document, "Host Local Website"); } }
private static void Main() { if (O2AscxGUI.launch("Dot Net Callback maker")) { O2AscxGUI.openAscx(typeof(ascx_dotNetCallbacksMaker), O2DockState.Document, "DotNet callback maker"); } }
static void Main() { const string staticViewerControlName = "Findings Viewer"; // this will make files to be opened on the main Document window HandleO2MessageOnSD.setO2MessageFileEventListener(staticViewerControlName); // add load and save engines for Ounce Ozasmt file formats OunceAvailableEngines.addAvailableEnginesToControl(typeof(ascx_FindingsViewer)); if (O2AscxGUI.launch("Rules Manager", 1000, 800)) { O2AscxGUI.openAscx(typeof(ascx_Scan), O2DockState.DockLeft, "Scan"); O2AscxGUI.openAscx(typeof(ascx_FindingsViewer), O2DockState.DockLeft, staticViewerControlName); O2DockUtils.setDocState("Scan", staticViewerControlName, DockStyle.Bottom); O2AscxGUI.openAscx(typeof(ascx_CirDataViewer), O2DockState.DockRight, "Cir Data Viewer"); O2AscxGUI.openAscx(typeof(ascx_RulePackViewer), O2DockState.DockTop, "Rule Pack Viewer"); O2DockUtils.setPaneHeight("Rule Pack Viewer", 500); O2AscxGUI.addControlToMenu(typeof(ascx_FindingsFilterDevGui), O2DockState.Document, "Fidings Filter"); O2AscxGUI.addControlToMenu(typeof(ascx_SourceCodeEditor), O2DockState.Document, "Source Code Editor"); O2AscxGUI.addControlToMenu(typeof(ascx_FunctionsViewer), O2DockState.Document, "Functions Signatures"); O2AscxGUI.addControlToMenu(typeof(ascx_ApplyRulesToFindings), O2DockState.Document, "O2 'Call-Flow Scanner' (Apply Rules To Findings)"); O2AscxGUI.openAscx(typeof(ascx_XRules_Editor), O2DockState.Document, "O2 XRules Editor"); } }
public void openControl2() { log.info("in openControl2"); var o2ObjectModelControl = (ascx_O2ObjectModel)O2AscxGUI.openAscx(typeof(ascx_O2ObjectModel), O2DockState.Float, "O2 Object Model"); Assert.That(o2ObjectModelControl != null, "o2ObjectModelControl was null"); //((Form)o2ObjectModelControl.Parent).close(); }
static void Main() { if (O2AscxGUI.launch("Cir Viewer")) { HandleO2MessageOnSD.setO2MessageFileEventListener(); O2AscxGUI.openAscx(typeof(ascx_CirDataViewer), O2DockState.DockLeft, "Cir Viewer"); } }
public static void openTempGUI() { log.info("in openTempGUI"); if (O2AscxGUI.launch("test Breakpoings", 1000, 800)) { O2AscxGUI.openAscx(typeof(ascx_SourceCodeEditor), O2DockState.Document, "sourceCodeEditor"); O2AscxGUI.waitForAscxGuiClose(); } }
public void editRule_InGUI() { O2AscxGUI.launch("test Rule execution"); xRulesEditor = (ascx_XRules_Editor)O2AscxGUI.openAscx(typeof(ascx_XRules_Editor)); xRulesExecution = (ascx_XRules_Execution)O2AscxGUI.openAscx(typeof(ascx_XRules_Execution), O2DockState.DockLeft, "Rules Execution"); Assert.That(xRulesEditor != null, "xRulesEditor was null"); Assert.That(xRulesExecution != null, "xRulesEditor was null"); O2AscxGUI.waitForAscxGuiClose(); }
private static string getScriptEditor(string filename) { var ascxSourceCodeEditor = getScriptEditorControlName(filename); if (false == O2AscxGUI.isAscxLoaded(ascxSourceCodeEditor)) { O2AscxGUI.openAscx(typeof(ascx_SourceCodeEditor), O2DockState.Document, ascxSourceCodeEditor); } return(ascxSourceCodeEditor); }
public void testStrutsMapping_ManualTest() { O2AscxGUI.launch("test Struts Mappings - Manual Test"); var strutsMappingsControl = (ascx_StrutsMappings_ManualMapping) O2AscxGUI.openAscx(typeof(ascx_StrutsMappings_ManualMapping), O2DockState.Document, "Struts Mappings"); O2AscxGUI.waitForAscxGuiClose(); O2AscxGUI.close(); }
public static void Main() { if (O2AscxGUI.launch()) { O2AscxGUI.openAscx(typeof(ascx_StartOrAttach), O2DockState.DockLeft, "Start or Attach (Into) Process"); O2AscxGUI.openAscx(typeof(ascx_O2MdbgShell), O2DockState.Document, "O2 Mdbg Shell"); O2AscxGUI.openAscx(typeof(ascx_DebugggedProcessInfo), O2DockState.DockRight, "Debugged Process Info"); O2AscxGUI.openAscx(typeof(ascx_Breakpoints), O2DockState.DockRight, "Breakpoints"); O2AscxGUI.openAscx(typeof(ascx_BreakpointCreator), O2DockState.DockRight, "Breakpoint Creator"); } }
private static void Main() { if (O2AscxGUI.launch("O2 Tool - SearchAssessmentRun")) { O2AscxGUI.openAscx(typeof(ascx_SearchAssessmentRun), O2DockState.Document, "Search Assessment Run"); // set-up load engines ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6()); ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6_1()); O2AscxGUI.openAscx(typeof(ascx_FindingsViewer), O2DockState.DockBottomAutoHide, "Findings Viewer"); } }
public void showFinalResultsIn_O2RulesStrutsGUI() { var strutsRuleGUI = (ascx_O2Rules_Struts) O2AscxGUI.openAscx(typeof(ascx_O2Rules_Struts), O2DockState.Float, "Struts Mapping File"); showFinalResults(strutsRuleGUI.findingsViewer_BaseFindings, strutsRuleGUI.strutsMappingsControl, strutsRuleGUI.findingsViewer_FromStrutsMappings, strutsRuleGUI.filteredFindings_TaintSources, strutsRuleGUI.filteredFindings_FinalSinks, strutsRuleGUI.findingsViewer_FinalFindings); }
static void Main(string[] args) { // load python execution engines IKVMEngine.addCurrentIKVMEnginesTo_ascx_SourceCodeEditor(); ExternalEngines.addCurrentPythonEnginesTo_ascx_SourceCodeEditor(); if (O2AscxGUI.launch("O2 Tool - Python")) { O2AscxGUI.openAscx(typeof(ascx_PythonCmdShell), O2DockState.Document, "Python Shell"); //DI.reflection.loadAssembly(); O2AscxGUI.addControlToMenu(typeof(ascx_Scripts), O2DockState.Document, "O2 Scripts"); O2AscxGUI.addControlToMenu(typeof(ascx_SourceCodeEditor), O2DockState.Document, "Source Code Editor");; //O2AscxGUI.openAscx(DI.reflection.getType("O2_External_SharpDevelop.dll", "ascx_Scripts")); } }
public void testStrutsMapping() { O2AscxGUI.launch("test Struts Mappings"); var strutsMappingsControl = (ascx_StrutsMappings)O2AscxGUI.openAscx(typeof(ascx_StrutsMappings), O2DockState.DockLeft, "Struts Mappings"); Assert.That(strutsMappingsControl != null, "strutsMappingsControl was null"); var strutsMappings = StrutsMappingsHelpers.calculateStrutsMapping(web_xml, struts_config_xml, "", ""); Assert.That(strutsMappings != null, "strutsMappings was null"); strutsMappingsControl.showStrutsMappings(web_xml, struts_config_xml, "", ""); O2AscxGUI.waitForAscxGuiClose(); O2AscxGUI.close(); }
private static void Main() { //HandleO2MessageOnSD.setO2MessageFileEventListener(); ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6()); ascx_FindingsViewer.o2AssessmentSave = new O2AssessmentSave_OunceV6(); if (O2AscxGUI.launch("O2 Scanner - MsCatNet")) { O2AscxGUI.addDefaultControlsToMenu(); O2AscxGUI.openAscx(typeof(ascx_MsCatNet), O2DockState.Document, "O2 Scanner - MsCatNet"); //O2AscxGUI.openAscx(typeof(ascx_XRules_Editor), O2DockState.Document, "XRules - Editor"); O2AscxGUI.addControlToMenu(typeof(ascx_FindingsViewer), O2DockState.DockBottomAutoHide, "O2 Findings Viewer"); //O2AscxGUI.openAscx(typeof(ascx_XRules_UnitTests), O2DockState.DockRight, "XRules - Unit Tests"); } }
public static void showInGuiMappedFormFields(List <mappedFormField> mappedFormFields) { var tableList = (ctrl_TableList)O2AscxGUI.openAscx(typeof(ctrl_TableList), O2DockState.Float, "Table List"); var dataTable = new DataTable(); dataTable.Columns.Add("beanName"); dataTable.Columns.Add("bean form field"); dataTable.Columns.Add("validated"); dataTable.Columns.Add("actionPaths"); foreach (var mappedData in mappedFormFields) { dataTable.Rows.Add(new [] { mappedData.beanName, mappedData.formBeanName.Replace(mappedData.beanName + "_", ""), mappedData.hasValidation.ToString(), mappedData.actionPaths }); } tableList.setDataTable(dataTable); }
private static void Main() { if (O2AscxGUI.launch("O2 Scanners")) { O2AscxGUI.openAscx(typeof(ascx_WillItScan), O2DockState.Document, "O2 Scanners"); } //SpringExec.loadDefaultConfigFile(); // o2.Scanners.MSCatNet.Utils.Convert.sConvertMsCatNetResultsFileIntoOzasmt(@"C:\O2\_temp\O2_WillItScan\HacmeBank_WebServices_App_Code\HacmeBank_WebServices_App_Code.dll_MSCatNet.xml"); /* * Application.EnableVisualStyles(); * Application.SetCompatibleTextRenderingDefault(false); * * String sFormTitle = Exec.getFormTitle_forClickOnce("Will It Scan"); * * Exec.execControl(sFormTitle, typeof(o2.willitscan.ascx.ascx_WillItScan));*/ }
/// <summary> /// The main entry point for the application. /// </summary> //[STAThread] private static void Main() { if (O2AscxGUI.launch("Cir Analysis")) { // use during active development to make the LogViewer visible //O2AscxGUI.setLogViewerDockState(O2DockState.DockBottom); // load controls O2AscxGUI.openAscx(typeof(ascx_CirCreator), O2DockState.DockBottomAutoHide, "Cir Creator"); O2AscxGUI.openAscx(typeof(ascx_CirViewer_CirData), O2DockState.Document, "Cir Viewer (Legacy Version)"); O2AscxGUI.openAscx(typeof(ascx_CirDataViewer), O2DockState.Document, "Cir Viewer"); O2AscxGUI.openAscx(typeof(ascx_CirAnalysis), O2DockState.DockTop, "Cir Analysis"); // load O2Kernel in CirAnalysis var cirAnalysis = (ascx_CirAnalysis)O2AscxGUI.getAscx("Cir Analysis"); cirAnalysis.loadO2CirDataFile(DI.config.ExecutingAssembly); } }
static void Main() { if (false) // to force linking to the O2_Cmd_XRules module { XRulesWrapper.help(); } OunceAvailableEngines.addAvailableEnginesToControl(typeof(ascx_FindingsViewer)); XRules_Config.xRulesDatabase = new KXRulesDatabase(); if (O2AscxGUI.launch("O2 XRules", 1000, 800)) { HandleO2MessageOnMdbg.setO2MessageMdbgListener(); // be able to handle Debugger events HandleO2MessageOnSD.setO2MessageFileEventListener(); // be able to handle open file events //O2AscxGUI.addControlToMenu("Simple Script Editor", () => open.script()); O2AscxGUI.addControlToMenu(typeof(ascx_TilesDefinition_xml)); O2AscxGUI.addControlToMenu(typeof(ascx_J2EE_web_xml)); O2AscxGUI.addControlToMenu(typeof(ascx_Validation_xml)); O2AscxGUI.addControlToMenu(typeof(ascx_Struts_config_xml)); O2AscxGUI.addControlToMenu(typeof(ascx_StrutsMappings_ManualMapping)); O2AscxGUI.addControlToMenu(typeof(ascx_FindingsViewer)); O2AscxGUI.addControlToMenu(typeof(ascx_CirDataViewer)); //O2AscxGUI.addControlToMenu(typeof(ascx_DotNet_Dependencies)); //O2AscxGUI.openAscx(typeof(ascx_XRules_Editor)); //O2AscxGUI.openAscx(typeof(ascx_XRules_Execution)); //O2AscxGUI.addControlToMenu(typeof(ascx_SvnBrowser), O2DockState.Float, "SVN Browser - O2 Source Code"); O2AscxGUI.addControlToMenu(typeof(ascx_O2Rules_Struts), O2DockState.Document, "O2 Rules Struts"); O2AscxGUI.addControlToMenu(typeof(ascx_XRules_Execution), O2DockState.Document, "XRules Execution"); O2AscxGUI.openAscx(typeof(ascx_XRules_Editor), O2DockState.Document, "XRules Editor"); O2AscxGUI.addControlToMenu(typeof(ascx_XRules_UnitTests), O2DockState.DockRight, "XRules & UnitTests"); O2AscxGUI.addControlToMenu(typeof(ascx_AssemblyInvoke), O2DockState.DockRight, "Invoke Assemblies"); O2AscxGUI.addControlToMenu(typeof(ascx_O2MdbgShell), O2DockState.DockBottom, "O2 Debugger"); O2AscxGUI.addControlToMenu(typeof(ascx_Variables), O2DockState.DockBottom, "O2 Mdbg - Variables"); O2AscxGUI.addControlToMenu(typeof(ascx_FindingsCreator), O2DockState.DockBottom, "O2 Mdbg - FindingsCreator"); O2AscxGUI.addControlToMenu(typeof(ascx_Breakpoints), O2DockState.DockBottom, "O2 Mdbg - Breakpoints"); O2AscxGUI.addControlToMenu(typeof(ascx_StackTraceAndThreads), O2DockState.DockBottom, "O2 Mdbg - StackTrace and Threads.."); } }
private static void Main() { ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6()); ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6_1()); ascx_FindingsViewer.o2AssessmentSave = new O2AssessmentSave_OunceV6(); if (O2AscxGUI.launch("O2 Tool - Join Traces")) { /*O2AscxGUI.openAscx(typeof(ascx_JoinSinksToSources), O2DockState.Document, "Join Sinks to sources (simple mode)"); * O2AscxGUI.openAscx(typeof(ascx_JoinTraces), O2DockState.Document, "Original Join Traces"); * O2AscxGUI.openAscx(typeof(ascx_JoinDotNetWebServices), O2DockState.Document, "Join Traces (with .Net WebServices support)"); * */ O2AscxGUI.addControlToMenu(typeof(ascx_JoinSinksToSources), O2DockState.Document, "Join Sinks to sources (simple mode)"); O2AscxGUI.addControlToMenu(typeof(ascx_JoinTraces), O2DockState.Document, "Original Join Traces"); O2AscxGUI.addControlToMenu(typeof(ascx_JoinDotNetWebServices), O2DockState.Document, "Join Traces (with .Net WebServices support)"); O2AscxGUI.openAscx(typeof(ascx_JoinTracesOnInterfaces), O2DockState.Document, "Join Traces On Interfaces"); } }
/* public static void openScriptEditor() * { * * * }*/ public static void gui() { O2Cmd.log.write("Opening up GUI"); O2Thread.mtaThread( () => { OunceAvailableEngines.addAvailableEnginesToControl(typeof(ascx_FindingsViewer)); if (O2AscxGUI.launch("O2 Spring MVC")) { HandleO2MessageOnSD.setO2MessageFileEventListener(); //O2AscxGUI.addControlToMenu(typeof (ascx_SpringMvcAnalyzer), O2DockState.Document, // "Experimental - Spring MVC Analyzer"); O2AscxGUI.addControlToMenu(typeof(ascx_PythonCmdShell), O2DockState.Document, "Experimental - Python Cmd Shell"); O2AscxGUI.addControlToMenu(typeof(ascx_Scripts)); O2AscxGUI.openAscx(typeof(ascx_CirDataViewer), O2DockState.DockRight, "Cir Viewer"); O2AscxGUI.openAscx(typeof(ascx_ExploitSpringMvc), O2DockState.Document, "Exploit Spring MVC"); O2AscxGUI.openAscx(typeof(ascx_CreateSpringMvcMappings), O2DockState.Document, "Create Spring MVC Mappings"); //O2AscxGUI.openAscx(typeof(ascx_JoinControllersWithFindings),O2DockState.DockRight, "Cir Viewer"); O2AscxGUI.addControlToMenu(typeof(ascx_FindingsViewer)); //O2AscxGUI.addControlToMenu(typeof(ascx_SourceCodeEditor)); //openFindingsViewerAndSourceCodeEditor(); // enable opening findings file references /*KO2MessageQueue.getO2KernelQueue().onMessages += o2Message => HandleO2MessageOnSD. * o2MessageHelper_Handle_IM_FileOrFolderSelected * (o2Message, * null);*/ } }); O2AscxGUI.waitForAscxGuiClose(); }
/// <summary> /// The main entry point for the application. /// </summary> //[STAThread] static void Main() { // load python execution engines IKVMEngine.addCurrentIKVMEnginesTo_ascx_SourceCodeEditor(); // make setO2MessageFileEventListener HandleO2MessageOnSD.setO2MessageFileEventListener(); if (O2AscxGUI.launch("O2 Tool - Java Execution")) { //O2AscxGUI.openAscx(typeof (ascx_JavaExecution)); //O2AscxGUI.openAscx(DI.reflection.getType("O2_External_SharpDevelop.dll", "ascx_Scripts")); var scriptsFolder = (ascx_ScriptsFolder)O2AscxGUI.openAscx(typeof(ascx_ScriptsFolder), O2DockState.DockLeft, "scripts folder"); scriptsFolder.loadSampleScripts(typeof(JavaSamples).ctor(), true); O2AscxGUI.openAscx(typeof(ascx_JavaExecution)); } }
static void Main() { KO2MessageQueue.getO2KernelQueue().onMessages += o2Message => HandleO2MessageOnSD.o2MessageHelper_Handle_IM_FileOrFolderSelected(o2Message, DI.staticViewerControlName); ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6()); ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6_1()); ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssesmentLoad_FindBugs()); ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssesmentLoad_CodeCrawler()); //ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssesmentLoad_Fortify()); ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssesmentLoad_AppScanDE()); ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssesmentLoad_WebScarab()); ascx_FindingsViewer.o2AssessmentSave = new O2AssessmentSave_OunceV6(); if (O2AscxGUI.launch("Findings Viewer")) { O2AscxGUI.openAscx(typeof(ascx_FindingsViewer), O2DockState.Document, DI.staticViewerControlName); //O2AscxGUI.openAscx(typeof(ascx_Scripts), O2DockState.Document, "Scripts"); } }
public string setupGUI() { var currentAscx = O2DockUtils.getListAvailableAscx(); foreach (var ascx in currentAscx) { log.info("[a] {0}", ascx); } //var o2Debugger = O2AscxGUI.getAscx("O2 Debugger"); //Assert.That(o2Debugger != null); var o2Debugger = O2AscxGUI.openAscx(typeof(ascx_O2MdbgShell), O2DockState.Float, "O2 debugger"); O2Forms.setAscxPosition(o2Debugger, 100, 10, 100, 10); /* Assert.That(o2Debugger != null, "o2Debugger != null"); * var parentForm = O2Forms.findParentThatHostsControl(o2Debugger); * parentForm.Top = 500; * //parentForm.Lef = 10;*/ return("ok"); }