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)); } }
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); } }
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"); } }
static void Main() { if (O2AscxGUI.launch("Cir Viewer")) { HandleO2MessageOnSD.setO2MessageFileEventListener(); O2AscxGUI.openAscx(typeof(ascx_CirDataViewer), O2DockState.DockLeft, "Cir Viewer"); } }
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(); }
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 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"); } }
public void openGui() { DI.log.info("Opening GUI"); if (O2AscxGUI.launch()) { O2AscxGUI.setLogViewerDockState(O2DockState.DockBottom); O2Messages.openControlInGUISync(typeof(ascx_CirCreator), O2DockState.Document, cirAnalysisControlName); //DI.log.info("after launch"); //O2AscxGUI.logInfo("from Test_CirCreatorAscxControl"); // this is actually a hack since there is still a bug in the thread invocation which makes sometimes the getGuiAscx below to fail } }
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 openGui() { DI.log.info("Opening GUI"); // first set up GUI if (O2AscxGUI.launch()) { O2AscxGUI.setLogViewerDockState(O2DockState.DockBottom); cirDataViewer = (ascx_CirDataViewer)O2Messages.openControlInGUISync(typeof(ascx_CirDataViewer), O2DockState.Document, cirDataViewerControlName); Assert.That(cirDataViewer != null, "cirDataViewer was null"); // Then create CirData and fire global O2Message showCirDataStats createCirDataObject(); } }
public void Test_LoadFindingsInGui() { DI.log.info("Opening GUI"); if (O2AscxGUI.launch()) { O2Messages.openControlInGUI(typeof(ascx_CirViewer_CirData), O2DockState.Document, "Cir Viewer"); var cirAnalysisControlName = "Cir Analysis"; O2Messages.openControlInGUI(typeof(ascx_CirAnalysis), O2DockState.DockTop, cirAnalysisControlName); O2Messages.getAscx(cirAnalysisControlName, actionsToExecuteOnCirAnalysisControl); //O2Messages.setCirData(cirData); } }
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(); }
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")); } }
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"); } }
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() { 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); } }
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() { O2Thread.mtaThread( () => { if (O2AscxGUI.launch("Findings Filter GUI")) { openFindingsViewerAndSourceCodeEditor(); // enable opening findings file references HandleO2MessageOnSD.setO2MessageFileEventListener(); /*KO2MessageQueue.getO2KernelQueue().onMessages += o2Message => HandleO2MessageOnSD. * o2MessageHelper_Handle_IM_FileOrFolderSelected * (o2Message, * null);*/ } }); }
/* 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"); } }
/// <summary> /// The main entry point for the application. /// </summary> // [STAThread] private static void Main() { //SpringExec.loadDefaultConfigFile(); // new O2DockPanel(typeof (ascx_OzasmtQuery)); ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6()); ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6_1()); ascx_FindingsViewer.o2AssessmentSave = new O2AssessmentSave_OunceV6(); ascx_OzasmtQuery.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6()); ascx_OzasmtQuery.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6_1()); ascx_OzasmtQuery.o2AssessmentSave = new O2AssessmentSave_OunceV6(); if (O2AscxGUI.launch("Findings Query")) { O2AscxGUI.openAscx(typeof(ascx_OzasmtQuery), O2DockState.Document, "Findings Query"); // load demo file //"Ozasmt Query".invokeOnAscx("loadSampleScripts", new object[]{typeof(OzasmtScriptSamples)}); // we have to use the direct call due to a bug in Mono O2AscxGUI_Ext.invokeOnAscx("Ozasmt Query", "loadSampleScripts", new object[] { typeof(OzasmtScriptSamples) }); } }
private static void Main() { //SpringExec.LoadConfigAndStartGUI("WebInspect.xml"); //SpringExec.loadDefaultConfigFile(); //ascx_WebInspectOzasmMapperGui //ascx_WebInspectPoC OunceAvailableEngines.addAvailableEnginesToControl(typeof(ascx_FindingsViewer)); if (O2AscxGUI.launch()) { O2AscxGUI.openAscx(typeof(ascx_WebInspectPoC), O2DockState.DockTop, "ascx_WebInspectPoC"); O2AscxGUI.openAscx(typeof(ascx_WebInspectOzasmMapperGui), O2DockState.Document, "ascx_WebInspectOzasmMapperGui"); //O2AscxGUI.openAscx(typeof(ascx_FindingEditor), O2DockState.DockLeftAutoHide, "ascx_FindingEditor"); //O2AscxGUI.openAscx(typeof(ascx_FindingsViewer), O2DockState.DockLeftAutoHide, "ascx_FindingsViewer"); } //new O2DockPanel(typeof(ascx_WebInspectOzasmMapperGui)); /* Application.EnableVisualStyles(); * Application.SetCompatibleTextRenderingDefault(false); * * var controlsToLoad = new List<O2DockContent> * { * new O2DockContent(typeof (ascx_FindingEditor), DockState.DockLeftAutoHide), * new O2DockContent(typeof (ascx_WebInspectPoC), DockState.DockBottomAutoHide), * * new O2DockContent(typeof (ascx_Directory), DockState.DockLeftAutoHide), * new O2DockContent(typeof (ascx_LogViewer), DockState.DockRightAutoHide), * * new O2DockContent(typeof (ascx_WebInspectOzasmMapperGui), DockState.Document) * }; * * * O2DockPanel.openO2DockContentInNewDockPanel(controlsToLoad); */ }
private static void Main() { O2AscxGUI.launch(); //new O2DockPanel(); //SpringExec.loadDefaultConfigFile(); }