├── .gitignore ├── 3rdParty ├── Antlr │ └── Antlr_Installer.cs ├── Apache │ └── Apache_HttpServer_Installer.cs ├── Armorize │ ├── API_Armorize.cs │ └── Util - Armorize Findings Viewer (Beta).h2 ├── Burp │ └── SampleFiles │ │ ├── issues.xml │ │ └── requests.xml ├── CheckMarx │ ├── 2.6.3_WSDL_files │ │ ├── CxEngineWebServices.cs │ │ ├── CxManagerWebServices.cs │ │ ├── CxPortalWebService._2.6.3.cs │ │ └── Util - CheckMarx Rule and Guidance Viewer.h2 │ ├── 2.6.7_WSDL_files │ │ ├── CxEngineWebServices.cs │ │ ├── CxManagerWebServices.cs │ │ └── CxPortalWebService.cs │ ├── API_CxWebClient.cs │ ├── API_IE_CxWebClient.cs │ ├── Util - CheckMarx - Create proxy files for CxWebService.h2 │ └── VistaDB │ │ ├── API_VistaDB.cs │ │ └── Util - VistaDB Browser.h2 ├── Chrome │ ├── API_Chrome.cs │ ├── API_ChromeDriver.cs │ ├── API_Chrome_Hijack.cs │ ├── API_Chrome_WPF.cs │ ├── CefSharp_Installer.cs │ ├── PoC - Chrome Browser (WPF).h2 │ ├── PoC - Chrome Browser (WinForms).h2 │ ├── PoC - Open ChromeDriver.h2 │ ├── PoC - REPL with Chrome and IE.h2 │ ├── Util - API_ChromeDriver development UI.h2 │ ├── Util - Chrome Browser with REPL.h2 │ ├── Util - Chrome Browser with WebStorm.h2 │ ├── Util - Chrome Browser.h2 │ └── Util - Real Chrome with REPL.h2 ├── Clojure │ ├── API_Clojure.cs │ ├── Clojure_Installer.cs │ ├── In Closure AppDomain │ │ └── Launch Clojure REPL.h2 │ └── Util - Clojure-clr REPL (Lisp).h2 ├── EasyHook │ ├── API_EasyHook.cs │ └── EasyHook_Installer.cs ├── Eclipse │ ├── API_Eclipse.cs │ └── UnitTests_Gui_API_Eclipse.cs ├── Fiddler │ ├── API_Fiddler.cs │ ├── UnitTests_API_Fiddler.cs │ └── Util - Fiddler (Http Debugging Proxy).h2 ├── Flash │ └── SWFScan_Installer.cs ├── Fortify │ ├── API_Fortify_1_6.cs │ ├── Fortify.fvdl.1.6.xsd.cs │ ├── PoC - Example of a simple fvdl viewer for a specific file.h2 │ ├── Util - FVDL viewer (just PropertyGrid).h2 │ ├── Util - FVDL viewer.h2 │ ├── Util - Simple FVDL viewer.h2 │ ├── Util - View Fvdl Traces.h2 │ └── VulnCat │ │ └── API_VulnCat.cs ├── FuzzDB │ ├── API_FuzzDB.cs │ └── Util - Text RegEx using FuzzDb.h2 ├── GNU │ └── GnuWin32_Make_Installer.cs ├── GitHub │ ├── API_GitHub.cs │ ├── API_GitHub_Issues.cs │ ├── API_GitHub_Objects.cs │ ├── GitHub - CustomO2.cs │ └── Tool - GitHub Folder Download and Browse.h2 ├── GnuCitizen │ ├── BadAssProxy_Installer.cs │ └── Proxify_Installer.cs ├── GoogleDataAPI │ ├── API_GoogleDataAPI.cs │ └── GoogleDataAPI_Installer.cs ├── HawkEye │ ├── API_HawkEye.cs │ ├── Ctrl_ProcessFinder.cs │ ├── PoC - Process Finder via HawkEye.h2 │ ├── Util - Find WinForms Control and REPL it.h2 │ └── WindowFinder.cs ├── IBM │ ├── Analysis_Workflows │ │ ├── Analysis_WorkFlow.cs │ │ ├── Analysis_WorkFlow_Phase_1.cs │ │ ├── Analysis_WorkFlow_Phase_2.cs │ │ ├── Analysis_WorkFlow_Phase_3.cs │ │ ├── Analysis_WorkFlow_Phase_4.cs │ │ ├── Analysis_WorkFlow_Phase_5.cs │ │ ├── IAnalysisArtifacts.cs │ │ ├── KAnalysisArtifacts.cs │ │ ├── Sample_Analysis_Workflow_WebGoat.cs │ │ ├── XUtils_Analysis.cs │ │ └── XUtils_AnalysisWorkflow.cs │ ├── AppScan Source 7.0 │ │ ├── O2AssessmentLoad_OunceV7_0.cs │ │ ├── O2AssessmentSave_OunceV7_0.cs │ │ ├── OunceAvailableEngines.cs │ │ ├── OzasmUtils_OunceV7_0.cs │ │ ├── Ozasmt_OunceV6 │ │ │ ├── O2AssessmentData_OunceV6.cs │ │ │ ├── O2AssessmentLoad_OunceV6.cs │ │ │ ├── O2AssessmentSave_OunceV6.cs │ │ │ ├── O2TraceBlock_OunceV6.cs │ │ │ ├── OzasmtUtils_OunceV6.cs │ │ │ ├── SourceCodeFiles.cs │ │ │ ├── xsd_Ozasmt_OunceV6.cs │ │ │ └── xsd_Ozasmt_OunceV6.xsd │ │ ├── Ozasmt_OunceV6_1 │ │ │ ├── O2AssessmentLoad_OunceV6_1.cs │ │ │ ├── OzasmUtils_OunceV6_1.cs │ │ │ ├── xsd_Ozasmt_OunceV6_1.cs │ │ │ └── xsd_Ozasmt_OunceV6_1.xsd │ │ ├── Tool - Findings Viewer - IBM AppScan Source 7.0.h2 │ │ ├── UnitTest_LoadAndSave_7x_Ozasmt.cs │ │ ├── xsd_Ozasmt_OunceV7_0.cs │ │ └── xsd_Ozasmt_OunceV7_0.xsd │ ├── AppScan Wafl │ │ ├── Util - Wafl file Viewer.h2 │ │ ├── wafl.cs │ │ └── wafl.xsd │ └── AppScan_Standard │ │ ├── AppScan_Standard_1st_Script.cs.txt │ │ ├── AppScan_Standard_O2_Launcher.cs.txt │ │ ├── AppSscan 7.9 - Results Viewer (FireBird Database).h2 │ │ ├── In AppScan - Create O2 Gui.h2 │ │ └── Util - Launch AppScan Standard (O2 version).h2.txt ├── ILSpy │ ├── API_ILSpy.cs │ └── ILSpy_Installer.cs ├── ITextSharp │ ├── ITextSharp_Installer.cs │ └── ascx_Create_Links_From_Clipboard.cs ├── JAD │ ├── API_Jad.cs │ ├── Jad_Installer.cs │ └── Util - Java Decompiler (JAD based).h2 ├── JabberNet │ ├── JabberNet_Installer.cs │ └── PoC - JabberNet - Join Room and Send IM Message to OpenFire.h2 ├── Jni4Net │ ├── API_Jni4Net.cs │ ├── Jni4Net_Installer.cs │ ├── PoC - Jni4Net - Classes, Methods, Fields in target.h2 │ ├── PoC - Jni4Net - List JavaProperties.h2 │ └── Util - Jni4Net - Java BeanShell REPL.h2 ├── LessMSI │ ├── API_LessMsi.cs │ ├── LessMsi_Install.cs │ └── Util - view and extract MSI files (using LessMSI).h2 ├── LinqPad │ ├── LinqPad_Installer.cs │ └── Util - Inject O2 into LinqPad.h2 ├── MarkdownDeep │ ├── API_MarkdownDeep.cs │ ├── MarkdownDeep_Installer.cs │ └── PoC - MarkdownDeep Transformations.h2 ├── MarkdownSharp │ ├── API_MarkdownSharp.cs │ ├── MarkdownSharp_Installer.cs │ ├── PoC - MarkdownSharp Transformations.h2 │ └── PoC - Raw MarkdownSharp Transformations.h2 ├── Microsoft │ ├── ASP.NET MVC │ │ ├── Tool - Map method streams interfaces.h2 │ │ ├── Tool - View Asp.NET MCV controllers.h2 │ │ └── Tool - View Asp.NET MCV method streams and views.h2 │ ├── AntiXSS │ │ ├── AntiXSS - Test multiple Encodings.h2 │ │ └── Util - Web Encoder (with AntiXss Support).h2 │ ├── CatNet │ │ ├── API_CatNet.cs │ │ ├── API_CatNet_GUI.cs │ │ ├── API_CatNet_TeamMentor_VS2010.cs │ │ ├── API_CatNet_VS2010.cs │ │ ├── AndRolsyn │ │ │ ├── Package - Roslyn Cat.Net- Compile and Scan Solution.h2 │ │ │ ├── RealTime code scanning using Cat.NET and Roslyn.h2 │ │ │ ├── Util - Roslyn - OnSave Compile Solution (with REPL).h2 │ │ │ └── Util - Roslyn Cat.Net- Compile and Scan Solution.h2 │ │ ├── CatNet_Installer.cs │ │ ├── O2_Scanner_MsCatNet │ │ │ ├── CatNetConverter.cs │ │ │ ├── Convert.cs │ │ │ ├── MSCatNet.Report.xsd │ │ │ ├── MSCatNet_Report.cs │ │ │ ├── MsCatNetConfig.cs │ │ │ ├── MsCatNetScanner.cs │ │ │ ├── Program_O2_Scanner_MsCatNet.cs │ │ │ ├── ScanTarget_CatNet.cs │ │ │ ├── ascx_MsCatNet.Designer.cs │ │ │ └── ascx_MsCatNet.cs │ │ ├── PoC - CatNet Scan on Local File (with Findings).h2 │ │ ├── TM - RealTime Security Scan v1.4.h2 │ │ ├── TestReport │ │ │ ├── CatNet_HacmeBank.xlsx │ │ │ ├── CatNet_HacmeBank.xml │ │ │ └── CatNet_SuperSecureBank.xml │ │ ├── Tool - Cat.Net outside VisualStudio v1.3.h2 │ │ └── Tool - Simple Cat.NET Scan Gui v1.2.h2 │ ├── IIS │ │ ├── API_IIS7.cs │ │ ├── API_IIS_Logs.cs │ │ ├── API_IIS_Request.cs │ │ └── Tool - IIS Browser and Admin.h2 │ ├── MSBuild │ │ ├── API_MSBuild.cs │ │ ├── API_MicrosoftBuild.cs │ │ ├── PoC - Created stand alone exe helper.h2 │ │ ├── PoC - Scriping Package workflow.h2 │ │ ├── Program_UseWith_O2_CreatedExes.cs │ │ ├── Program_UseWith_Roslyn_CreatedExes.cs │ │ ├── Util - Package O2 Script into separate Folder.h2 │ │ ├── Util - Run MsBuild on Project file.h2 │ │ └── Util - Test MicrosoftBuild compilation.h2 │ ├── SqlServer │ │ ├── API_SqlServer.cs │ │ └── Util - SqlServer Browser.h2 │ └── VisualStudio │ │ ├── API_GUI_Automation_VisualStudio_2010.cs │ │ ├── API_VisualStudio_2010.cs │ │ ├── API_VisualStudio_2010_WPF.cs │ │ ├── In VS2010 │ │ ├── Compile and Display a O2 UserControl inside VS.h2 │ │ ├── VS_2010 - Chrome (WinForms).h2 │ │ ├── VS_2010 - Chrome (Wpf).h2 │ │ ├── VS_2010 - On save, compile, open in browser.h2 │ │ ├── VS_2010 - TeamMentor.h2 │ │ └── VS_2010_ExtensionMethods_ExtraMethods.cs │ │ ├── O2_Add_In │ │ ├── Commands │ │ │ ├── CommandBase.cs │ │ │ ├── O2_LogViewer.cs │ │ │ ├── O2_ScriptGui.cs │ │ │ ├── O2_ScriptWithPanel.cs │ │ │ └── VS2010_TeamMentor_Menu.cs │ │ ├── Microsoft_VisualStudio_ExtensionMethods.cs │ │ ├── O2_VS_AddIn.cs │ │ ├── PoC - View ActiveDocument CodeElements.h2 │ │ └── VisualStudio_Connect.cs │ │ ├── Util - Syncronize VisualStudio csproj with fileSystem.h2 │ │ ├── Visual Studio 2010 (Custom O2).H2 │ │ ├── VisualStudio_2010.xsd │ │ └── VisualStudio_2010.xsd.cs ├── MonoCecil │ ├── Ascx │ │ ├── ascx_O2Reflector.Designer.cs │ │ ├── ascx_O2Reflector.cs │ │ └── ascx_O2Reflector.resx │ ├── AssemblyAnalysisImpl.cs │ ├── CecilDecompiler │ │ └── CecilDecompiler.cs │ ├── CecilFilteredSignature.cs │ ├── IO2MonoCecil.cs │ ├── MonoCecil │ │ ├── CecilAssemblyBuilder.cs │ │ ├── CecilAssemblyDependencies.cs │ │ ├── CecilCodeSearch.cs │ │ ├── CecilConvert.cs │ │ ├── CecilOpCodeUtils.cs │ │ ├── CecilUtils.cs │ │ ├── CecilViewUtils_WindowsForms.cs.txt │ │ ├── CreateTestExe.cs │ │ ├── MethodCalled.cs │ │ ├── RnD │ │ │ └── _oldCode_utils.cs.txt │ │ └── StandAloneExe.cs │ ├── O2MonoCecil.cs │ └── Utils │ │ ├── PoC - Add Decompile to Code Complete.h2 │ │ └── Tool - C# Quick Decompiler.h2 ├── NMap │ ├── NMap_CmdLine_Installer.cs │ ├── NMap_Installer.cs │ ├── Sample Scans │ │ ├── o2platform.com.xml │ │ └── owasp.org.xml │ ├── Tool - Take Screenshots of NMap Web Ports.h2 │ ├── nmap.cs │ ├── nmap.xsd │ └── xsd_fromNmap_didnt_work │ │ ├── NMap.cs │ │ ├── NMap.dtd │ │ ├── NMap.xsd │ │ └── nmap scripts that don't work as expected.h2 ├── Nikto │ └── API_Nikto.cs ├── NodeJS │ ├── API_NodeJS.cs │ ├── JS Scripts │ │ ├── Hello World.js │ │ ├── Simple WebServer II.js │ │ └── Simple WebServer.js │ ├── NodeJS_Exe_Installer.cs │ ├── NodeJS_Installer.cs │ ├── NodeJS_MSI_Installer.cs │ ├── Util - NodeJS REPL Editor.h2 │ └── Util - NodeJS Simple WebServer.h2 ├── NuGet │ ├── API_NuGet.cs │ ├── NuGet_Installer.cs │ └── PoC - download all raw Package info.h2 ├── OWASP │ ├── MediaWiki_Website │ │ ├── Demos │ │ │ ├── Script - show Image animation of OWASP Content.h2 │ │ │ └── script - taking screenshots of htmls pages.h2 │ │ ├── Tool - OWASP WIKI Diff of Latests Changes.h2 │ │ ├── Tool - OWASP Wiki - File Uploader.h2 │ │ ├── Tool - OWASP Wiki Page Edit.h2 │ │ └── Util - View UK Chapter locations.h2 │ ├── OWASP_Summit_2011 │ │ ├── API_OWASP_Summit_2011.cs │ │ ├── OWASP Summit 2011 (Custom O2).h2 │ │ ├── UnitTests_Test_AttendeeData.cs │ │ ├── Util - Attendees Funding Mappings.h2 │ │ ├── Util - Attendees Mappings (first GUI).h2 │ │ └── Util - Calculate Ranking (attendee Stats) page.h2 │ ├── OpenSAMM │ │ ├── SAMM-1.0-XML-0.3-en_US.cs │ │ ├── SAMM-1.0-XML-0.3-en_US.xml │ │ ├── SAMM-1.0-XML-0.3-en_US.xsd │ │ ├── SAMM-1.0-roadmap-0.3.xsd │ │ ├── Script - Create XSD and CSharp files for SAMM-1.0 file.h2 │ │ └── Tool - view SAMM-1.0-XML-0.3-en_US.xml data.h2 │ ├── SecurityFacts │ │ ├── Security Facts - Keys.png │ │ └── Security Facts.jpg │ ├── WebScarab │ │ ├── API_WebScarab.cs │ │ ├── O2AssesmentLoad_WebScarab.cs │ │ ├── Tool - Convert Conversations into O2Findings.h2 │ │ ├── Tool - Load and Filter saved Conversations.h2 │ │ ├── UnitTests_GUI_API_WebScarab.cs │ │ └── WebscarabConversation.cs │ ├── ZAProxy │ │ ├── API_Zap.cs │ │ └── ZAProxy_Installer.cs │ └── owasp_logo.jpg ├── PaintNet │ └── PaintNet_Installer.cs ├── Qualys │ └── API_BlindElephant.cs ├── SecurityInnovation │ ├── Exams │ │ ├── API_SI_Exams.cs │ │ └── Util - Exam Execution GUI.h2 │ ├── TeamMentor │ │ └── Readme.md │ └── TeamProfessor │ │ ├── IE TeamProfessor - Scripting.h2 │ │ ├── IE_TeamProfessor.cs │ │ └── TeamProfessor.h2 ├── Selenium │ ├── API_Selenium.cs │ ├── PoC - Selenium - Gui with 3 Hijacked Browser Windows.h2 │ ├── SeleniumWebDrivers_Setup.cs │ └── Selenium_Installer.cs ├── Snoop │ ├── PoC - Start WPF process and inject Snoop into it.h2 │ ├── Process Injection Tests │ │ ├── API_O2_Injector.cs │ │ ├── Injected_Dll.cs │ │ ├── Injected_Dll_WithCodeSnippet.cs │ │ ├── Injected_Dll_WithO2.cs │ │ ├── PoC - Show Snoop Injection Gui.h2 │ │ ├── Poc - Inject using DllWithCodeSnippet.h2 │ │ └── Util - Inject O2 into other processes.h2 │ └── Snoop_Installer.cs ├── SoSNet │ ├── PoC - Control set_Text via SoS v2.h2 │ ├── PoC - Control set_Text via SoS.h2 │ ├── SoSNet_ExtensionMethods.cs │ ├── Util - SosNet - Create test exe and inject code via debugger.h2 │ └── Util - Start SoSNet (O2 Version).h2 ├── TeamMentor │ ├── PoC - Open AppHarbor 3.3 dev site.h2 │ ├── PoC - View TeamMentor Article (using GUID.h2 │ ├── TM_Data │ │ ├── 00000000-0000-0000-0000-000000078900.html │ │ ├── 00000000-0000-0000-0000-000000144f81.html │ │ ├── 00000000-0000-0000-0000-0000002f9f56.html │ │ ├── 00000000-0000-0000-0000-000000366f98.html │ │ ├── 00000000-0000-0000-0000-0000003d9ba2.html │ │ ├── 00000000-0000-0000-0000-0000004be9ad.html │ │ ├── 00000000-0000-0000-0000-0000006cee50.html │ │ ├── 00000000-0000-0000-0000-000000801ce1.html │ │ ├── CatNet_Mappings_Embedded.xml │ │ ├── CatNet_Mappings_TM_Embedded.xml │ │ ├── CatNet_Mappings_TM_OWASP.xml │ │ └── HeaderImage.jpg │ ├── TeamMentor.ico │ ├── TeamMentor_Article.css │ ├── Util - CatNet Mappings Creation.h2 │ └── creole.min.js ├── TightVNC │ └── TightVNC_Installer.cs ├── Veracode │ ├── API_Veracode_DetailedXmlFindings.cs │ ├── Util - Submit file to Veracode Trial.h2 │ ├── Veracode (Custom O2).h2 │ └── detailedreport.cs ├── _Installers │ ├── Cassini_Installer.cs │ ├── Chrome_Installer.cs │ ├── DebugView.cs │ ├── Doxygen_Installer.cs │ ├── DreamPie.cs │ ├── Firefox_Installer.cs │ ├── Git_Installer.cs │ ├── Gource_Installer.cs │ ├── Grails_Tool_Suite_Installer.cs │ ├── Groovy_Installer.cs │ ├── HacmeBank.cs │ ├── IIS_Express_Installer.cs │ ├── Install_Perl.cs │ ├── Installer_AppScan_SDK.cs │ ├── Installer_DebugAnalyzer.cs │ ├── Installer_Debug_Diagnostic_Tool.cs │ ├── Installer_HawkEye.cs │ ├── Installer_InteropSignatureToolkit.cs │ ├── Installer_Mdbg_Sample_4_0.cs │ ├── Installer_SlimTune.cs │ ├── Installer_SosNet.cs │ ├── Installer_dotPeek.cs │ ├── JavaJdk.cs │ ├── MS_CLR_Profiler_4.cs │ ├── MS_SqlServer.cs │ ├── MySql_Installer.cs │ ├── NetSparker_Community.cs │ ├── OWASP_ESAPI_Installer.cs │ ├── Old_Legacy │ │ └── GitExtensions.cs.txt │ ├── OpenFire.cs │ ├── PdfCreator.cs │ ├── Peach_Installer.cs │ ├── ProcessExplorer.cs │ ├── ProcessMonitor.cs │ ├── Putty.cs │ ├── PyScripter.cs │ ├── Python_2.7.cs │ ├── Python_3.2.cs │ ├── Python_3.3.cs │ ├── ReactOS_Installer.cs │ ├── Sandcastle_Installer.cs │ ├── Scratch.cs │ ├── Spark.cs │ ├── Sqlite_Installer.cs │ ├── SublimeText.cs │ ├── Sumatra_PDF.cs │ ├── TCPView.cs │ ├── ThreatModeler.cs │ ├── Tool_API.cs │ ├── TortoiseSVN.cs │ ├── Vim.cs │ ├── WinMerge.cs │ ├── WireShark.cs │ ├── _7_Zip.cs │ └── yEd.cs └── cURL │ ├── API_cURL.cs │ ├── Util - cUrl Execution GUI.h2 │ └── cUrl_Installer.cs ├── APIs ├── ActiveUp_SMTP │ ├── API_ActiveUp_SendEmail.cs │ └── Util - Send Spoofed email.h2 ├── Amazon │ ├── API_AmazonEC2.cs │ ├── API_AmazonS3.cs │ ├── Amazon S3 Browser.h2 │ └── Tool - Amazon EC2 Browser.h2 ├── Azure │ └── Using WebREPL │ │ ├── API_Azure_via_WebREPL.cs │ │ ├── PoC - Azure Code execution.h2 │ │ ├── PoC - REPL in Azure.h2 │ │ ├── PoC - Remote Azure Process execute.h2 │ │ ├── Tool - remote Azure file browser.h2 │ │ └── WebService.cs ├── BTOpenZone │ ├── API_BTOpenZone.cs │ └── Uil - Login to Starbucks via BTOpenZone.h2 ├── C# REPL │ └── Util - Text Based C# REPL.h2 ├── CWE │ ├── API_CWE.cs │ ├── CWE_Data.cs │ ├── Util - Creating CWE_Data object from CWE Xml file.h2 │ ├── cwe_schema_v5.1.cs │ └── cwe_schema_v5.1.xsd ├── Cir Tools │ └── Util - Cir Viewer (with C# DLL converter).h2 ├── EtherpadLite │ ├── API_EtherpadLite.cs │ ├── EtherpadLiteDotNet.cs │ ├── UnitTests_EtherpadLiteDotNet.cs │ ├── Util - EtherPad (IE Viewer).h2 │ ├── Util - EtherPad (Text Viewer).h2 │ └── Util - EtherPad (both Text and IE Views).h2 ├── EventBrite │ └── API_EventBrite.cs ├── Findings_Filtering │ ├── Findings_DemoData.cs │ ├── Findings_ExtensionMethods.cs │ ├── Findings_ExtensionMethods_Gui_Viewers.cs │ ├── Join Traces │ │ └── PoC - Join Traces (on Attributes) - basic version.h2 │ ├── Util - Filter Findings by Source and Sink (RegEx).h2 │ ├── Util - Findings Viewer (filtered by SourceCode).h2 │ ├── Util - Findings Viewer with REPL.h2 │ ├── Util - Simple Findings Viewer (with code viewer).h2 │ ├── Util - Simple Findings Viewer.h2 │ ├── XRule_Findings_Filter.cs │ └── xUtils_Findings_v0_1.cs ├── Google │ ├── Blogger │ │ └── API_Blogger.cs │ ├── GMail │ │ └── API_GMail.cs │ ├── PoC - Find Current location using Google GeoLocation services.h2 │ └── Tool - Find Physical Location via MAC Address (using Google's APIs).h2 ├── Groovy │ ├── API_Groovy.cs │ ├── Util - Groovy - Start Native Console UI.h2 │ └── Util - Simple Groovy Shell.h2 ├── HtmlAgilityPack │ ├── HtmlAgilityPack - Filter Html Code (using IE).h2 │ ├── HtmlAgilityPack - Filter Html Code.h2 │ ├── HtmlAgilityPack_Extra_ExtensionMethods.cs │ ├── HtmlAgilityPack_Extra_ExtensionMethods_SourceCodeViewer.cs │ └── Util - Search Html code using HtmlAgilityPack.h2 ├── IE │ ├── IE_ExecutionGui │ │ ├── API_IE_ExecutionGUI.cs │ │ ├── IE_Google - Execution.h2 │ │ ├── IE_Google - Scripting.h2 │ │ └── IE_Google.cs │ └── Misc_Websites │ │ └── Util - View CheatSheets at devcheatsheet.com.h2 ├── IKVM │ ├── API_IKVM.cs │ ├── API_IKVMC.cs │ ├── API_IKVMC_CallMapping.cs │ ├── API_IKVMC_JavaMetadata.cs │ ├── IKVM_Installer.cs │ ├── JavaCompile.cs │ ├── JavaExec.cs │ ├── JavaShell.cs │ ├── PoC - view IKVM internal java converted objects.h2 │ ├── Util - Jar or Class Browser.h2 │ ├── Util - Java Methods CallTo and IsCalledBy Mappings.h2 │ ├── Util - O2 Java Tools - IKVM Based.h2 │ ├── Util - View Jar File Entries.h2 │ ├── Util - View Java Mappings.h2 │ ├── ascx_JavaExecution.Controllers.cs │ ├── ascx_JavaExecution.Designer.cs │ ├── ascx_JavaExecution.cs │ └── ascx_JavaExecution.resx ├── IronPython │ ├── IronPython.ico │ ├── IronPython_Install.cs │ ├── Notepad (mini).py │ ├── PoC - IronPython REPL - Simple.h2 │ └── Tool - IronPython REPL.h2 ├── IronRuby │ └── Util - Start IronRuby Browser Shell.h2 ├── IronyParser │ └── Util - Develop Grammars.h2 ├── MDbg │ ├── MDbg_ExtensionMethods.cs │ ├── Poc - Compile C#, execute under debugger and invoke method from debugger.h2 │ └── Util - MDbg with REPL script.h2 ├── Mailman │ ├── API_Mailman.cs │ ├── API_OWASP_Mailman.cs │ ├── OWASP Mailing Lists - admins mappings.h2 │ ├── Util - Open OWASP admin mailing list.h2 │ └── Util - View OWASP Mailing lists Subscribers.h2 ├── MediaWiki │ ├── MediaWikiEditor.cs │ ├── MediaWiki_GuiControls │ │ ├── ascx_MediaWiki_Backup.cs │ │ ├── ascx_MediaWiki_ConfigAndLogin.cs │ │ └── ascx_MediaWiki_PageEditor_Simple.cs │ ├── O2MediaWikiAPI.cs │ ├── O2PlatformWikiAPI.cs │ ├── OwaspWikiAPI.cs │ ├── Tool - O2Platform.com WIKI Diff of Latests Changes.h2 │ └── WikiText.cs ├── MerlinWizard │ ├── MerlinUtils.cs │ ├── Merlin_ExtensionMethods.cs │ ├── O2Wizard.cs │ ├── Wizard - BackupFolder.cs │ ├── Wizard - Enable or Disable Network Interfaces.cs │ ├── Wizard - SVN Download (via HTTP).cs.o2.txt │ ├── Wizard - SearchEngine UseCase 1.cs │ ├── Wizard - Sync XRules Via Svn.cs.o2.txt │ └── Wizard - XRule Exec Simple.cs ├── Moq │ └── API_Moq_HttpContext.cs ├── NGit │ └── Util - Copy Clipboard Image to GitHub Repository.h2 ├── NUnit │ ├── API_NUnit.cs │ ├── API_NUnit_Gui.cs │ ├── API_NUnit_using_O2Gui.cs │ ├── Execute Unit Tests.h2 │ ├── NUnit_Installer.cs │ ├── Util - Execute O2ified tests on NUnitGui.h2 │ ├── Util - NUnit GUI with REPL below.h2 │ └── Write and Execute Unit Tests.h2 ├── O2_WAF_Simulator │ ├── WAF_Rule.cs │ ├── WAF_Rule_NoGoogle.cs │ ├── WAF_Rule_NoPorto.cs │ └── WAF_Rule_Porto_AreYouSure.cs.txt ├── O2_Web_Proxy │ ├── API_WebProxy.cs │ ├── HTTPSDebuggingProxy │ │ ├── Cache_Objects.cs │ │ ├── ProxyCache.cs │ │ ├── ProxyServer.cs │ │ └── cert.cer │ ├── HttpData.cs │ ├── O2_Web_Proxy.cs │ ├── O2_Web_Proxy_ExtensionMethods_GUI_Helpers.cs │ ├── O2_Web_Proxy_ExtensionMethods_Waf_Rules.cs │ ├── PoC - O2 Web Proxy (old version).h2 │ ├── PoC - O2 Web Proxy Cache (old version).h2.txt │ ├── Tool - Cache from O2 Web Proxy.h2 │ ├── Util - O2 WAF Simulator (simple Gui).h2 │ ├── Util - O2 Web Proxy (large view).h2 │ └── Util - O2 Web Proxy (simple view).h2 ├── OData │ └── Util - Create C# for OData Service.h2 ├── OpenPgp │ ├── API_OpenPgp.cs │ ├── API_RSA.cs │ ├── Tool - Using OpenPgp to Encrypt or Decrypt.h2 │ └── UnitTests_API_Open_Pgp.cs ├── OpenXml │ └── API_OpenXml.cs ├── PowerShell │ └── PoC - Execute PowerShell Command.h2 ├── RegEx │ └── Util - run RegExes on Test Strings.h2 ├── Roslyn │ ├── PoC - Roslyn C# ScriptEngine Execute.h2 │ ├── PoC - Roslyn refactor on InitializerExpressions.h2 │ ├── Roslyn.cs │ ├── Util - Exe Creator (using Roslyn Compiler.h2 │ ├── Util - Package O2 Script into separate Folder.h2.txt │ ├── Util - Roslyn - Compile Solution and view errors.h2 │ ├── Util - Roslyn AST Refactoring via REPL Script.h2 │ ├── Util - View Roslyn AST Graph.h2 │ ├── _Extra_methods_Roslyn_API.cs │ ├── _Extra_methods_Roslyn_API_GuiHelpers.cs │ └── _Extra_methods_Roslyn_API_Refactoring.cs ├── SVG │ ├── Sample-3_buttons.svg │ └── Tool - SVG Viewer and Editor.h2 ├── Selenium │ └── IDE_Extensions │ │ └── goto_sel_ide.js ├── StackOverflow │ ├── API_StackOverflow.cs │ └── Util - StackOveflow Search.h2 ├── TiddlyWiki │ └── TiddlyWiki_Editor.h2 ├── Twitter │ ├── O2TwitterAPI.cs │ ├── Tool - Twitter Account Creation.h2 │ └── Twitter Client.h2 ├── Util - Send Email.h2 ├── WCF │ ├── PoC - O2 WCF Client.h2 │ └── PoC - O2 WCF Server.h2 ├── WPF │ ├── API_AvalonDock.cs │ ├── API_WPF_ToolKit.cs │ ├── DiagramDesigner │ │ ├── DiagramDesigner_ExtensionMethods.cs │ │ ├── DiagramDesigner_NewAppDomain.cs │ │ └── Util - DiagramDesigner Editor.h2 │ ├── ElementHost_ExtensionMethods.cs │ ├── Graph │ │ ├── GraphFactory.cs │ │ ├── GraphLayout_O2CodeStream_ExtensionMethods.cs │ │ ├── GraphLayout_WPF_ExtensionMethods.cs │ │ ├── GraphSharp_ExtensionMethods.cs │ │ ├── PoC - View Graph.h2 │ │ ├── To Import - from O2_API_AST │ │ │ ├── CodeStreamGraphNode.cs │ │ │ ├── CodeStreamGraphNode_ExtensionMethods.cs │ │ │ └── extraMethod.txt │ │ ├── Util - Graph REPL.h2 │ │ ├── VerticesAndEdges_ExtensionMethods.cs │ │ ├── WpfTextEditor.cs │ │ └── ascx_GraphWithInspector.cs │ ├── MiniFramework │ │ ├── API_MiniFramework.cs │ │ └── Tool - WhoIs.h2 │ ├── WPF_GUI.cs │ ├── WPF_Ribbon │ │ ├── CustomO2.cs │ │ ├── Util - Show Mapping of Ribbon Buttons.h2 │ │ ├── WPF_Ribbon.cs │ │ └── WPF_Ribbon_ExtensionMethods.cs │ ├── Wpf_TextEditor_ExtensionMethods.cs │ └── Xaml │ │ ├── KaxamlSnippets.xml │ │ ├── O2 Xaml Editor (PoC).h2 │ │ ├── XamlCode.cs │ │ └── Xaml_ExtensionMethods.cs ├── WatiN │ ├── Fix - Set BrowserObject to IE 8 or 9.h2 │ ├── IE Automation (Simple mode).h2 │ ├── IE Automation (using Windows Automation).h2 │ ├── IE Automation using WatiN.h2 │ ├── PoC - Opening multiple WatiN instances on the same Form.h2 │ ├── Unit_Tests_using_IE.cs │ ├── WatiN - Open 'Test Recorder' in new process.h2 │ ├── ascx_IE_ScriptExecution.cs │ └── examples │ │ ├── PoC - Handing IE Error popups.h2 │ │ ├── PoC - Login into UK's Cloud Wifi.h2 │ │ ├── PoC - Script to seach google images (with persistent ID).h2 │ │ └── PoC - Visualizing the IEs 'Stop running this script' behaviour.h2 ├── Web │ └── API_HttpRequests.cs ├── WinForms │ └── PoC - View FluentSharp_BCL Embeded Icons.h2 ├── WinFormsUI │ └── Util - O2 C# REPL using WinFormsUI.h2 ├── Windows │ ├── AForge │ │ ├── API_AForge_Video.cs │ │ ├── API_AForge_Video_Image.cs │ │ ├── API_AForge_Video_WPF_Image.cs │ │ ├── Util - Movie Creator (Simple).h2 │ │ ├── Util - Movie Creator.h2 │ │ └── ascx_MovieEditor.cs │ ├── API_RDP.cs │ ├── API_WindowsMediaPlayer.cs │ ├── CLR │ │ ├── API_CLR.cs │ │ ├── API_Mscoree.cs │ │ └── Util - AppDomains in Current Process.h2 │ ├── CmdExe │ │ ├── CmdExeAPI.cs │ │ ├── PoC - API_ConsoleOut TestGui.h2 │ │ └── Util - ConsoleOut.h2 │ ├── Cropper │ │ ├── API_Cropper.cs │ │ └── Util - Show ScreenShot Tool.h2 │ ├── InputSimulator │ │ ├── API_InputSimulator.cs │ │ └── Example - Mouse Moving and Clicking.h2 │ ├── MessageHooks │ │ ├── API_InjectMenu_AnotherProcess.cs │ │ ├── GenericWindow.cs │ │ ├── PoC - GlobalCbtHook - Transparency window.h2 │ │ ├── Util - add Menu and inject Messages Hooks.h2 │ │ └── WilsonGlobalSystemHooks │ │ │ ├── Form1.cs │ │ │ ├── GlobalHooks.cs │ │ │ ├── Win32.cs │ │ │ └── Window.cs │ ├── WMF │ │ └── Play WMF videos.h2 │ ├── WMI │ │ ├── API_WMI.cs │ │ ├── Util - WMI Query Execution and view.h2 │ │ └── WMI Search (Win32_Process) .h2 │ ├── White │ │ ├── API_GuiAutomation.cs │ │ ├── Launch VisualUIAVerify.h2 │ │ ├── PoC - Automating Notepad.h2 │ │ ├── UIAutomationVerify_Installer.cs │ │ └── Utill - Take Screenshot of all Running Processes Windows.h2 │ ├── Win32 │ │ ├── API_ProcessHandles.cs │ │ └── API_Win32Processes_Handles.cs │ ├── Win32_DLL_Imports │ │ ├── API_WinAPI.cs │ │ ├── API_WinAPI_ExtensionMethods.cs │ │ ├── Dll_Gdi32.cs │ │ ├── Dll_Kernel32.cs │ │ ├── Dll_User32.cs │ │ ├── Win32_Classes.cs │ │ ├── Win32_Consts.cs │ │ ├── Win32_Helper_Methods.cs │ │ └── Win32_Structs.cs │ └── Windows_Messages │ │ ├── API_Win32_Handle_Hijack.cs │ │ ├── PoCs │ │ ├── PoC (Dev) - Windows Handles - Handle Swapper.h2 │ │ ├── PoC (dev) - Windows Handles Viewer (Simple Hijack).h2 │ │ └── PoC - View Handle History.h2 │ │ ├── Util - Win32 Window Handle Hijack (4x host panels ).h2 │ │ ├── Util - Win32 Window Handle Hijack (simple).h2 │ │ ├── Util - Windows Handles - View Handle Screenshot.h2 │ │ ├── Util - Windows Handles Viewer (Simple GUI with REPL).h2 │ │ ├── Util - Windows Handles Viewer (Simple Gui).h2 │ │ └── Util - Windows Handles Viewer (with Child Windows).h2 ├── WolframAlpha │ ├── Main.cs │ ├── PoC - first tests using main.h2 │ └── WolframAlphaEngine.cs ├── WordPress │ ├── API_WordPress.cs │ ├── API_WordPress_IE.cs │ ├── Tool - WordPress Editor.h2 │ ├── Unit_Tests_API_WordPress_IE.cs │ ├── Util - View WordPress Posts.h2 │ └── Util - Write Blog post on o2platform.wordpress.com.h2 ├── _Javascript_Libraries │ ├── Bootstrap │ │ ├── Samples │ │ │ ├── Bootstrap Example - Basic Marketing Site.html │ │ │ ├── Bootstrap Example - Fluid Layout.html │ │ │ ├── Bootstrap Example - Starter template.html │ │ │ ├── Bootstrap Example.html │ │ │ └── QuickTest.html │ │ ├── Util - Try BootStrap CSS.h2 │ │ ├── bootstrap.ico │ │ ├── css │ │ │ ├── bootstrap-responsive.css │ │ │ ├── bootstrap-responsive.min.css │ │ │ ├── bootstrap.css │ │ │ └── bootstrap.min.css │ │ ├── img │ │ │ ├── glyphicons-halflings-white.png │ │ │ └── glyphicons-halflings.png │ │ └── js │ │ │ ├── bootstrap.js │ │ │ └── bootstrap.min.js │ ├── JInt │ │ ├── JInt_Installer.cs │ │ ├── Jint_ExtensionMethods.cs │ │ ├── Jint_Objects.cs │ │ ├── Jint_Visitors.cs │ │ ├── Util - JInt Compile and Execute.h2 │ │ ├── Util - Jint jsbeautify.h2 │ │ └── ascx_Javascript_AST.cs │ ├── JQuery │ │ ├── IE_JQuery.cs │ │ ├── PoC - jQuery IE Automation Example.h2 │ │ ├── Poc - jQuery jsDataTable.h2 │ │ ├── Poc - jQuery jsTree.h2 │ │ ├── Util - Simple jQuery script GUI.h2 │ │ ├── examples │ │ │ └── PoC - JS conversation between IE and O2.h2 │ │ ├── jquery-1.5.2.js │ │ ├── jquery-1.5.2.min.js │ │ ├── jquery-1.6.2.min.js │ │ ├── jquery-1.8.1.min.js │ │ ├── jquery-1.9.1.min.js │ │ ├── jsDataTable │ │ │ ├── JsDataTable.cs │ │ │ ├── dataTable_demo.css │ │ │ └── jquery.dataTables.min.js │ │ └── jsTree │ │ │ ├── JsTreeNode.cs │ │ │ ├── d.gif │ │ │ ├── d.png │ │ │ ├── jquery.jstree.js │ │ │ ├── jquery.jstree.style.css │ │ │ └── throbber.gif │ ├── JSLinux │ │ └── PoC - Open JSLinux with REPL.h2 │ ├── Karma │ │ └── PoC - Karma and Angular run.h2 │ └── Prettify │ │ ├── beautify.js │ │ ├── prettify.css │ │ ├── prettify.htm │ │ └── prettify.js └── _MiscAPIs │ ├── API_SharpCompress.cs │ ├── API_WinProxy.cs │ └── Mentalis_PacketMonitor.h2 ├── Languages ├── AspNet │ ├── AspNet_Page.cs │ ├── ControlEncodings │ │ ├── AspNetControlEncodings.cs │ │ ├── AspNetControlEncodings_Raw.xml │ │ └── Util - AspNet ControlEncodings (Raw Format).h2 │ ├── Create_o2_AspNet_Page_Objects.aspx │ ├── ScriptsToRunWith_AspxContext │ │ └── Util - Show AspNet Context object details.h2 │ ├── Tool - ASPNet Page Viewer (with Method and Code streams).h2 │ ├── Tool - AspNet Page Render.h2 │ ├── Util - Deploying ASPNET O2 environment to website.h2 │ ├── Util - WSDL Invoke and Scripting v1.0.h2 │ ├── WSDL │ │ └── API_ASMX_Proxy.cs │ ├── _O2_AspNet │ │ ├── Create_o2_AspNet_Page_Objects.aspx │ │ ├── Create_o2_AspNet_Page_Objects.h2 │ │ ├── Open_O2_Tools.aspx │ │ └── Show_Aspx_Context.aspx │ ├── ascx_Edit_AspNet_Pages.cs │ ├── ascx_WSDL_Creation_and_Execution.cs │ ├── aspCompile.cs │ └── web_config_files │ │ └── 3.5_compiler_web.config ├── DotNet │ ├── Ast_Scanner │ │ ├── Controls │ │ │ ├── ascx_CodeStreams.cs │ │ │ ├── ascx_GraphAst_MethodCalls.cs │ │ │ ├── ascx_Interactive_MethodCalls.cs │ │ │ ├── ascx_ManualMethodStreams.cs │ │ │ ├── ascx_SearchAST.cs │ │ │ ├── ascx_ViewAST.cs │ │ │ ├── ascx_View_SourceCode_AST.cs │ │ │ └── ascx_WriteRule.cs │ │ ├── O2_DotNet_Ast_Engine.cs │ │ ├── O2_DotNet_Ast_Scanner.h2 │ │ ├── Security Analysis │ │ │ └── Util - WebMethod's PrincipalPermissions.h2 │ │ ├── SecurityRules_AST_DotNet │ │ │ ├── IAST_Rules.cs │ │ │ ├── Rule_DotNet_FindSinks.cs │ │ │ ├── Rule_DotNet_FindSources.cs │ │ │ ├── Rule_DotNet_ScanFiles.cs │ │ │ └── Util - Edit AST Rules.h2 │ │ ├── Tool - MethodStream and CodeStream Creator.h2 │ │ ├── Util - From Ast View Classes Inheritance mappings.h2 │ │ ├── Util - Debug AST Rules.h2 │ │ ├── Util - Method Invocations (Findings Creator).h2 │ │ ├── Util - Method Invocations Creator.h2 │ │ ├── Util - Method Invocations Viewer (MethodStreams).h2 │ │ ├── Util - Method Invocations Viewer (Simple).h2 │ │ ├── Util - MethodStreams Creator.h2 │ │ ├── Util - MethodStreams Viewer.h2 │ │ ├── Util - Saved MethodStream Files Viewer.h2 │ │ └── Util - View Ast Details in real time.h2 │ ├── DotNet_AspNet_Compiler.cs │ ├── DotNet_SDK_GacUtil.cs │ ├── DotNet_SDK_WCF.cs │ ├── DotNet_SDK_WSDL.cs │ ├── DotNet_ViewState.cs │ ├── MS_VS_WebServer.cs │ ├── Mono_and_Reflection │ │ ├── Tool - View .NET Assembly References Mappings.h2 │ │ ├── ascx_AssemblyAttributes.cs │ │ └── ascx_MonoDecompiler.cs │ ├── SoS │ │ └── SunOfStrikeApi.cs │ ├── Util - Aspx PoC Builder.h2 │ ├── Util - Convert VB.Net to CSharp.h2 │ ├── Util - Decompile ASP.NET ASPX pages compiled code.h2 │ └── Util - ViewState_Decoder_ASP.NET 3.0.h2 ├── IO │ ├── IOLanguage_CLR_Installer.cs │ ├── IOLanguage_Installer.cs │ ├── PoC - IO Language CLR REPL.h2 │ └── PoC - Simple Exectution.h2 ├── J2EE │ ├── JSP │ │ ├── Util - Java, Jsp and Xml File Search.h2 │ │ └── Util - View JSPs (simple mode).h2 │ ├── SpringMVC │ │ ├── O2CmdSpringMVC_Installer.cs │ │ ├── Spring MVC Attributes Tool.h2 │ │ ├── SpringMvcMappings.cs │ │ ├── Tool - O2 Cmd SpringMVC.h2 │ │ ├── spring-servlet.xsd │ │ ├── spring-servlet.xsd.cs │ │ └── v2.0 │ │ │ ├── SpringMvcMappings_v2.0.cs │ │ │ ├── spring-servlet-2.0.xsd │ │ │ └── spring-servlet-2.0.xsd.cs │ ├── Struts │ │ ├── Util - View Struts Mappings.h2 │ │ ├── XRule_Struts.cs │ │ ├── XUtils_Struts_Joins_V0_1.cs │ │ └── xUtils_Struts_v0_1.cs │ ├── Util - View Web.Xml mappings.h2 │ ├── Util - View struts-config.xml mappings.h2 │ ├── Util - View tiles-def.xml mappings.h2 │ ├── Util - View validation.xml mappings.h2 │ └── from_O2_Core_FileViewers │ │ ├── Ascx │ │ ├── XRule │ │ │ ├── ascx_FilteredFindings.Designer.cs │ │ │ ├── ascx_FilteredFindings.cs │ │ │ ├── ascx_O2Rules_Struts.Controllers.cs │ │ │ ├── ascx_O2Rules_Struts.Designer.cs │ │ │ └── ascx_O2Rules_Struts.cs │ │ ├── ascx_J2EE_web_xml.Designer.cs │ │ ├── ascx_J2EE_web_xml.cs │ │ ├── ascx_ShowStrutsConfigFiles.Designer.cs │ │ ├── ascx_ShowStrutsConfigFiles.cs │ │ ├── ascx_StrutsMappings.Controllers.cs │ │ ├── ascx_StrutsMappings.Designer.cs │ │ ├── ascx_StrutsMappings.cs │ │ ├── ascx_Struts_config_xml.Designer.cs │ │ ├── ascx_Struts_config_xml.cs │ │ ├── ascx_TilesDefinition_xml.Designer.cs │ │ ├── ascx_TilesDefinition_xml.cs │ │ ├── ascx_Validation_xml.Designer.cs │ │ ├── ascx_Validation_xml.cs │ │ └── tests │ │ │ ├── ascx_Struts_ManualMapping.Controllers.cs │ │ │ ├── ascx_Struts_ManualMapping.Designer.cs │ │ │ ├── ascx_Struts_ManualMapping.cs │ │ │ └── ascx_Struts_ManualMapping.resx │ │ ├── J2EE │ │ ├── J2eeConfigFiles.cs │ │ ├── KTilesDefinition.cs │ │ ├── KValidationXml.cs │ │ └── KWebXml.cs │ │ ├── JoinTraces │ │ ├── JoinOnAttributes.cs │ │ ├── O2FindingsHelpers.cs │ │ └── StrutsMappingHelpers.cs │ │ ├── Struts_1_5 │ │ ├── KStrutsConfigXml.cs │ │ ├── MapStrutsForms.cs │ │ ├── StrutsMappingsHelpers.cs │ │ └── StrutsMappingsViewHelpers.cs │ │ ├── ViewHelpers │ │ └── CreateDataTable.cs │ │ └── XSD │ │ ├── j2ee_1_4.xsd │ │ ├── j2ee_web_services_1_1.xsd │ │ ├── j2ee_web_services_client_1_1.xsd │ │ ├── jsp_2_0.xsd │ │ ├── struts-config.cs │ │ ├── struts-config.xsd │ │ ├── tiles-definition.cs │ │ ├── tiles-definition.xsd │ │ ├── validation.cs │ │ ├── validation.xsd │ │ ├── web-app_2_4.cs │ │ └── web-app_2_4.xsd └── Javascript │ ├── Ajax │ ├── JavaScript_Ajax_Hooks.txt │ └── Util -Ajax Calls Monitor.h2 │ ├── DWR │ ├── API_DWR.cs │ ├── JavaScript_DWR_Hooks.txt │ ├── Util - DWR Calls Monitor.h2 │ └── Util - DWR Functions Viewer and Invoker.h2 │ ├── Util - Javascript Editor (web based).h2 │ ├── Util - Javascript Format (and Beautify).h2 │ ├── Util - get Javascript Objects.h2.txt │ ├── Web - JavaScript Stats Viewer.h2 │ ├── Web - Javascript AST Viewer.h2 │ └── Web - XSS PoC Builder.h2 ├── README.md ├── Utils ├── ExtensionMethods │ ├── _Extra_methods_Browser.cs │ ├── _Extra_methods_NGitI.cs │ ├── _Extra_methods_To_Add_to_Main_CodeBase.cs │ ├── _Extra_methods_TypeConfusion.cs │ ├── _Extra_methods_WinForms_Component.cs │ └── _Extra_methods_Xml_XSD.cs ├── H2_Starters │ ├── Misc Code Samples │ │ └── FizzBuzz solution.h2 │ └── Script Editor │ │ └── PoC - Script the Script.h2 ├── O2 │ ├── C# REPL Script Editor.h2 │ ├── CSharp_String_Encoder.h2 │ ├── O2 Main WPF GUI.h2 │ ├── Uitl - Stop all (but current) O2_XRules_Database processes.h2 │ ├── UnitTests │ │ └── UnitTest_Gui_Tests.cs │ ├── Util - C# REPL Script [4.0].cs.o2 (check if still needed).txt │ ├── Util - C# REPL Script [4.0].h2 │ ├── Util - C# REPL Script.h2 │ ├── Util - Current Running Threads.h2 │ ├── Util - Development Gui and SourceCodeEditor.h2 │ ├── Util - Development Gui and Two Script Editors.h2 │ ├── Util - Download O2 Reference File.h2 │ ├── Util - Download Updated O2 Scripts.h2 │ ├── Util - Execute O2 Scripts.h2 │ ├── Util - Execute script in separate AppDomain.h2 │ ├── Util - LogViewer.h2 │ ├── Util - O2 Available scripts.h2 │ ├── Util - O2 Development Environment.h2 │ ├── Util - O2 Object Model.h2 │ ├── Util - Open O2's Execution Directory.h2 │ ├── Util - REPL Script a Code Editor.h2 │ ├── Util - Search AutoSaved Scripts (starting with Today).h2 │ ├── Util - Search O2 codebase (at googlecode).h2 │ ├── Util - Secret Data Editor.h2 │ ├── Util - SourceCodeEditor.h2 │ ├── Util - SourceCodeViewer.h2 │ ├── Util - Two Script Editors.h2 │ ├── Util - Unzip File into temp Folder.h2 │ ├── Util - View O2.Platform.Scripts file length.h2 │ ├── ascx_O2_Command_Prompt.cs │ └── ascx_SvnBrower.cs.o2.txt ├── O2_StandAlone_Modules │ ├── CIR Viewer.h2.txt │ ├── CSharp Scripts Debugger.h2.txt │ ├── Findings Query.h2.txt │ ├── Findings Viewer.h2.txt │ ├── HostLocalWebsite │ │ ├── Util - Start .NET WebServer on Local Folder.h2 │ │ ├── ascx_HostLocalWebsite.Designer.cs │ │ ├── ascx_HostLocalWebsite.cs │ │ ├── main.cs │ │ └── webservices.cs │ ├── Java Execution.h2.txt │ └── SearchEngine │ │ ├── SearchEngineGui.cs │ │ ├── Tool - Search Engine.h2 │ │ ├── ascx_SearchResults.Controllers.cs │ │ ├── ascx_SearchResults.Designer.cs │ │ ├── ascx_SearchResults.cs │ │ ├── ascx_SearchTargets.Controllers.cs │ │ ├── ascx_SearchTargets.Designer.cs │ │ ├── ascx_SearchTargets.cs │ │ ├── ascx_TextSearch.Designer.cs │ │ └── ascx_TextSearch.cs ├── Web │ ├── SimpleCSharpREPL.cs │ ├── SimpleTextEditor.cs │ ├── Tool - IE Browser.h2 │ ├── Util - Browser REPL.h2 │ ├── Util - Html Editor and WebBrowser.h2 │ ├── Util - Network Tests (Ping and Http).h2 │ ├── Util - Simple Html Viewer.h2 │ ├── Util - View Current IP Address info.h2 │ ├── Util - View and search WebPage code.h2 │ ├── Util - Xml Formating.h2 │ ├── ascx_HtmlTagViewer.cs │ ├── ascx_Html_Editor.cs │ ├── ascx_Translate_Text.cs │ └── ascx_View_WebPage_Details.cs ├── Windows │ ├── API_SecureCredentials.cs │ ├── Util - Add site to IE trusted zone.h2 │ ├── Util - Current Font Families.h2 │ ├── Util - File Mapping (by extension).h2 │ ├── Util - File Search and Replace.h2 │ ├── Util - Font Viewer.h2 │ ├── Util - Notepad (with REPL).h2 │ ├── Util - Notepad.h2 │ ├── Util - Open Windows Hosts file.h2 │ ├── Util - Quick File Browser (with Browser and REPL).h2 │ ├── Util - Quick File Browser (with Code Viewer and REPL).h2 │ ├── Util - Quick File Browser (with Notepad).h2 │ ├── Util - Quick File Search.h2 │ ├── Util - Quick File Viewer.h2 │ ├── Util - Quick Hex File Viewer.h2 │ ├── Util - Registry Viewer.h2 │ ├── Util - Show Open Ports (via NetStat -afo).h2 │ ├── Util - Simple Text Editor.h2 │ ├── ascx_Processes_Stop.cs │ ├── ascx_Running_Processes_Details.cs │ ├── ascx_Services_Stop.cs │ └── ascx_Start_Tools.cs ├── _O2_Development │ ├── Compile All Local O2 Scripts.h2 │ ├── O2Dev_UnitTests │ │ ├── UnitTest_BrowserAutomation_and_IE_Demos.cs │ │ └── UnitTest_SimpleTextEditor.cs │ ├── Script to delete temp dirs and backup autosaved scripts.h2.txt │ └── Test - Code snippet compile test.h2 ├── _Sample Files │ ├── DefaultUnitTest.cs │ ├── Example of Ascx Control Injection.cs │ ├── Hello_O2_World.cs │ ├── SampleScripts.cs │ ├── SampleUnitTests.cs │ ├── Support files For Unit Tests │ │ ├── 1_helloWorld.cs │ │ ├── 2_For_UnitTest_HotMethodPatch.cs │ │ ├── 4_For_UnitTest_SimpleCalls.cs │ │ └── _Sample_UnitTests.cs │ └── SvnTest.cs.txt └── _VisualStudio_Projects │ ├── O2.Platform.Scritps.csproj │ └── O2.Platform.Scritps.sln ├── _Custom_O2s ├── BlackBox and Browser Automation (Custom O2).h2 ├── DotNet Static Analysis (Custom O2).h2 ├── Fiddler - HTTP Debugging Proxy (Custom O2).h2 ├── HacmeBank - Vulnerable Web Application (Custom O2).h2 ├── Installers (Custom O2).h2 ├── Matt Parsons - v0.1 (Custom O2).h2 ├── OWASP Projects and Website (Custom O2).h2 ├── OWASP WebScarab (Custom O2 version).h2 ├── Sarah Baso - v0.1 (Custom O2).h2 ├── Security Consultants (Custom O2 version).h2 ├── SecurityInnovation - Custom O2.h2 ├── _Templates │ ├── Empty_Class.cs │ └── Empty_XRule.cs ├── _template (Custom O2).h2 ├── v1.1 │ └── O2 Main WPF GUI.h2 ├── v1.4 │ ├── O2 GUI - .Net Security Testing.h2 │ ├── O2 GUI - Browser Automation and BlackBox Testing.h2 │ ├── O2 GUI - Create Scripts or APIs.h2 │ ├── O2 GUI - Help.h2 │ ├── O2 GUI - Use OWASP Projects.h2 │ ├── O2 GUI - Use Other Tools or APIs.h2 │ └── O2 GUI.h2 ├── v1.5 │ ├── bullet.gif │ ├── external.png │ ├── images │ │ ├── BlackBox_CustomO2.jpg │ │ ├── DinisCruz_CustomO2.jpg │ │ └── WebScarab_CustomO2.jpg │ ├── v1.5_MainGui.h2 │ ├── wiki_BuyO2.html │ ├── wiki_CustomO2s.html │ ├── wiki_Demos.html │ ├── wiki_Developer.html │ ├── wiki_Help.html │ ├── wiki_Welcome.20111105.0319300396.html │ └── wiki_Welcome.html ├── v2.0 │ ├── Util - Clone_or_Open and compile O2 Repositories.cs │ └── Util - Create O2 Installer.h2 └── v4.1 │ └── Main O2 Gui.h2 ├── _DataFiles ├── J2EE_ConfigFiles │ ├── Ibatis_JPetstore_struts-config.xml │ ├── Ibatis_JPetstore_validation.xml │ ├── Ibatis_JPetstore_web.xml │ ├── SpringMVC_PetClinic_web.xml │ ├── Spring_JPetStore_struts-config.xml │ └── struts_sample_validation.xml ├── Jars │ └── commons-logging-1.1.1.jar ├── MethodStreams │ └── HacmeBank_v2_Website.ascx.PostMessageForm.btnPostMessage_Click.cs ├── O2Findings │ ├── AltoroJ_2.5_8.6_OOB.ozasmt.zip │ ├── HacmeBank_COMPLETE_TRACES.zip │ ├── JpetStore_8.6.ozasmt.zip │ └── PostMessageExploit.ozasmt ├── SampleDiagrams │ ├── DownloadO2.jpg │ ├── DownloadO2.xml │ ├── O2_Version_For.xml │ ├── O2_Videos-splashScreen.xml │ ├── O2_Videos-splashScreen_WebGoat.xml │ ├── O2_XRules_Gui.xml │ ├── SplashScreen_Social_Web_Tools.xml │ └── emptyDiagram.xml ├── SampleFiles │ ├── Request.Write.cs │ └── Simple_Html_Form.html ├── _Images │ ├── CustomO2Versions │ │ └── O2_Version_For_DinisCruz.jpg │ ├── H2Logo.ico │ ├── HacmebankScanner │ │ ├── HameBank_LoginPage.jpg │ │ └── HameBank_Login_Page.jpg │ ├── Icons │ │ ├── Clojure-icon.png │ │ ├── Execute_arrow.ico │ │ ├── Notepad.ico │ │ ├── Utility.ico │ │ ├── cheshire_cat.ico │ │ ├── devil.ico │ │ ├── email.ico │ │ ├── in_FormImages │ │ │ ├── blogs-stack.ico │ │ │ ├── execute.ico │ │ │ ├── java.ico │ │ │ ├── owasp.ico │ │ │ ├── scripts.ico │ │ │ └── target.ico │ │ ├── package_development.ico │ │ ├── web.ico │ │ └── zip.ico │ ├── O2Logo.ico │ ├── O2Logo_Small.gif │ ├── O2_Logo.gif │ ├── O2_Logo_no_Shadow.jpg │ ├── OWASP_O2_Platform.png │ ├── RibbonBarIcons │ │ ├── ColorPalette.png │ │ ├── ConnectionManager_48x48.png │ │ ├── Default_16x16.png │ │ ├── FormatPainter_16x16.png │ │ ├── NewDocument_16x16.png │ │ ├── Open_16x16.png │ │ ├── OuterBorders_16x16.png │ │ ├── Paragraph_16x16.png │ │ ├── Save_16x16.png │ │ ├── cut16.png │ │ ├── cut32.png │ │ ├── delete16.png │ │ ├── delete32.png │ │ ├── edit.png │ │ ├── favorites16.png │ │ ├── favorites32.png │ │ ├── folder16.png │ │ ├── folder32.png │ │ ├── history16.png │ │ ├── history32.png │ │ ├── home16.png │ │ ├── home32.png │ │ ├── image.png │ │ ├── mail16.png │ │ ├── mail32.png │ │ ├── paste16.png │ │ ├── paste32.png │ │ ├── player_play.png │ │ ├── player_stop.png │ │ ├── props16.png │ │ ├── props32.png │ │ ├── redled.png │ │ ├── restart.png │ │ ├── save16.png │ │ ├── save32.png │ │ ├── search16.png │ │ ├── search32.png │ │ ├── start.png │ │ ├── stop.png │ │ ├── undo16.png │ │ ├── undo32.png │ │ └── video.png │ └── Sources Attribution.txt └── _UnitTests │ └── CheckBehaviourOfSecurityActionDemands.cs ├── _Sample_Vulns ├── Altoro │ ├── PoC - SQLi Vulns via FuzzDb with Screenshots.h2 │ └── PoC - Xss Vulns via FuzzDb with Screenshots.h2 ├── AltoroJ │ └── Inside AppScan Standard - Add AltoroJ Menu.h2 ├── BlackBox - Exploit Execution.h2 ├── Browser Automation_IE Demos.h2 ├── CodeFixing_PoCs │ └── Fixing Response.Write.h2 ├── Fuzzing │ ├── PoC - Fuzzing Images - Gif.h2 │ ├── PoC - Fuzzing Images - Ico.h2 │ ├── PoC - Fuzzing Images - Png.h2 │ ├── PoC - Fuzzing Images.h2 │ └── PoC - Generating Fuzzed Images.h2 ├── HacmeBank │ ├── API_HacmeBank.cs │ ├── HacmeBank - Custom O2 AST Security Scanner.h2 │ ├── HacmeBank_BlackBox_Exploits.cs │ ├── HacmeBank_FullPoc.h2 │ ├── Map HacmeBank Ascx EntryPoints.h2 │ ├── Util - Execute SQL Commands via SQLi.h2 │ └── Wizard - Start HacmeBank.cs.o2.txt ├── JPetClinic │ └── Spring_PetClinic_BlackBox_Exploits.cs ├── Javascript │ └── Exploit - Identify logged in user.htm ├── MyEclipse for Spring │ └── PoC - Cars - Add Employee to Office vuln.h2 ├── NerdDinner │ └── NerdDinner_Installer.cs ├── SAST_DotNET │ ├── SAST DotNet Script - Misc Vulns.cs │ ├── SAST DotNet Script - XSS.cs │ ├── SAST_DotNet_BlindSpot_Interface.cs │ └── SAST_DotNet_Template.cs ├── SuperSecureBank │ ├── API_SuperSecureBank.cs │ ├── SSB IE Automation - site actions.h2 │ ├── SSB PoC - Fuzz sSBService.GetAccounts.h2 │ ├── SSB PoC - XSS on 404.aspx page.h2 │ ├── SSB Tool - Configure O2 on SSB.h2 │ ├── SSB Tool - Invoke WebServices via WSDL.h2 │ ├── SSB Tool - Link Browser.h2 │ ├── SSB Tool - Open AspNet Page Viewer.h2 │ ├── SSB Visualization - AppScan Source Findings with Traces.h2 │ ├── _SSB - Custom O2.h2 │ ├── dlls │ │ ├── SuperSecureBank.dll │ │ ├── SuperSecureBank.pdb │ │ ├── SuperSecureBankService.dll │ │ └── SuperSecureBankService.pdb │ └── dlls_and_zip │ │ ├── SuperSecureBank.dll │ │ ├── SuperSecureBank.pdb │ │ ├── SuperSecureBankService.dll │ │ ├── SuperSecureBankService.pdb │ │ └── SuperSecureBankService.zip ├── Util - XSS PoC Tester - Viewer.h2 ├── WebGoat.Net │ ├── DotNetGoat.dll │ ├── DotNetGoat.pdb │ ├── WG.NET Tool - Configure O2 on WebServer.h2 │ └── WG.NET Tool - Open AspNet Page Viewer.h2 ├── WebGoat │ ├── API_WebGoat.cs │ └── WebGoat_BlackBox_Exploits.cs ├── XmlSerialization │ └── XmlDecode │ │ ├── PoC - XmlEncode object (using IKVM).h2 │ │ ├── Util - XmlDecode in memory using IKVM.h2 │ │ ├── Util - XmlDecode in memory using Jni4Net.h2 │ │ └── exploits │ │ ├── Simple string.xml │ │ ├── Start calc.xml │ │ └── XXE - get local file.xml ├── _IE_Demos │ ├── Google │ │ ├── open Google.h2 │ │ └── search on Google.h2 │ └── Local Html File │ │ ├── Open - Simple Html Form.h2 │ │ └── Select Fields - Simple Html Form.h2 ├── _MockClasses │ ├── Aspx_Vuln_Page.cs │ ├── HttpContext.cs │ ├── HttpRequest.cs │ ├── SqlCommand.cs │ ├── Taint_Tests.cs │ └── Web_SQL_Injection.cs ├── _Payloads │ ├── PoC - Consume Simple MD5 Rainbow Table.h2 │ ├── PoC - Generate Small MD5 Rainbow Table.h2 │ └── _xssPayloads.xml └── jPetStore │ ├── API_JPetStore.cs │ └── JpetStore - BlackBox Exploits.h2 └── _Templates ├── Empty_Class.cs └── Empty_XRule.cs /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | /3rdParty_Tools/TeamMentor/TM_Data 3 | obj 4 | bin 5 | 6 | *.user 7 | 8 | *.suo 9 | 10 | *.ncrunchsolution 11 | 12 | #*.csproj 13 | -------------------------------------------------------------------------------- /3rdParty/Antlr/Antlr_Installer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using FluentSharp.CoreLib; 4 | 5 | //O2File:Tool_API.cs 6 | 7 | namespace O2.XRules.Database.APIs 8 | { 9 | public class Antlr_Installer_Test 10 | { 11 | public void test() 12 | { 13 | new Antlr_Installer().start(); 14 | } 15 | } 16 | public class Antlr_Installer : Tool_API 17 | { 18 | 19 | public Antlr_Installer() 20 | { 21 | config("Antlr", 22 | "http://www.tunnelvisionlabs.com/downloads/antlr/antlr-dotnet-csharpruntime-3.4.1.9004.7z".uri(), 23 | "Antlr3.Runtime.dll"); 24 | installFromZip_Web(); 25 | } 26 | 27 | 28 | public Process start() 29 | { 30 | if (this.isInstalled()) 31 | return this.Install_Dir.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/CheckMarx/API_CxWebClient.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | using System; 3 | using System.Linq; 4 | using System.Threading; 5 | using System.Collections.Generic; 6 | using System.Windows.Forms; 7 | using System.Text; 8 | 9 | //O2File:CxPortalWebService.cs 10 | 11 | namespace O2.XRules.Database.APIs 12 | { 13 | public class API_CxWebClient 14 | { 15 | 16 | } 17 | } -------------------------------------------------------------------------------- /3rdParty/Chrome/PoC - Chrome Browser (WinForms).h2: -------------------------------------------------------------------------------- 1 | //O2Tag:SkipGlobalCompilation 2 | 3 | // the CefSharp.dll can not being used to compiled on 4.0 CLR 4 | 5 | var topPanel = "PoC - Chrome Browser (WinForms)".popupWindow(); 6 | //var topPanel = panel.clear().add_Panel(); 7 | 8 | var webView = topPanel.add_Chrome() 9 | .add_NavigationBar(); 10 | 11 | webView.Load("http://www.whatismybrowser.com"); 12 | //http://twitter.github.com/bootstrap/ 13 | return webView; 14 | 15 | //CLR_3.5 16 | 17 | //using O2.XRules.Database.APIs 18 | //O2File:API_Chrome.cs 19 | //O2Ref:CefSharp\CefSharp-1.19.0\CefSharp.WinForms.dll 20 | //O2Ref:CefSharp\CefSharp-1.19.0\CefSharp.dll 21 | //O2Package: 22 | //O2EmbedTool:CefSharp -------------------------------------------------------------------------------- /3rdParty/Chrome/PoC - Open ChromeDriver.h2: -------------------------------------------------------------------------------- 1 | //O2Tag:SkipGlobalCompilation 2 | 3 | // the CefSharp.dll can not being used to compiled on 4.0 CLR 4 | 5 | var chromeHijack = new API_Chrome_Hijack(); 6 | chromeHijack.script_Me("chromeHijack").insert_LogViewer(); 7 | chromeHijack.open_ChromeDriver(); 8 | 9 | //O2File:API_Chrome_Hijack.cs 10 | -------------------------------------------------------------------------------- /3rdParty/Chrome/Util - Chrome Browser with REPL.h2: -------------------------------------------------------------------------------- 1 | //var topPanel = panel.clear().add_Panel(); 2 | var topPanel = "Util - Chrome with REPL".popupWindow(1200,600); 3 | 4 | var replPanel = topPanel.add_GroupBox("C# Repl").add_Panel(); 5 | 6 | var chromeHijack = new API_Chrome_Hijack().open_ChromeDriver() 7 | .add_Chrome_To_Panel(topPanel.insert_Right()) 8 | .add_WebDriver_ScriptMe_To(replPanel); 9 | 10 | var firstScript = 11 | @"chromeDriver.open(""http://www.google.com""); 12 | chromeDriver.FindElement(By.Name(""q"")) 13 | .SendKeys(""O2 Platform""); 14 | chromeDriver.FindElement(By.Name(""btnG"")) 15 | .Click(); 16 | return ""done""; 17 | //using O2.XRules.Database.APIs 18 | //using OpenQA.Selenium; 19 | //O2Ref:WebDriver.dll 20 | //O2File:API_ChromeDriver.cs"; 21 | 22 | chromeHijack.WebDriver_Script_Me.set_Code(firstScript); 23 | 24 | //O2File:API_Chrome_Hijack.cs 25 | 26 | //using O2.XRules.Database.APIs 27 | //O2Ref:WebDriver.dll -------------------------------------------------------------------------------- /3rdParty/Chrome/Util - Chrome Browser.h2: -------------------------------------------------------------------------------- 1 | //O2Tag:SkipGlobalCompilation 2 | 3 | // the CefSharp.dll can not being used to compiled on 4.0 CLR 4 | 5 | O2.Kernel.O2ConfigSettings.CheckForTempDirMaxSizeCheck = false; 6 | O2Setup.extractEmbededConfigZips(); 7 | open.logViewer(); 8 | var pathToFileToCompile = "PoC - Chrome Browser (WinForms).h2".local(); 9 | var csharpCompiler = new CSharp_FastCompiler(); 10 | csharpCompiler.CompilationVersion = "v3.5"; 11 | var compileProcess = new System.Threading.AutoResetEvent(false); 12 | //csharpCompiler.onCompileOK = () => compileProcess.Set(); 13 | csharpCompiler.compileSnippet(pathToFileToCompile.contents()); 14 | 2000.wait(); 15 | 16 | //compileProcess.WaitOne(); 17 | var assembly = csharpCompiler.CompiledAssembly; 18 | assembly.str().info(); 19 | assembly.executeFirstMethod(); 20 | 21 | //CLR_3.5 22 | //using O2.External.SharpDevelop.AST 23 | //O2Package:API_Chrome.cs,PoC - Chrome Browser (WinForms).h2 24 | //O2EmbedTool:CefSharp -------------------------------------------------------------------------------- /3rdParty/Clojure/Clojure_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Clojure_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new Clojure_Installer().start(); 13 | } 14 | } 15 | public class Clojure_Installer : Tool_API 16 | { 17 | public Clojure_Installer() 18 | { 19 | config("Clojure", 20 | "https://github.com/downloads/clojure/clojure-clr/clojure-clr-1.4.0-Debug-4.0.zip".uri(), 21 | @"Debug 4.0\Clojure.Main.exe"); 22 | installFromZip_Web(); 23 | } 24 | 25 | 26 | 27 | public Process start() 28 | { 29 | if (isInstalled()) 30 | return this.Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/Clojure/Util - Clojure-clr REPL (Lisp).h2: -------------------------------------------------------------------------------- 1 | O2ConfigSettings.O2Version = "Closure_v2.0"; 2 | O2Setup.extractEmbededConfigZips(); 3 | 4 | 5 | //open.logViewer(); 6 | new API_Clojure().openO2ReplInClojureFolder(); 7 | 8 | //using O2.XRules.Database.APIs 9 | //O2File:API_Clojure.cs 10 | 11 | //O2EmbedTool:Clojure 12 | //O2Package:Clojure-icon.png,Launch Clojure REPL.h2,API_Clojure.cs -------------------------------------------------------------------------------- /3rdParty/EasyHook/EasyHook_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class EasyHook_Installer_Test 9 | { 10 | public static void test() 11 | { 12 | new EasyHook_Installer().start(); 13 | } 14 | } 15 | 16 | public class EasyHook_Installer : Tool_API 17 | { 18 | public EasyHook_Installer() 19 | { 20 | config("EasyHook", 21 | "EasyHook-2.7.4761.0-Binaries.zip", 22 | "http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=easyhook&DownloadId=371803&FileTime=130025275074470000&Build=20748".uri(), 23 | "NetFX4.0\\README.txt"); 24 | installFromZip_Web(); 25 | } 26 | 27 | public Process start() 28 | { 29 | if (this.isInstalled()) 30 | return this.Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/Flash/SWFScan_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class SWFScan_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new SWFScan_Installer().start(); 13 | } 14 | } 15 | public class SWFScan_Installer : Tool_API 16 | { 17 | 18 | public SWFScan_Installer() 19 | { 20 | config("SWFScan", 21 | "http://h30499.www3.hp.com/hpeb/attachments/hpeb/sws-119/721/1/HP_FREE_TOOL_SwfScan.zip".uri(), 22 | "AppScanSDK.chm"); 23 | installFromZip_Web(); 24 | } 25 | 26 | public Process start() 27 | { 28 | if (isInstalled()) 29 | return Executable.startProcess(); 30 | return null; 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /3rdParty/Fortify/PoC - Example of a simple fvdl viewer for a specific file.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | //var topPanel = panel.clear().add_Panel(); 4 | var topPanel = "View FVDL file".popupWindow(500,370); 5 | var xmlFile = @"C:\O2\Demos\Fortify-Sate-2008\sate2008-Fvdl\naim.fvdl"; 6 | var fvdl = FVDL.Load(xmlFile); 7 | topPanel.add_PropertyGrid().show(fvdl); 8 | 9 | //using xmlns.www.fortifysoftware.com.schema.fvdl 10 | //O2File:Fortify.fvdl.1.6.xsd.cs 11 | //O2Ref:O2_Misc_Microsoft_MPL_Libs.dll 12 | 13 | 14 |

-------------------------------------------------------------------------------- /3rdParty/Fortify/Util - FVDL viewer (just PropertyGrid).h2: -------------------------------------------------------------------------------- 1 | var topPanel = "Util - FVDL viewer (just PropertyGrid) - drop file to load".popupWindow(400, 400); 2 | topPanel.insert_LogViewer(); 3 | var propertyGrid = topPanel.add_PropertyGrid().helpVisible(false); 4 | Action loadAndShowFile = 5 | (file)=> O2Thread.mtaThread( 6 | ()=> propertyGrid.show(new API_Fortify().convertToFortifyScan(file))); 7 | 8 | propertyGrid.onDrop(loadAndShowFile); 9 | 10 | //using O2.XRules.Database.APIs 11 | 12 | //O2File:API_Fortify_1_6.cs 13 | //O2Ref:O2_Misc_Microsoft_MPL_Libs.dll -------------------------------------------------------------------------------- /3rdParty/GNU/GnuWin32_Make_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class GnuWin32_Make_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new GnuWin32_Make_Installer().start(); 13 | } 14 | } 15 | public class GnuWin32_Make_Installer : Tool_API 16 | { 17 | public GnuWin32_Make_Installer() 18 | { 19 | //http://heanet.dl.sourceforge.net/project/gnuwin32/sed/4.2.1/sed-4.2.1-setup.exe 20 | config("GNU", 21 | "http://garr.dl.sourceforge.net/project/gnuwin32/make/3.81/make-3.81.exe".uri(), 22 | ProgramFilesFolder.pathCombine(@"GnuWin32\bin\make.exe")); 23 | installFromMsi_Web(); 24 | } 25 | 26 | public Process start() 27 | { 28 | if (isInstalled()) 29 | return this.Executable.startProcess(); 30 | return null; 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /3rdParty/GnuCitizen/BadAssProxy_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class BadAssProxy_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new BadAssProxy_Installer().start(); 13 | } 14 | } 15 | public class BadAssProxy_Installer : Tool_API 16 | { 17 | 18 | public BadAssProxy_Installer() 19 | { 20 | config("BadAssProxy", 21 | "https://gnucitizen.googlecode.com/files/badassproxy-WINNT-0.0.zip".uri(), 22 | "binary\\bap.exe"); 23 | installFromZip_Web(); 24 | } 25 | 26 | 27 | public Process start() 28 | { 29 | if (this.isInstalled()) 30 | return this.Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/GnuCitizen/Proxify_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Proxify_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new Proxify_Installer().start(); 13 | } 14 | } 15 | public class Proxify_Installer : Tool_API 16 | { 17 | 18 | public Proxify_Installer() 19 | { 20 | config("Proxify", 21 | "https://gnucitizen.googlecode.com/files/proxify-WINNT-1.2.zip".uri(), 22 | "proxify.exe"); 23 | installFromZip_Web(); 24 | } 25 | 26 | 27 | public Process start() 28 | { 29 | if (this.isInstalled()) 30 | return this.Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/GoogleDataAPI/API_GoogleDataAPI.cs: -------------------------------------------------------------------------------- 1 | //Installer:GoogleDataAPI_Installer.cs!GoogleDataAPI\SourceDir\Redist\Google.GData.Apps.dll 2 | 3 | //O2Ref:GoogleDataAPI\SourceDir\Redist\Google.GData.Apps.dll 4 | //O2Ref:GoogleDataAPI\SourceDir\Redist\Google.GData.Client.dll 5 | //O2Ref:GoogleDataAPI\SourceDir\Redist\Google.GData.Extensions.dll 6 | //O2Ref:GoogleDataAPI\SourceDir\Redist\Google.GData.Photos.dll 7 | //O2Ref:GoogleDataAPI\SourceDir\Redist\Google.GData.AccessControl.dll 8 | 9 | namespace O2.XRules.Database.APIs 10 | { 11 | 12 | public class API_GoogleDataAPI 13 | { 14 | public API_GoogleDataAPI() 15 | { 16 | } 17 | } 18 | 19 | public static class API_GoogleDataAPI_ExtensionMethods 20 | { 21 | 22 | } 23 | } -------------------------------------------------------------------------------- /3rdParty/GoogleDataAPI/GoogleDataAPI_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | public class GoogleDataAPI_Installer_Test 7 | { 8 | public void dynamicMethod() 9 | { 10 | new O2.XRules.Database.APIs.GoogleDataAPI_Installer(); 11 | } 12 | } 13 | 14 | namespace O2.XRules.Database.APIs 15 | { 16 | public class GoogleDataAPI_Installer : Tool_API 17 | { 18 | public GoogleDataAPI_Installer() 19 | { 20 | config("GoogleDataAPI", 21 | "http://google-gdata.googlecode.com/files/Google_Data_API_Setup_2.1.0.0.msi".uri(), 22 | @"SourceDir\Redist\Google.GData.Apps.dll"); 23 | install_JustMsiExtract_into_TargetDir(); 24 | } 25 | 26 | 27 | public Process start() 28 | { 29 | if (isInstalled()) 30 | return Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/HawkEye/PoC - Process Finder via HawkEye.h2: -------------------------------------------------------------------------------- 1 | var topPanel = "PoC - Process Finder via HawkEye".popupWindow(300,400); 2 | //var topPanel = panel.clear().add_Panel(); 3 | var propertyGrid = topPanel.add_PropertyGrid(); 4 | 5 | propertyGrid.insert_Above_ProcessFinder() 6 | .onProcessChange((process) => propertyGrid.show(process)) 7 | .append_Label("(move the eye to see the window's process details)").autoSize().top(7); 8 | 9 | //using O2.XRules.Database.APIs 10 | 11 | //O2File:Ctrl_ProcessFinder.cs 12 | -------------------------------------------------------------------------------- /3rdParty/HawkEye/Util - Find WinForms Control and REPL it.h2: -------------------------------------------------------------------------------- 1 | new API_HawkEye().openControlFinder(); 2 | 3 | //using O2.XRules.Database.APIs 4 | //O2File:API_HawkEye.cs -------------------------------------------------------------------------------- /3rdParty/IBM/AppScan Source 7.0/Tool - Findings Viewer - IBM AppScan Source 7.0.h2: -------------------------------------------------------------------------------- 1 | var topPanel = O2Gui.open("Tool - Findings Filter - IBM AppScan Source 7.x/8.x",1000,400); 2 | var findingsViewer = topPanel.add_FindingsViewer(true); 3 | //findingsViewer.setFilter1Value("vulnName"); 4 | 5 | findingsViewer._SimpleViewMode = true; 6 | 7 | 8 | //using O2.XRules.Database.Findings 9 | 10 | //O2File:Findings_ExtensionMethods.cs 11 | -------------------------------------------------------------------------------- /3rdParty/ILSpy/API_ILSpy.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | 3 | //Installer:ILSpy_Installer.cs!ILSpy\ILSpy.exe 4 | 5 | //O2Ref:ILSpy\ILSpy.exe 6 | 7 | namespace O2.XRules.Database.APIs 8 | { 9 | public class API_ILSpy 10 | { 11 | 12 | } 13 | } -------------------------------------------------------------------------------- /3rdParty/ILSpy/ILSpy_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class ILSpy_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new ILSpy_Installer().start(); 13 | } 14 | } 15 | public class ILSpy_Installer : Tool_API 16 | { 17 | public ILSpy_Installer() 18 | { 19 | config("ILSpy", 20 | "http://downloads.sourceforge.net/project/sharpdevelop/ILSpy/2.0/ILSpy_Master_2.1.0.1603_RTW_Binaries.zip".uri(), 21 | "ILSpy.exe"); 22 | installFromZip_Web(); 23 | } 24 | 25 | 26 | 27 | public Process start() 28 | { 29 | if (isInstalled()) 30 | return this.Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/JAD/Jad_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Jad_Installer_Test 9 | { 10 | public static void test() 11 | { 12 | new Jad_Installer().start(); 13 | } 14 | } 15 | 16 | public class Jad_Installer : Tool_API 17 | { 18 | public Jad_Installer() 19 | { 20 | config("Jad", 21 | "http://www.varaneckas.com/jad/jad158g.win.zip".uri(), 22 | @"jad.exe"); 23 | installFromZip_Web(); 24 | } 25 | // 26 | 27 | public Process start() 28 | { 29 | if (this.isInstalled()) 30 | return this.Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/JabberNet/JabberNet_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Launcher 9 | { 10 | public static void launch() 11 | { 12 | new JabberNet_Installer().start(); 13 | } 14 | } 15 | public class JabberNet_Installer : Tool_API 16 | { 17 | 18 | public JabberNet_Installer() 19 | { 20 | config("JabberNet", 21 | "https://jabber-net.googlecode.com/files/JabberNet.Mono.v2.1.0.710.zip".uri(), 22 | "jabber-net.dll"); 23 | 24 | installFromZip_Web(); 25 | } 26 | 27 | public Process start() 28 | { 29 | if (isInstalled()) 30 | { 31 | 32 | //this.Executable.startProcess(); 33 | //"http://localhost:9090".startProcess(); 34 | } 35 | return null; 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /3rdParty/Jni4Net/Jni4Net_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Jni4Net_Installer_Test 9 | { 10 | public static void test() 11 | { 12 | new Jni4Net_Installer().start(); 13 | } 14 | } 15 | 16 | public class Jni4Net_Installer : Tool_API 17 | { 18 | public Jni4Net_Installer() 19 | { 20 | config("Jni4Net", 21 | "http://switch.dl.sourceforge.net/project/jni4net/0.8.8/jni4net-0.8.8.0-bin.zip".uri(), 22 | @"bin/proxygen.exe"); 23 | installFromZip_Web(); 24 | } 25 | // 26 | 27 | public Process start() 28 | { 29 | if (this.isInstalled()) 30 | return this.Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/MarkdownDeep/MarkdownDeep_Installer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using FluentSharp.CoreLib; 4 | 5 | //O2File:Tool_API.cs 6 | 7 | namespace O2.XRules.Database.APIs 8 | { 9 | public class MarkdownDeep_Installer_Test 10 | { 11 | public void test() 12 | { 13 | new MarkdownDeep_Installer().start(); 14 | } 15 | } 16 | public class MarkdownDeep_Installer : Tool_API 17 | { 18 | 19 | public MarkdownDeep_Installer() 20 | { 21 | config("MarkdownDeep", 22 | "http://www.toptensoftware.com/downloads/MarkdownDeep.zip".uri(), 23 | "bin/MarkdownDeep.dll"); 24 | installFromZip_Web(); 25 | } 26 | 27 | 28 | public Process start() 29 | { 30 | if (this.isInstalled()) 31 | return this.Install_Dir.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/MarkdownSharp/MarkdownSharp_Installer.cs: -------------------------------------------------------------------------------- 1 | using FluentSharp.CoreLib; 2 | 3 | //O2File:API_NuGet.cs 4 | 5 | namespace O2.XRules.Database.APIs 6 | { 7 | //NOT FULLLY IMPLEMENTED 8 | public class MarkdownSharp_Installer 9 | { 10 | public MarkdownSharp_Installer() 11 | { 12 | var expectedDll = @"NuGet\MarkdownSharp.1.13.0.0\lib\35\MarkdownSharp.dll"; 13 | var nugetPackage = "MarkdownSharp"; 14 | if (expectedDll.assembly().isNull()) 15 | { 16 | var nuGet = new API_NuGet(); 17 | //nuGet.install(nugetPackage); 18 | } 19 | } 20 | 21 | } 22 | } -------------------------------------------------------------------------------- /3rdParty/MarkdownSharp/PoC - Raw MarkdownSharp Transformations.h2: -------------------------------------------------------------------------------- 1 | //var topPanel = panel.add_Panel(true); 2 | var topPanel = "PoC - MarkdownSharp Transformations".popupWindow(); 3 | var textArea_Source = topPanel.add_TextArea(); 4 | var textArea_Transformed = textArea_Source.insert_Right() 5 | .add_TextArea(); 6 | var browser = textArea_Transformed.insert_Above() 7 | .add_WebBrowser(); 8 | Action applyTransform = 9 | (source) => { 10 | var transformed = new Markdown().Transform(source); 11 | textArea_Transformed.set_Text(transformed); 12 | O2Thread.mtaThread(()=>browser.set_Html(transformed)); 13 | }; 14 | 15 | textArea_Source.onTextChange(applyTransform) 16 | .set_Text("#Hello World"); 17 | 18 | //using MarkdownSharp 19 | //O2Ref:MarkdownSharp.dll 20 | -------------------------------------------------------------------------------- /3rdParty/Microsoft/CatNet/CatNet_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | 7 | namespace O2.XRules.Database.APIs 8 | { 9 | 10 | public class CatNet_Installer : Tool_API 11 | { 12 | public CatNet_Installer() 13 | { 14 | config("CatNet_1.1", 15 | "http://download.microsoft.com/download/3/3/4/334E8A84-0F1B-4E3C-AF5F-99DA8AE0601F/CATNETx32.msi".uri(), 16 | "SourceDir\\CATNetCmd.exe"); 17 | install_JustMsiExtract_into_TargetDir(); 18 | } 19 | 20 | 21 | public Process start() 22 | { 23 | if (isInstalled()) 24 | return Executable.startProcess(); 25 | return null; 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /3rdParty/Microsoft/CatNet/TestReport/CatNet_HacmeBank.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/3rdParty/Microsoft/CatNet/TestReport/CatNet_HacmeBank.xlsx -------------------------------------------------------------------------------- /3rdParty/Microsoft/VisualStudio/In VS2010/VS_2010 - Chrome (WinForms).h2: -------------------------------------------------------------------------------- 1 | var visualStudio = new API_VisualStudio_2010(); 2 | var panel = visualStudio.VsAddIn.add_WinForm_Panel("Native Chrome Control (WinForms)",500,400); 3 | var chrome = panel.add_Chrome().add_NavigationBar(); 4 | chrome.open("http://www.whatismybrowser.com"); 5 | return "done"; 6 | //using O2.FluentSharp.VisualStudio 7 | //O2File:API_VisualStudio_2010.cs 8 | //O2File:API_Chrome.cs 9 | //O2File:O2_VS_AddIn.cs 10 | //O2Tag_DontAddExtraO2Files 11 | 12 | //O2Ref:CefSharp\CefSharp-0.11-bin\CefSharp.WinForms.dll 13 | //O2Ref:CefSharp\CefSharp-0.11-bin\CefSharp.dll 14 | 15 | //O2Tag:SkipGlobalCompilation -------------------------------------------------------------------------------- /3rdParty/Microsoft/VisualStudio/In VS2010/VS_2010 - Chrome (Wpf).h2: -------------------------------------------------------------------------------- 1 | var visualStudio = new API_VisualStudio_2010(); 2 | var panel = visualStudio.VsAddIn.add_WinForm_Panel("Native Chrome Control (Wpf)",500,400).add_Panel(); 3 | var chrome = panel.add_Chrome_Wpf(true); 4 | chrome.open("http://www.whatismybrowser.com") 5 | .sleep(1000);; 6 | chrome.rotate(); 7 | return "done"; 8 | //using O2.FluentSharp.VisualStudio 9 | //O2File:API_VisualStudio_2010.cs 10 | //O2File:API_Chrome_Wpf.cs 11 | //O2File:O2_VS_AddIn.cs 12 | //O2Tag_DontAddExtraO2Files 13 | 14 | //O2Ref:CefSharp\CefSharp-0.11-bin\CefSharp.Wpf.dll 15 | //O2Ref:CefSharp\CefSharp-0.11-bin\CefSharp.dll 16 | 17 | //O2Ref:WindowsFormsIntegration.dll 18 | //O2Ref:PresentationFramework.dll 19 | //O2Ref:PresentationCore.dll 20 | //O2Ref:WindowsBase.dll 21 | //O2Ref:System.Xaml.dll 22 | 23 | //O2Tag:SkipGlobalCompilation -------------------------------------------------------------------------------- /3rdParty/Microsoft/VisualStudio/In VS2010/VS_2010 - On save, compile, open in browser.h2: -------------------------------------------------------------------------------- 1 | var visualStudio = new VisualStudio_2010(); 2 | 3 | var enabled = false; 4 | 5 | Action buildSolution = 6 | ()=>{ 7 | visualStudio.dte().Solution.SolutionBuild.Build(true); 8 | "Build Complete".info(); 9 | }; 10 | 11 | var browser = "webBrowser".o2Cache(()=>visualStudio.open_Panel().add_WebBrowser_with_NavigationBar()); 12 | 13 | Action onSave = 14 | ()=>{ 15 | O2Thread.mtaThread( 16 | ()=>{ 17 | browser.showMessage("...compiling project..."); 18 | buildSolution(); 19 | browser.open("http://localhost:1735/REST/users/.html"); 20 | }); 21 | }; 22 | VisualStudio_2010.on_DocumentSaved.clear().add( 23 | (document)=>{ 24 | if (enabled) 25 | onSave(); 26 | }); 27 | 28 | return "Automated opening web page on document save (and post build): Enabled = {0}".format(enabled); 29 | 30 | //O2Ref:EndDTE2.dll 31 | 32 | //O2Tag:SkipGlobalCompilation -------------------------------------------------------------------------------- /3rdParty/Microsoft/VisualStudio/In VS2010/VS_2010 - TeamMentor.h2: -------------------------------------------------------------------------------- 1 | var visualStudio = new API_VisualStudio_2010(); 2 | var panel = visualStudio.VsAddIn.add_WinForm_Panel("Native Chrome Control (Wpf)",500,400).add_Panel(); 3 | var chrome = panel.add_Chrome_Wpf(true); 4 | chrome.open("http://www.whatismybrowser.com") 5 | .sleep(1000);; 6 | chrome.rotate(); 7 | return "done"; 8 | //using O2.FluentSharp.VisualStudio 9 | //O2File:API_VisualStudio_2010.cs 10 | //O2File:API_Chrome_Wpf.cs 11 | //O2File:O2_VS_AddIn.cs 12 | //O2Tag_DontAddExtraO2Files 13 | 14 | //O2Ref:CefSharp\CefSharp-0.11-bin\CefSharp.Wpf.dll 15 | //O2Ref:CefSharp\CefSharp-0.11-bin\CefSharp.dll 16 | 17 | //O2Ref:WindowsFormsIntegration.dll 18 | //O2Ref:PresentationFramework.dll 19 | //O2Ref:PresentationCore.dll 20 | //O2Ref:WindowsBase.dll 21 | //O2Ref:System.Xaml.dll 22 | 23 | //O2Tag:SkipGlobalCompilation -------------------------------------------------------------------------------- /3rdParty/Microsoft/VisualStudio/O2_Add_In/Commands/O2_LogViewer.cs: -------------------------------------------------------------------------------- 1 | using FluentSharp.WinForms; 2 | using FluentSharp.VisualStudio; 3 | 4 | //O2File:O2_VS_AddIn.cs 5 | 6 | namespace FluentSharp.VisualStudio.Utils 7 | { 8 | public class O2_LogViewer : CommandBase 9 | { 10 | 11 | public O2_LogViewer(O2_VS_AddIn o2AddIn) : base(o2AddIn) 12 | { 13 | this.create(); 14 | } 15 | 16 | public override void create() 17 | { 18 | this.ButtonText = "O2 LogViewer"; 19 | this.ToolTip = "Opens the LogViewer"; 20 | this.TargetMenu = "O2 Platform"; 21 | base.create(); 22 | this.Execute = () => 23 | { 24 | 25 | var panel = O2AddIn.VS_Dte.createWindowWithPanel(O2AddIn.VS_AddIn, "test window"); 26 | panel.add_LogViewer(); 27 | 28 | //"Util - LogViewer.h2".local().executeH2Script(); 29 | }; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /3rdParty/Microsoft/VisualStudio/O2_Add_In/Commands/O2_ScriptGui.cs: -------------------------------------------------------------------------------- 1 | using FluentSharp.REPL; 2 | 3 | //O2File:O2_VS_AddIn.cs 4 | 5 | namespace FluentSharp.VisualStudio.Utils 6 | { 7 | public class O2_ScriptGui : CommandBase 8 | { 9 | 10 | public O2_ScriptGui(O2_VS_AddIn o2AddIn) : base(o2AddIn) 11 | { 12 | this.create(); 13 | } 14 | 15 | public override void create() 16 | { 17 | this.ButtonText = "O2 REPL Script Editor"; 18 | this.ToolTip = "Opens the O2 Script GUI"; 19 | this.TargetMenu = "O2 Platform"; 20 | base.create(); 21 | 22 | this.Execute = () => 23 | { 24 | var title = "O2 REPL Script Editor (Read-Eval-Print-Loop)"; 25 | //var o2Script = "ascx_Simple_Script_Editor.cs.o2"; 26 | //var type = "ascx_Simple_Script_Editor"; 27 | //O2AddIn.add_WinForm_Control_from_O2Script(title, o2Script, type, 500,300); 28 | O2AddIn.add_WinForm_Panel(title, 500,300).add_Script(); 29 | }; 30 | 31 | } 32 | 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /3rdParty/Microsoft/VisualStudio/O2_Add_In/Commands/O2_ScriptWithPanel.cs: -------------------------------------------------------------------------------- 1 | //O2File:O2_VS_AddIn.cs 2 | 3 | namespace FluentSharp.VisualStudio.Utils 4 | { 5 | public class O2_ScriptWithPanel : CommandBase 6 | { 7 | 8 | public O2_ScriptWithPanel(O2_VS_AddIn o2AddIn) : base(o2AddIn) 9 | { 10 | this.create(); 11 | } 12 | 13 | public override void create() 14 | { 15 | var title = "O2 REPL Script Editor - with Panel"; 16 | this.ButtonText = title; 17 | this.ToolTip = "Opens the O2 Script GUI (with a top panel)"; 18 | this.TargetMenu = "O2 Platform"; 19 | base.create(); 20 | this.Execute = () => 21 | { 22 | var o2Script = "ascx_Quick_Development_GUI.cs.o2"; 23 | var type = "ascx_Panel_With_Inspector"; 24 | O2AddIn.add_WinForm_Control_from_O2Script(title, o2Script, type, 500,300); 25 | }; 26 | } 27 | 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /3rdParty/MonoCecil/MonoCecil/CecilViewUtils_WindowsForms.cs.txt: -------------------------------------------------------------------------------- 1 | //using System.Windows.Forms; 2 | namespace O2.core.MonoCecil 3 | { 4 | public class CecilViewUtils_WindowsForms 5 | { 6 | public static int populateControlWith_Types(object targetObject, string targetAssembly) 7 | { 8 | return O2Forms.populateWindowsControlWithList(targetObject, CecilUtils.getTypes(targetAssembly)); 9 | } 10 | 11 | public static int populateControlWith_Modules(object targetObject, string targetAssembly) 12 | { 13 | return O2Forms.populateWindowsControlWithList(targetObject, CecilUtils.getModules(targetAssembly)); 14 | } 15 | 16 | public static int populateControlWith_Methods(object targetObject, string targetAssembly) 17 | { 18 | return O2Forms.populateWindowsControlWithList(targetObject, CecilUtils.getMethods(targetAssembly)); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /3rdParty/MonoCecil/MonoCecil/MethodCalled.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | using Mono.Cecil; 3 | using Mono.Cecil.Cil; 4 | using ICSharpCode.NRefactory.TypeSystem; 5 | 6 | //O2File:CecilUtils.cs 7 | 8 | namespace O2.External.O2Mono.MonoCecil 9 | { 10 | public class MethodCalled 11 | { 12 | public IMemberReference memberReference { get; set;} 13 | public SequencePoint sequencePoint { get; set; } 14 | 15 | public MethodCalled(IMemberReference _memberReference, SequencePoint _sequencePoint) 16 | { 17 | memberReference = _memberReference; 18 | sequencePoint = _sequencePoint; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /3rdParty/NMap/NMap_CmdLine_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | namespace O2.XRules.Database.APIs 6 | { 7 | public class NMap_CmdLine_Test 8 | { 9 | public void test() 10 | { 11 | new NMap_CmdLine().start(); 12 | } 13 | } 14 | public class NMap_CmdLine : Tool_API 15 | { 16 | 17 | public NMap_CmdLine() 18 | { 19 | config( "NMap_CmdLine", 20 | "http://nmap.org/dist/nmap-6.25-win32.zip".uri(), 21 | @"nmap-6.25\nmap.exe"); 22 | 23 | installFromZip_Web(); 24 | } 25 | 26 | 27 | 28 | public Process start() 29 | { 30 | if (isInstalled()) 31 | Executable.parentFolder().startProcess(); 32 | //return Executable.startProcess(); 33 | return null; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /3rdParty/NMap/NMap_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | namespace O2.XRules.Database.APIs 6 | { 7 | public class Install_NMap_Test 8 | { 9 | public void test() 10 | { 11 | new NMap().start(); 12 | } 13 | } 14 | public class NMap : Tool_API 15 | { 16 | public NMap() : this(true) 17 | { 18 | } 19 | 20 | public NMap(bool installNow) 21 | { 22 | config("MNap", "http://nmap.org/dist/nmap-6.25-setup.exe".uri(), "nmap-5.51-setup.exe"); 23 | 24 | //Install_Dir = @"C:\Program Files\Nmap"; 25 | if (installNow) 26 | install(); 27 | } 28 | 29 | 30 | public bool install() 31 | { 32 | "Installing {0}".info(ToolName); 33 | return installFromExe_Web(); 34 | } 35 | 36 | public Process start() 37 | { 38 | if (install()) 39 | return Install_Dir.pathCombine("zenmap.exe").startProcess(); 40 | return null; 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /3rdParty/NMap/xsd_fromNmap_didnt_work/nmap scripts that don't work as expected.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | //O2Tag:SkipGlobalCompilation 4 | 5 | //var topPanel = O2Gui.open<Panel>("{name}",700,400); 6 | var topPanel = panel.clear().add_Panel(); 7 | //var file = "o2platform.com.xml".local(); 8 | 9 | 10 | var nmapSavedFile = @"o2platform.com.xml".local(); 11 | //return nmaprun.Load(nmapSavedFile); // throws exception 12 | var nmap = nmapSavedFile.load<nmaprun>(); //doesn't load the data properly 13 | //return nmap.host; 14 | topPanel.add_SourceCodeViewer() 15 | .set_Text(nmapSavedFile.fileContents().xmlFormat(),".xml"); 16 | topPanel.insert_Left(400,"loaded nmap file") 17 | .add_PropertyGrid() 18 | .show(nmap); 19 | return nmap; 20 | //using tempuri.org.nmap 21 | //O2File:nmap.cs 22 | //O2Ref:O2_Misc_Microsoft_MPL_Libs.dll 23 | 24 | 25 | 26 |

-------------------------------------------------------------------------------- /3rdParty/NodeJS/JS Scripts/Hello World.js: -------------------------------------------------------------------------------- 1 | var hello = function(name) 2 | { 3 | var message = "Hello " + name; 4 | return message; 5 | }; 6 | 7 | var name = "World"; 8 | console.log(hello(name)); -------------------------------------------------------------------------------- /3rdParty/NodeJS/JS Scripts/Simple WebServer II.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var util = require('util'); 3 | 4 | var handleRequest = function(req,res) 5 | { 6 | console.log(req.url); 7 | res.writeHead(200, { 'Content-Type' : 'text/html'}); 8 | res.write(''); 9 | res.write("

Hello from NodeJS

"); 10 | res.write("

Request object

" + util.inspect(req) + "
"); 11 | res.write("

Response object

" + util.inspect(res) + "
"); 12 | res.end(''); 13 | }; 14 | var server = http.createServer(handleRequest); 15 | console.log(server.listen(8125,"127.0.0.1")); 16 | -------------------------------------------------------------------------------- /3rdParty/NodeJS/JS Scripts/Simple WebServer.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | 3 | var handleRequest = function(req,res) 4 | { 5 | console.log("Handling request for: " + req.url); 6 | res.writeHead(200, { 'Content-Type' : 'text/html'}); 7 | res.end('Hello From O2'); 8 | }; 9 | 10 | var server = http.createServer(handleRequest); 11 | server.listen(8125,"127.0.0.1"); 12 | console.log(server); 13 | console.log("Browse to http://127.0.0.1:8125"); 14 | -------------------------------------------------------------------------------- /3rdParty/NodeJS/NodeJS_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class NodeJS_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new NodeJS_Installer().start(); 13 | } 14 | } 15 | public class NodeJS_Installer : Tool_API 16 | { 17 | public NodeJS_Installer() 18 | { 19 | Install_Uri = "http://nodejs.org/dist/v0.8.16/node-v0.8.16-x86.msi".uri(); 20 | Install_File = "node-v0.8.16-x86.msi"; 21 | Install_Dir = ProgramFilesFolder; 22 | Executable = ProgramFilesFolder.pathCombine("NodeJS//node.exe"); 23 | startInstaller_FromMsi_Web(); 24 | } 25 | public Process start() 26 | { 27 | if (isInstalled()) 28 | return Executable.startProcess(); 29 | return null; 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /3rdParty/NodeJS/NodeJS_MSI_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class NodeJS_MSI_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new NodeJS_MSI_Installer().start(); 13 | } 14 | } 15 | public class NodeJS_MSI_Installer : Tool_API 16 | { 17 | public NodeJS_MSI_Installer() 18 | { 19 | config("NodeJS_MSI", 20 | "http://nodejs.org/dist/v0.8.16/node-v0.8.16-x86.msi".uri(), 21 | @"SourceDir\nodejs\node.exe"); 22 | install_JustMsiExtract_into_TargetDir(); 23 | } 24 | public Process start() 25 | { 26 | if (isInstalled()) 27 | return Executable.startProcess(); 28 | return null; 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /3rdParty/NuGet/NuGet_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class NuGet_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new NuGet_Installer().start(); 13 | } 14 | } 15 | public class NuGet_Installer : Tool_API 16 | { 17 | public NuGet_Installer() 18 | { 19 | config("NuGet", 20 | "https://www.nuget.org/nuget.exe".uri(), 21 | "nuget.exe"); 22 | install_JustDownloadFile_into_TargetDir(); 23 | } 24 | 25 | public Process start() 26 | { 27 | if (isInstalled()) 28 | return this.Executable.startProcess(); 29 | return null; 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /3rdParty/NuGet/PoC - download all raw Package info.h2: -------------------------------------------------------------------------------- 1 | //var topPanel = "{name}".popupWindow(700,400); 2 | var targetDir = "_rawNuGetFiles".tempDir(false); 3 | var urlTemplate = "https://nuget.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=Id&$skip={0}&$top={1}" + 4 | "&searchTerm=''&targetFramework=''&includePrerelease=false"; 5 | var start = DateTime.Now; 6 | var top = 30; 7 | var skip = 0; 8 | 9 | targetDir.startProcess(); 10 | 11 | while(skip < 20000) 12 | { 13 | var url = urlTemplate.format(skip, top); 14 | var response = url.GET(); 15 | var file = targetDir.pathCombine("_NuGetData_{0}_to_{1}.txt".format(skip, skip+top)); 16 | response.saveAs(file); 17 | "Data saved to: {0}".info(file.fileName()); 18 | if(response.size() < 500) 19 | { 20 | "Found the end of the line".debug(); 21 | break; 22 | } 23 | skip+= top; 24 | } 25 | 26 | 27 | return start.duration_To_Now(); -------------------------------------------------------------------------------- /3rdParty/OWASP/MediaWiki_Website/Tool - OWASP Wiki Page Edit.h2: -------------------------------------------------------------------------------- 1 | var wikiPageEditor = O2Gui.open("OWASP Wiki Page Editor", 500,500); 2 | var wikiApi = new OwaspWikiAPI(); 3 | wikiPageEditor.buildGui(wikiApi); 4 | 5 | return "ok"; 6 | 7 | //using O2.XRules.Database.APIs 8 | 9 | //O2File:OwaspWikiAPI.cs 10 | //O2File:ascx_MediaWiki_PageEditor_Simple.cs -------------------------------------------------------------------------------- /3rdParty/OWASP/OpenSAMM/Script - Create XSD and CSharp files for SAMM-1.0 file.h2: -------------------------------------------------------------------------------- 1 | //panel.clear(); 2 | //var topPanel = panel; 3 | var topPanel = O2Gui.open("SAMM Xml",400,400); 4 | 5 | var xmlFile = "SAMM-1.0-XML-0.3-en_US.xml".local(); 6 | var xsdFile = xmlFile.replace(".xml",".xsd"); 7 | var csharpFile = xmlFile.replace(".xml",".cs"); 8 | 9 | topPanel.add_SourceCodeViewer().open(xmlFile); 10 | 11 | xmlFile.xmlCreateXSD().saveAs(xsdFile); 12 | if (xsdFile.fileExists()) 13 | { 14 | "Created XSD for Xml File: {0}".info(xmlFile); 15 | xsdFile.xsdCreateCSharpFile() 16 | .fileContents() 17 | .insertBefore("//O2Ref:O2_Misc_Microsoft_MPL_Libs.dll".line()) 18 | .saveAs(csharpFile); 19 | if (csharpFile.fileExists()) 20 | "Created CSharpFile for Xml File: {0}".info(csharpFile); 21 | } 22 | return "done"; 23 | 24 | //using O2.XRules.Database.Utils 25 | //using FluentSharp.XObjects; 26 | //O2File:_Extra_methods_Xml_XSD.cs 27 | //O2Ref:O2_Misc_Microsoft_MPL_Libs.dll -------------------------------------------------------------------------------- /3rdParty/OWASP/SecurityFacts/Security Facts - Keys.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/3rdParty/OWASP/SecurityFacts/Security Facts - Keys.png -------------------------------------------------------------------------------- /3rdParty/OWASP/SecurityFacts/Security Facts.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/3rdParty/OWASP/SecurityFacts/Security Facts.jpg -------------------------------------------------------------------------------- /3rdParty/OWASP/WebScarab/Tool - Convert Conversations into O2Findings.h2: -------------------------------------------------------------------------------- 1 | //panel.clear(); 2 | //var topPanel = panel; 3 | var topPanel = O2Gui.open("Tool - Webscarab: Convert Conversations into O2Findings",1000,400); 4 | var findingsViewer = topPanel.add_FindingsViewer(true); 5 | findingsViewer.setFilter1Value("vulnName"); 6 | var webScarab_Loader = new O2AssesmentLoad_WebScarab(); 7 | ascx_FindingsViewer.o2AssessmentLoadEngines.Clear(); 8 | ascx_FindingsViewer.addO2AssessmentLoadEngine_static(webScarab_Loader); 9 | OunceAvailableEngines.addAvailableEnginesToControl(typeof(ascx_FindingsViewer)); 10 | 11 | //using O2.XRules.Database.APIs 12 | //using O2.XRules.Database.Findings 13 | //using O2.ImportExport.Misc.WebScarab 14 | //using O2.ImportExport.OunceLabs 15 | 16 | //O2File:Findings_ExtensionMethods.cs 17 | //O2File:O2AssesmentLoad_WebScarab.cs 18 | //O2File:OunceAvailableEngines.cs 19 | 20 | //O2Ref:PresentationCore.dll 21 | //O2Ref:PresentationFramework.dll 22 | //O2Ref:WindowsBase.dll 23 | //O2Ref:System.Xaml.dll -------------------------------------------------------------------------------- /3rdParty/OWASP/ZAProxy/ZAProxy_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class ZAProxy_Install_Test 9 | { 10 | public static void test() 11 | { 12 | new ZAProxy_Install().start(); 13 | } 14 | } 15 | 16 | public class ZAProxy_Install : Tool_API 17 | { 18 | public ZAProxy_Install() 19 | { 20 | config("ZAProxy", 21 | "https://zaproxy.googlecode.com/files/ZAP_WEEKLY_D-2013-08-12.zip".url(), 22 | // "https://zaproxy.googlecode.com/files/ZAP_WEEKLY_D-2013-05-20.zip".uri(), 23 | @"ZAP_D-2013-08-12\zap.bat"); 24 | installFromZip_Web(); 25 | } 26 | // 27 | 28 | public Process start() 29 | { 30 | if (this.isInstalled()) 31 | return this.Executable.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/OWASP/owasp_logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/3rdParty/OWASP/owasp_logo.jpg -------------------------------------------------------------------------------- /3rdParty/SecurityInnovation/TeamMentor/Readme.md: -------------------------------------------------------------------------------- 1 | The TeamMentor scripts were moved to it is own repository: https://github.com/TeamMentor/UnitTests -------------------------------------------------------------------------------- /3rdParty/SecurityInnovation/TeamProfessor/IE TeamProfessor - Scripting.h2: -------------------------------------------------------------------------------- 1 | //var topPanel = panel.clear().add_Panel(); 2 | var topPanel = "IE TeamProfessor Scripting".popupWindow(); 3 | var ie = topPanel.add_IE(); 4 | var ieteamProfessor = new IE_TeamProfessor(ie); 5 | ieteamProfessor.homePage(); 6 | return ie.links(); 7 | 8 | 9 | //using O2.XRules.Database.APIs 10 | 11 | //O2File:IE_TeamProfessor.cs 12 | 13 | //using FluentSharp.Watin 14 | //O2Ref:FluentSharp.Watin.dll 15 | //O2Ref:Watin.Core.dll 16 | -------------------------------------------------------------------------------- /3rdParty/SecurityInnovation/TeamProfessor/TeamProfessor.h2: -------------------------------------------------------------------------------- 1 | var popupWindow = "IE Execution GUI - IE TeamProfessor".popupWindow(700,500); 2 | popupWindow.add_IE_ExecutionGui("IE_TeamProfessor.cs"); 3 | 4 | //using O2.XRules.Database.APIs 5 | 6 | //O2File:API_IE_ExecutionGUI.cs 7 | 8 | //using FluentSharp.Watin 9 | //O2Ref:FluentSharp.Watin.dll 10 | //O2Ref:Watin.Core.dll 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /3rdParty/Selenium/Selenium_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Selenium_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new Selenium_Installer().start(); 13 | } 14 | } 15 | public class Selenium_Installer : Tool_API 16 | { 17 | public Selenium_Installer() 18 | { 19 | config("Selenium", 20 | "http://selenium.googlecode.com/files/selenium-dotnet-2.33.0.zip".uri(), 21 | @"Selenium\net40\WebDriver.dll"); 22 | installFromZip_Web(); 23 | } 24 | 25 | 26 | 27 | public Process start() 28 | { 29 | if (isInstalled()) 30 | return this.Executable.parentFolder().startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/TeamMentor/PoC - Open AppHarbor 3.3 dev site.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | "TeamMentor deploy".popupWindow(1000, 500) 4 | .add_WebBrowser_with_NavigationBar() 5 | .open("http://teammentor-3-3.apphb.com"); 6 | 7 |

-------------------------------------------------------------------------------- /3rdParty/TeamMentor/TM_Data/CatNet_Mappings_Embedded.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /3rdParty/TeamMentor/TM_Data/CatNet_Mappings_TM_Embedded.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /3rdParty/TeamMentor/TM_Data/CatNet_Mappings_TM_OWASP.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /3rdParty/TeamMentor/TM_Data/HeaderImage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/3rdParty/TeamMentor/TM_Data/HeaderImage.jpg -------------------------------------------------------------------------------- /3rdParty/TeamMentor/TeamMentor.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/3rdParty/TeamMentor/TeamMentor.ico -------------------------------------------------------------------------------- /3rdParty/TightVNC/TightVNC_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | 9 | public class TightVNC_Installer : Tool_API 10 | { 11 | public TightVNC_Installer() 12 | { 13 | config("TightVNC", 14 | "http://www.tightvnc.com/download/2.6.4/tightvnc-2.6.4-setup-32bit.msi".uri(), 15 | "tvnviewer.exe"); 16 | if (Executable.fileExists().isFalse()) 17 | { 18 | install_JustMsiExtract_into_TargetDir(); 19 | var expectedFile = @"SourceDir\PFiles\TightVNC\tvnviewer.exe"; 20 | var vncViewer = this.Install_Dir.pathCombine(expectedFile); 21 | if(vncViewer.fileExists()) 22 | vncViewer.file_Copy(this.Install_Dir); 23 | else 24 | "Failed to find file at: {0}".error(expectedFile); 25 | } 26 | } 27 | 28 | public Process start() 29 | { 30 | if (isInstalled()) 31 | return Executable.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Cassini_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Cassini_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new Cassini_Installer().start(); 13 | } 14 | } 15 | public class Cassini_Installer : Tool_API 16 | { 17 | public Cassini_Installer() 18 | { 19 | config("Cassini", 20 | "CassiniDev 3.5.1.8-4.1.0.8 release.zip", 21 | "http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=cassinidev&DownloadId=123473&FileTime=129287707016900000&Build=20006".uri(), 22 | @"deploy\Debug\WebDev.WebServer40.exe"); 23 | installFromZip_Web(); 24 | } 25 | public Process start() 26 | { 27 | if (isInstalled()) 28 | return this.Executable.startProcess(); 29 | return null; 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/DebugView.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class DebugView_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new DebugView_Installer().start(); 13 | } 14 | } 15 | 16 | public class DebugView_Installer : Tool_API 17 | { 18 | public DebugView_Installer() 19 | { 20 | config("DebugView", 21 | "http://download.sysinternals.com/files/DebugView.zip".uri(), 22 | "Dbgview.exe"); 23 | installFromZip_Web(); 24 | } 25 | 26 | public Process start() 27 | { 28 | if (isInstalled()) 29 | this.Executable.startProcess(); 30 | return null; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /3rdParty/_Installers/DreamPie.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | namespace O2.XRules.Database.APIs 6 | { 7 | public class DreamPie_Install_Test 8 | { 9 | public static void test() 10 | { 11 | new DreamPie_Install().start(); 12 | } 13 | } 14 | 15 | public class DreamPie_Install : Tool_API 16 | { 17 | public DreamPie_Install() 18 | { 19 | Install_Uri = "http://launchpad.net/dreampie/trunk/1.1.1/+download/dreampie-1.1.1-setup.exe".uri(); 20 | Install_File = "dreampie-1.1.1-setup.exe"; 21 | Install_Dir = ProgramFilesFolder; 22 | Executable = ProgramFilesFolder.pathCombine("DreamPie//dreampie.exe"); 23 | 24 | startInstaller_FromMsi_Web(); 25 | } 26 | // 27 | 28 | public Process start() 29 | { 30 | if (this.isInstalled()) 31 | return this.Executable.startProcess(@"C:\Python27\python.exe"); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Git_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Git_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new Git_Installer().start(); 13 | } 14 | } 15 | public class Git_Installer : Tool_API 16 | { 17 | public Git_Installer() 18 | { 19 | config("Git", 20 | "https://msysgit.googlecode.com/files/Git-1.8.1.2-preview20130201.exe".uri(), 21 | ProgramFilesFolder.pathCombine(@"git\bin\sh.exe")); 22 | //InstallProcess_Arguments = "/SILENT"; 23 | installFromMsi_Web(); 24 | } 25 | public Process start() 26 | { 27 | if (isInstalled()) 28 | return this.Executable.startProcess("--login -i"); 29 | return null; 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Gource_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | using FluentSharp.WinForms; 4 | 5 | //O2File:Tool_API.cs 6 | 7 | namespace O2.XRules.Database.APIs 8 | { 9 | public class Gource_Installer_Test 10 | { 11 | public static void launch() 12 | { 13 | new Gource_Installer().start(); 14 | } 15 | } 16 | public class Gource_Installer : Tool_API 17 | { 18 | 19 | public Gource_Installer() 20 | { 21 | config("gource", 22 | "https://gource.googlecode.com/files/gource-0.40.win32.zip".uri(), 23 | "gource.exe"); 24 | 25 | installFromZip_Web(); 26 | } 27 | 28 | public Process start() 29 | { 30 | if (isInstalled()) 31 | { 32 | var path = "What is the path of the repo to view".askUser(); 33 | if (path.dirExists()) 34 | return this.Executable.startProcess(path); 35 | } 36 | return null; 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Grails_Tool_Suite_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class GrailsToolSuite_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new GrailsToolSuite_Installer().start(); 13 | } 14 | } 15 | 16 | public class GrailsToolSuite_Installer : Tool_API 17 | { 18 | public GrailsToolSuite_Installer() 19 | { 20 | config("Grails Tool Suite", 21 | "http://download.springsource.com/release/STS/3.3.0/dist/e4.3/groovy-grails-tool-suite-3.3.0.RELEASE-e4.3-win32.zip".uri(), 22 | "ReactOS-0.3.15-QEMU\\boot.bat"); 23 | installFromZip_Web(); 24 | } 25 | 26 | public Process start() 27 | { 28 | if (isInstalled()) 29 | this.Executable.startProcess(); 30 | return null; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /3rdParty/_Installers/IIS_Express_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class IIS_Express_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new IIS_Express_Installer().start(); 13 | } 14 | } 15 | public class IIS_Express_Installer : Tool_API 16 | { 17 | public IIS_Express_Installer() 18 | { 19 | config("IIS Express", 20 | "http://download.microsoft.com/download/D/C/4/DC4EC38C-A6AA-449D-9B19-7ABC6DF72B34/iisexpress_1_11_x86_en-US.msi".uri(), 21 | "IIS.exe"); 22 | InstallProcess_Arguments = ""; 23 | install_JustMsiExtract_into_TargetDir(); 24 | } 25 | public Process start() 26 | { 27 | if (isInstalled()) 28 | return this.Executable.startProcess(); 29 | return null; 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Install_Perl.cs: -------------------------------------------------------------------------------- 1 | using FluentSharp.CoreLib; 2 | 3 | //O2File:Tool_API.cs 4 | 5 | namespace O2.XRules.Database.APIs 6 | { 7 | public class Install_Perl : Tool_API 8 | { 9 | public string localDownloadFile = @"C:\Documents and Settings\Administrator\My Documents\Downloads\strawberry-perl-5.12.1.0.msi"; 10 | 11 | public Install_Perl() 12 | { 13 | ToolName = "Perl"; 14 | Version = "Strawberry Perl 5.12.0"; 15 | Install_File = "strawberry-perl-5.12.1.0.msi"; 16 | VersionWebDownload = "http://strawberryperl.com/download/5.12.2.0/strawberry-perl-5.12.2.0.msi"; 17 | Install_Dir = @"C:\strawberry\"; 18 | } 19 | 20 | 21 | public bool install() 22 | { 23 | "Installing Perl".info(); 24 | return installFromMsi_Web(localDownloadFile); 25 | } 26 | 27 | } 28 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Installer_AppScan_SDK.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Installer_AppScan_SDK_Test 9 | { 10 | public void test() 11 | { 12 | new Installer_AppScan_SDK().start(); 13 | } 14 | } 15 | public class Installer_AppScan_SDK : Tool_API 16 | { 17 | 18 | public Installer_AppScan_SDK() 19 | { 20 | config("AppScanSDK", 21 | "http://public.dhe.ibm.com/software/dw/rational/zip/AppScanSDK.zip".uri(), 22 | "AppScanSDK.chm"); 23 | install(); 24 | } 25 | 26 | 27 | public bool install() 28 | { 29 | if (isInstalled().isFalse()) 30 | { 31 | "Installing {0}".info(ToolName); 32 | return installFromZip_Web(); 33 | } 34 | return true; 35 | } 36 | 37 | public Process start() 38 | { 39 | if (install()) 40 | return Executable.startProcess(); 41 | return null; 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/MS_SqlServer.cs: -------------------------------------------------------------------------------- 1 | //O2File:Tool_API.cs 2 | 3 | namespace O2.XRules.Database.APIs 4 | { 5 | public class MS_SqlServer_Test : Tool_API 6 | { 7 | public static void test() 8 | { 9 | new MS_SqlServer().install(); 10 | } 11 | } 12 | public class MS_SqlServer : Tool_API 13 | { 14 | public MS_SqlServer() 15 | { 16 | ToolName = "SqlServer"; 17 | Version = "SqlServer Express 2008"; 18 | Install_File = "SQLEXPR32_x86_ENU.exe"; 19 | Install_Dir = @"C:\Program Files\Microsoft SQL Server\test"; 20 | VersionWebDownload = "http://www.microsoft.com/downloads/info.aspx?na=46&SrcFamilyId=01AF61E6-2F63-4291-BCAD-FD500F6027FF&SrcDisplayLang=en&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f8%2fE%2f5%2f8E53FAA8-1129-4621-903F-3F8DB6D066AC%2fSQLEXPR32_x86_ENU.exe"; 21 | } 22 | 23 | 24 | public bool install() 25 | { 26 | return installFromMsi_Web(); 27 | } 28 | 29 | } 30 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/MySql_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class MySql_Install_Test 9 | { 10 | public static void test() 11 | { 12 | new MySql_Install().start(); 13 | } 14 | } 15 | 16 | public class MySql_Install : Tool_API 17 | { 18 | public MySql_Install() 19 | { 20 | config("MySql", 21 | "http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.11-win32.zip".uri(), 22 | @"mysql-5.6.11-win32\bin\mysql.exe"); 23 | installFromZip_Web(); 24 | } 25 | // 26 | 27 | public Process start() 28 | { 29 | if (this.isInstalled()) 30 | return this.Executable.startProcess("--help"); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/OWASP_ESAPI_Installer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using FluentSharp.CoreLib; 4 | 5 | //O2File:Tool_API.cs 6 | 7 | namespace O2.XRules.Database.APIs 8 | { 9 | public class ESAPI_Installer_Test 10 | { 11 | public void test() 12 | { 13 | new ESAPI_Installer().start(); 14 | } 15 | } 16 | public class ESAPI_Installer : Tool_API 17 | { 18 | 19 | public ESAPI_Installer() 20 | { 21 | config("OWASP_ESAPI", 22 | "https://owasp-esapi-java.googlecode.com/files/esapi-2.1.0-dist.zip".uri(), 23 | "esapi-2.1.0.jar"); 24 | installFromZip_Web(); 25 | } 26 | 27 | 28 | public Process start() 29 | { 30 | if (this.isInstalled()) 31 | return this.Install_Dir.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/OpenFire.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class OpenFire_Installer_Test 9 | { 10 | public static void launch() 11 | { 12 | new OpenFire_Installer().start(); 13 | } 14 | } 15 | public class OpenFire_Installer : Tool_API 16 | { 17 | 18 | public OpenFire_Installer() 19 | { 20 | config("OpenFire", 21 | "http://download.igniterealtime.org/openfire/openfire_3_8_2.zip".uri(), 22 | "openfire/bin/openfire.exe"); 23 | 24 | installFromZip_Web(); 25 | } 26 | 27 | public Process start() 28 | { 29 | if (isInstalled()) 30 | { 31 | this.Executable.startProcess(); 32 | "http://localhost:9090".startProcess(); 33 | } 34 | return null; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/PdfCreator.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class PdfCreator_Install_Test 9 | { 10 | public static void test() 11 | { 12 | new PdfCreator_Install().start(); 13 | } 14 | } 15 | 16 | public class PdfCreator_Install : Tool_API 17 | { 18 | public PdfCreator_Install() 19 | { 20 | config("PdfCreator", 21 | "http://green.download.pdfforge.org/pdfcreator/1.4.0/PDFCreator-1_4_0_setup.exe".uri(), 22 | "PdfCreator.exe"); 23 | DownloadedInstallerFile = download(Install_Uri); 24 | DownloadedInstallerFile.startProcess(); 25 | } 26 | // 27 | 28 | public Process start() 29 | { 30 | if (this.isInstalled()) 31 | return this.Executable.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Peach_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Peach_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new Peach_Installer().start(); 13 | } 14 | } 15 | public class Peach_Installer : Tool_API 16 | { 17 | public Peach_Installer() 18 | { 19 | config("Peach", 20 | "http://freefr.dl.sourceforge.net/project/peachfuzz/Peach/3.0%20Nightly/peach-3.0.207-win-x86-release.zip".uri(), 21 | @"deploy\Debug\WebDev.WebServer40.exe"); 22 | installFromZip_Web(); 23 | } 24 | public Process start() 25 | { 26 | if (isInstalled()) 27 | return this.Executable.startProcess(); 28 | return null; 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/ProcessMonitor.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | namespace O2.XRules.Database.APIs 6 | { 7 | public class Install_PM_Test 8 | { 9 | public void test() 10 | { 11 | new ProcessMonitor().start(); 12 | } 13 | } 14 | public class ProcessMonitor : Tool_API 15 | { 16 | public ProcessMonitor() : this(true) 17 | { 18 | } 19 | 20 | public ProcessMonitor(bool installNow) 21 | { 22 | config("ProcessMonitor", "ProcessMonitor v14.1", "ProcessMonitor.zip"); 23 | Install_Uri = "http://download.sysinternals.com/files/ProcessMonitor.zip".uri(); 24 | if (installNow) 25 | install(); 26 | } 27 | 28 | 29 | public bool install() 30 | { 31 | "Installing {0}".info(ToolName); 32 | return installFromZip_Web(); 33 | } 34 | 35 | public Process start() 36 | { 37 | if (install()) 38 | return Install_Dir.pathCombine("procmon.exe").startProcess(); 39 | return null; 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Putty.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | namespace O2.XRules.Database.APIs 6 | { 7 | public class Install_Putty_Test 8 | { 9 | public void test() 10 | { 11 | new Putty().start(); 12 | } 13 | } 14 | public class Putty : Tool_API 15 | { 16 | public Putty() : this(true) 17 | { 18 | } 19 | 20 | public Putty(bool installNow) 21 | { 22 | config("Putty", "Putty 0.61", "putty.zip"); 23 | Install_Uri = "http://the.earth.li/~sgtatham/putty/latest/x86/putty.zip".uri(); 24 | if (installNow) 25 | install(); 26 | } 27 | 28 | 29 | public bool install() 30 | { 31 | "Installing {0}".info(ToolName); 32 | return installFromZip_Web(); 33 | } 34 | 35 | public Process start() 36 | { 37 | if (install()) 38 | return Install_Dir.pathCombine("Putty.exe").startProcess(); 39 | return null; 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/PyScripter.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class PyScripter_Test 9 | { 10 | public static void test() 11 | { 12 | new PyScripter().start(); 13 | } 14 | } 15 | 16 | public class PyScripter : Tool_API 17 | { 18 | public PyScripter() 19 | { 20 | 21 | config("PyScripter", 22 | "http://pyscripter.googlecode.com/files/PyScripter-v2.5.3.zip".uri(), 23 | "PyScripter\\PyScripter.exe"); 24 | installFromZip_Web(); 25 | } 26 | //http://download.codeplex.com/Download/Release?ProjectName=ironpython&DownloadId=352994&FileTime=129760937686670000&Build=18978 27 | 28 | public Process start() 29 | { 30 | if (this.isInstalled()) 31 | return this.Executable.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Python_2.7.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Python_Install_2_7_Test 9 | { 10 | public static void test() 11 | { 12 | new Python_Install_2_7().start(); 13 | } 14 | } 15 | 16 | public class Python_Install_2_7 : Tool_API 17 | { 18 | public Python_Install_2_7() 19 | { 20 | config("Python-2.7", 21 | "http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi".uri(), 22 | @"C:\Python27\python.exe"); 23 | 24 | startInstaller_FromMsi_Web(); 25 | 26 | } 27 | 28 | public Process start() 29 | { 30 | if (this.isInstalled()) 31 | return this.Executable.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Python_3.2.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Python_Install_3_2_Test 9 | { 10 | public static void test() 11 | { 12 | new Python_Install_3_2().start(); 13 | } 14 | } 15 | 16 | public class Python_Install_3_2 : Tool_API 17 | { 18 | public Python_Install_3_2() 19 | { 20 | Install_Uri = "http://www.python.org/ftp/python/3.2.3/python-3.2.3.msi".uri(); 21 | Install_File = "python-3.2.3.msi"; 22 | Install_Dir = @"C:\Python32\"; 23 | Executable = Install_Dir.pathCombine("python.exe"); 24 | startInstaller_FromMsi_Web(); 25 | } 26 | // 27 | 28 | public Process start() 29 | { 30 | if (this.isInstalled()) 31 | return this.Executable.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Python_3.3.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Python_Install_3_3_Test 9 | { 10 | public static void test() 11 | { 12 | new Python_Install_3_3().start(); 13 | } 14 | } 15 | 16 | public class Python_Install_3_3 : Tool_API 17 | { 18 | public Python_Install_3_3() 19 | { 20 | config("Python", 21 | "http://www.python.org/ftp/python/3.3.2/python-3.3.2.msi".uri(), 22 | @"C:\Python33\python.exe"); 23 | 24 | startInstaller_FromMsi_Web(); 25 | } 26 | 27 | public Process start() 28 | { 29 | if (this.isInstalled()) 30 | return this.Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/ReactOS_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class ReactOS_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new ReactOS_Installer().start(); 13 | } 14 | } 15 | 16 | public class ReactOS_Installer : Tool_API 17 | { 18 | public ReactOS_Installer() 19 | { 20 | config("ReactOS", 21 | "http://kent.dl.sourceforge.net/project/reactos/ReactOS/0.3.15/ReactOS-0.3.15-REL-QEMU.zip".uri(), 22 | "ReactOS-0.3.15-QEMU\\boot.bat"); 23 | installFromZip_Web(); 24 | } 25 | 26 | public Process start() 27 | { 28 | if (isInstalled()) 29 | this.Executable.startProcess(); 30 | return null; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /3rdParty/_Installers/Sandcastle_Installer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using FluentSharp.CoreLib; 4 | 5 | //O2File:Tool_API.cs 6 | 7 | namespace O2.XRules.Database.APIs 8 | { 9 | public class Sandcastle_Installer_test 10 | { 11 | public void test() 12 | { 13 | new Sandcastle_Installer().start(); 14 | } 15 | } 16 | public class Sandcastle_Installer : Tool_API 17 | { 18 | 19 | public Sandcastle_Installer() 20 | { 21 | config("Sandcastle", 22 | "SHFBGuidedInstaller_1970.zip", 23 | buildCodePlexDownloadUri("shfb", 652438, 130098389357400000).uri(), 24 | "doxygen.exe"); 25 | installFromZip_Web(); 26 | } 27 | 28 | 29 | public Process start() 30 | { 31 | if (this.isInstalled()) 32 | return this.Install_Dir.startProcess(); 33 | return null; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Scratch.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Scratch_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new Scratch_Installer().start(); 13 | } 14 | } 15 | public class Scratch_Installer : Tool_API 16 | { 17 | public Scratch_Installer() 18 | { 19 | config("Scratch", 20 | "http://download.scratch.mit.edu/WinScratch1.4.zip".uri(), 21 | @"WinScratch1.4\Scratch\Scratch.exe"); 22 | installFromZip_Web(); 23 | } 24 | 25 | public Process start() 26 | { 27 | if (isInstalled()) 28 | return Executable.startProcess(); 29 | return null; 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Spark.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Spark_Installer_Test 9 | { 10 | public static void launch() 11 | { 12 | new Spark_Installer().start(); 13 | } 14 | } 15 | public class Spark_Installer : Tool_API 16 | { 17 | 18 | public Spark_Installer() 19 | { 20 | config("Spark", 21 | "http://download.igniterealtime.org/spark/spark_2_6_3.exe".uri(), 22 | //"http://download.igniterealtime.org/spark/online/spark_2_6_3_online.exe".uri(), 23 | ProgramFilesFolder.pathCombine(@"Spark\\Spark.exe")); 24 | 25 | installFromExe_Web(); 26 | } 27 | 28 | public Process start() 29 | { 30 | if (isInstalled()) 31 | this.Executable.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Sqlite_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Sqlite_Install_Test 9 | { 10 | public static void test() 11 | { 12 | new Sqlite_Install().start(); 13 | } 14 | } 15 | 16 | public class Sqlite_Install : Tool_API 17 | { 18 | public Sqlite_Install() 19 | { 20 | config("sqlite", 21 | "http://www.sqlite.org/2013/sqlite-shell-win32-x86-3071700.zip".uri(), 22 | @"sqlite3.exe"); 23 | installFromZip_Web(); 24 | } 25 | // 26 | 27 | public Process start() 28 | { 29 | if (this.isInstalled()) 30 | return this.Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/SublimeText.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class SublimeText_Installer_Test 9 | { 10 | public static void launch() 11 | { 12 | new SublimeText_Installer().start(); 13 | } 14 | } 15 | public class SublimeText_Installer : Tool_API 16 | { 17 | 18 | public SublimeText_Installer() 19 | { 20 | config("SublimeText", 21 | "http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1%20x64.zip".uri(), 22 | "sublime_text.exe"); 23 | 24 | installFromZip_Web(); 25 | } 26 | 27 | public Process start() 28 | { 29 | if (isInstalled()) 30 | { 31 | this.Executable.startProcess(); 32 | } 33 | return null; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Sumatra_PDF.cs: -------------------------------------------------------------------------------- 1 | using FluentSharp.CoreLib; 2 | //O2File:Tool_API.cs 3 | 4 | namespace O2.XRules.Database.APIs 5 | { 6 | public class Sumatra_PDF_Test 7 | { 8 | public void test() 9 | { 10 | new Sumatra_PDF(); 11 | } 12 | } 13 | public class Sumatra_PDF : Tool_API 14 | { 15 | public Sumatra_PDF() : this(true) 16 | { 17 | } 18 | 19 | public Sumatra_PDF(bool installNow) 20 | { 21 | config("Sumatra PDF", "Sumatra PDF v2.2.1", "SumatraPDF-2.2.1-install.exe"); 22 | Install_Uri = "https://kjkpub.s3.amazonaws.com/sumatrapdf/rel/SumatraPDF-2.2.1-install.exe".uri(); 23 | if (installNow) 24 | install(); 25 | } 26 | 27 | 28 | public bool install() 29 | { 30 | "Installing {0}".info(ToolName); 31 | return installFromMsi_Web(); 32 | } 33 | 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/TCPView.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Install_TcpView_Test 9 | { 10 | public void test() 11 | { 12 | new TcpView().start(); 13 | } 14 | } 15 | public class TcpView : Tool_API 16 | { 17 | public TcpView() : this(true) 18 | { 19 | } 20 | 21 | public TcpView(bool installNow) 22 | { 23 | config("TcpView", 24 | "http://download.sysinternals.com/files/TCPView.zip".uri(), 25 | @"tcpview.exe"); 26 | installFromZip_Web(); 27 | 28 | /*config("TcpView", "TcpView v3.05", "TCPView.zip"); 29 | Install_Uri = "http://download.sysinternals.com/files/TCPView.zip".uri(); 30 | if (installNow) 31 | install(); */ 32 | } 33 | 34 | public Process start() 35 | { 36 | if (isInstalled()) 37 | return this.Executable.startProcess(); 38 | return null; 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/ThreatModeler.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class ThreatModeler_Install_Test 9 | { 10 | public static void test() 11 | { 12 | new ThreatModeler_Install().start(); 13 | } 14 | } 15 | 16 | public class ThreatModeler_Install : Tool_API 17 | { 18 | public ThreatModeler_Install() 19 | { 20 | config("ThreatModeler", 21 | "http://www.myappsecurity.com/ThreatModelerSetup.msi".uri(), 22 | "SourceDir\\ThreatModeler.exe"); 23 | install_JustMsiExtract_into_TargetDir(); 24 | } 25 | // 26 | 27 | public Process start() 28 | { 29 | if (this.isInstalled()) 30 | return this.Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/Vim.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class Vim_Install_Test 9 | { 10 | public static void test() 11 | { 12 | new Vim_Install().start(); 13 | } 14 | } 15 | 16 | public class Vim_Install : Tool_API 17 | { 18 | public Vim_Install() 19 | { 20 | config("Vim", 21 | "http://ftp.vim.org/pub/vim/pc/gvim73_46.exe".uri(), 22 | "vim.exe"); 23 | DownloadedInstallerFile = download(Install_Uri); 24 | DownloadedInstallerFile.startProcess(); 25 | } 26 | // 27 | 28 | public Process start() 29 | { 30 | if (this.isInstalled()) 31 | return this.Executable.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/WireShark.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class WireShark_Install_Test 9 | { 10 | public static void test() 11 | { 12 | new WireShark_Install().start(); 13 | } 14 | } 15 | 16 | public class WireShark_Install : Tool_API 17 | { 18 | public WireShark_Install() 19 | { 20 | config("WireShark", 21 | "http://wiresharkdownloads.riverbed.com/wireshark/win32/Wireshark-win32-1.10.0.exe".uri(), 22 | ProgramFilesFolder.pathCombine(@"WireShark/Wireshark.exe")); 23 | 24 | startInstaller_FromMsi_Web(); 25 | 26 | } 27 | 28 | public Process start() 29 | { 30 | if (this.isInstalled()) 31 | return this.Executable.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /3rdParty/_Installers/yEd.cs: -------------------------------------------------------------------------------- 1 | using FluentSharp.CoreLib; 2 | 3 | //O2File:Tool_API.cs 4 | 5 | namespace O2.XRules.Database.APIs 6 | { 7 | public class yEd_Install_Test 8 | { 9 | public static void test() 10 | { 11 | new yEd_Install();//.start(); 12 | } 13 | } 14 | 15 | public class yEd_Install : Tool_API 16 | { 17 | public yEd_Install() 18 | { 19 | config("yEd", 20 | "http://www.yworks.com/products/yed/demo/yEd-3.9.2_setup.exe".uri(), 21 | "yEd.exe"); 22 | DownloadedInstallerFile = download(Install_Uri); 23 | DownloadedInstallerFile.startProcess(); 24 | } 25 | // 26 | 27 | /*public Process start() 28 | { 29 | if (this.isInstalled()) 30 | return this.Executable.startProcess(); 31 | return null; 32 | } */ 33 | } 34 | } -------------------------------------------------------------------------------- /3rdParty/cURL/cUrl_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class cURL_Install_Test 9 | { 10 | public static void test() 11 | { 12 | new cURL_Install().start(); 13 | } 14 | } 15 | 16 | public class cURL_Install : Tool_API 17 | { 18 | public cURL_Install() 19 | { 20 | config("cURL", 21 | "http://curl.haxx.se/gknw.net/7.26.0/dist-w32/curl-7.26.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32.zip".uri(), 22 | @"curl-7.26.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\curl.exe"); 23 | installFromZip_Web(); 24 | } 25 | // 26 | 27 | public Process start() 28 | { 29 | if (this.isInstalled()) 30 | return this.Executable.startProcess("--help"); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /APIs/Azure/Using WebREPL/PoC - REPL in Azure.h2: -------------------------------------------------------------------------------- 1 | var apiAzure = new API_Azure_via_WebREPL("owasp-ansa.azurewebsites.net"); 2 | var scriptMe = apiAzure.script_Me("replAzuze"); 3 | //var scriptMe = panel.add_Panel(true).add_Script_Me(apiAzure); 4 | scriptMe.parentForm().set_Text("PoC - REPL in Azure"); 5 | 6 | //using O2.XRules.Database.APIs 7 | 8 | //O2File:API_Azure_via_WebREPL.cs -------------------------------------------------------------------------------- /APIs/C# REPL/Util - Text Based C# REPL.h2: -------------------------------------------------------------------------------- 1 | var topPanel = "Util - Text Based C# REPL".popupWindow(800,400) 2 | .insert_LogViewer(); 3 | //var topPanel = panel.clear().add_Panel(); 4 | 5 | var replGui = topPanel.add_REPL_Gui(); 6 | 7 | var codeText = replGui.Code_Panel.add_TextArea().allowTabs(); 8 | 9 | Action execute = 10 | ()=>{ 11 | var compilationOk = false; 12 | var code = codeText.get_Text(); 13 | var result = code.compileAndExecuteCodeSnippet( 14 | (okMsg)=> { replGui.showOutput(okMsg); compilationOk = true;}, 15 | (failMsg)=> { replGui.showErrorMessage(failMsg); }); 16 | if(compilationOk) 17 | replGui.showOutput(result); 18 | //replGui.Output_RichTextBox.set_Text(code); 19 | }; 20 | 21 | replGui.On_ExecuteCode = execute; 22 | 23 | codeText.set_Text("return \"Hello World\";"); 24 | 25 | replGui.Execute_Button.click(); 26 | 27 | return "done"; 28 | 29 | //O2Package:scripts.ico -------------------------------------------------------------------------------- /APIs/CWE/API_CWE.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | using System; 3 | using System.Threading; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Reflection; 7 | using System.Windows.Forms; 8 | using System.Diagnostics; 9 | using System.Text; 10 | 11 | namespace O2.XRules.Database.APIs 12 | { 13 | public class API_CWE 14 | { 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /APIs/CWE/CWE_Data.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | using System; 3 | using System.Xml.Serialization; 4 | using System.Collections.Generic; 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | [Serializable] 9 | public class CWE_Data 10 | { 11 | public List Weaknesses { get; set; } 12 | 13 | public CWE_Data() 14 | { 15 | Weaknesses = new List(); 16 | } 17 | } 18 | 19 | public class CWE_Weakness 20 | { 21 | [XmlAttribute] public string Title { get; set;} 22 | [XmlAttribute] public string Technology { get; set;} 23 | [XmlAttribute] public string Phase { get; set;} 24 | [XmlAttribute] public string Type { get; set;} 25 | [XmlAttribute] public string Category { get; set;} 26 | [XmlElement] public string Content { get; set;} 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /APIs/Cir Tools/Util - Cir Viewer (with C# DLL converter).h2: -------------------------------------------------------------------------------- 1 | if (O2AscxGUI.launch("Util - Cir Viewer (with C# DLL converter)")) 2 | { 3 | HandleO2MessageOnSD.setO2MessageFileEventListener(); 4 | O2AscxGUI.addControlToMenu(typeof(ascx_Scripts)); 5 | O2AscxGUI.openAscx(typeof(ascx_CirDataViewer), O2DockState.Document, "Cir Viewer"); 6 | } 7 | 8 | 9 | 10 | //using FluentSharp.WinFormUI.Utils 11 | //using O2.Core.CIR.Ascx 12 | //O2Ref:O2_Core_CIR.dll 13 | //O2Ref:O2_External_O2Mono.dll 14 | //O2Ref:Mono.Cecil.Pdb.dll -------------------------------------------------------------------------------- /APIs/EventBrite/API_EventBrite.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/APIs/EventBrite/API_EventBrite.cs -------------------------------------------------------------------------------- /APIs/Findings_Filtering/Util - Findings Viewer with REPL.h2: -------------------------------------------------------------------------------- 1 | //var topPanel = panel.add_Panel(true); 2 | var topPanel = O2Gui.open("Util - Findings Viewer with REPL",400,400); 3 | var findingsViewer = topPanel.add_FindingsViewer(); 4 | 5 | topPanel.mainMenu().clear().add_Menu("REPL") 6 | .add_MenuItem(" REPL Findings Viewer", ()=> findingsViewer.script_Me("findingsViewer")) 7 | .add_MenuItem("Find control to REPL", ()=> new API_HawkEye().openControlFinder()); 8 | 9 | return topPanel; 10 | 11 | //using O2.XRules.Database.APIs 12 | //using O2.XRules.Database.Findings 13 | //O2File:Findings_ExtensionMethods.cs 14 | //O2File:API_HawkEye.cs 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /APIs/Findings_Filtering/Util - Simple Findings Viewer (with code viewer).h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | var topPanel = O2Gui.open<Panel>("Simple Findings Viewer (with code viewer)",1000,400); 4 | var findingsViewer = topPanel.add_FindingsViewer(true); 5 | 6 | topPanel.mainMenu().add_Menu("REPL") 7 | .add_MenuItem("REPL findingsViewer", ()=>findingsViewer.script_Me("findingsViewer")) 8 | .add_MenuItem("REPL Form", ()=>findingsViewer.parentForm().script_Me("form")); 9 | 10 | //using O2.XRules.Database.Findings 11 | //O2File:Findings_ExtensionMethods.cs 12 | 13 |

-------------------------------------------------------------------------------- /APIs/Findings_Filtering/Util - Simple Findings Viewer.h2: -------------------------------------------------------------------------------- 1 | ascx_FindingsViewer.o2AssessmentLoadEngines.clear(); 2 | 3 | var topPanel = O2Gui.open("Simple Findings Viewer",400,400); 4 | var findingsViewer = topPanel.add_FindingsViewer(); 5 | 6 | topPanel.mainMenu().add_Menu("REPL") 7 | .add_MenuItem("REPL findingsViewer", ()=>findingsViewer.script_Me("findingsView").set_Code("return findingsView.currentO2Findings;")) 8 | .add_MenuItem("REPL Form", ()=>findingsViewer.parentForm().script_Me("form")); 9 | 10 | //using O2.XRules.Database.Findings 11 | //O2File:Findings_ExtensionMethods.cs -------------------------------------------------------------------------------- /APIs/Groovy/API_Groovy.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | using System; 3 | using System.IO; 4 | using FluentSharp.CoreLib; 5 | //using FluentSharp.CoreLib.API; 6 | 7 | //using O2.XRules.Database.Languages_and_Frameworks.DotNet; 8 | 9 | //Installer:IKVM_Installer.cs!IKVM\ikvm-7.2.4630.5\bin\ikvm.exe 10 | //Installer:Groovy_Installer.cs!Groovy\groovy-2.1.6\bin\groovyConsole.bat 11 | 12 | //namespace O2.XRules.Database.APIs.IKVM 13 | namespace FluentSharp.CoreLib.API 14 | { 15 | public class API_Groovy 16 | { 17 | 18 | } 19 | } -------------------------------------------------------------------------------- /APIs/Groovy/Util - Groovy - Start Native Console UI.h2: -------------------------------------------------------------------------------- 1 | new API_IKVMC(); // ensure all required IKVM assemblies are loaded 2 | 3 | var args = new string[] {}; // no arguments passed 4 | groovy.ui.Console.main(args); // starts Groovy console UI 5 | 6 | //O2Ref:Groovy\DotNet_IKVM\groovy-all-2.1.6.dll 7 | //O2Ref:IKVM.OpenJDK.Core.dll 8 | //O2Ref:IKVM.OpenJDK.SwingAWT.dll 9 | //O2File:API_IKVMC.cs 10 | //using O2.XRules.Database.APIs.IKVM -------------------------------------------------------------------------------- /APIs/Groovy/Util - Simple Groovy Shell.h2: -------------------------------------------------------------------------------- 1 | new API_IKVMC(); 2 | 3 | var topPanel = "Util - Simple Groovy Shell".popupWindow(700,400); 4 | //var topPanel = panel.clear().add_Panel(); 5 | var replUI = topPanel.add_REPL_Gui(); 6 | var code = replUI.Code_Panel.add_SourceCodeViewer(); 7 | 8 | var groovyShell = new groovy.lang.GroovyShell(); 9 | replUI.On_ExecuteCode = 10 | ()=>{ 11 | try 12 | { 13 | var result = groovyShell.evaluate(code.get_Text()); 14 | replUI.showOutput(result.str()); 15 | } 16 | catch(Exception ex) 17 | { 18 | replUI.showOutput(ex.Message + " : " + ex.StackTrace); 19 | } 20 | }; 21 | 22 | code.set_Text("java.lang.System.getProperties();"); 23 | replUI.Execute_Button.click(); 24 | 25 | //O2File:API_IKVMC.cs 26 | //O2Ref:IKVM\ikvm-7.2.4630.5\bin\IKVM.OpenJDK.Core.dll 27 | //O2Ref:Groovy\DotNet_IKVM\groovy-all-2.1.6.dll 28 | //using O2.XRules.Database.APIs.IKVM -------------------------------------------------------------------------------- /APIs/HtmlAgilityPack/HtmlAgilityPack - Filter Html Code (using IE).h2: -------------------------------------------------------------------------------- 1 | var topPanel = "HtmlAgilityPack - Filter Html Code".popupWindow(); 2 | //var topPanel = panel.clear().add_Panel(); 3 | var treeView = topPanel.insert_Right("XPath query result") 4 | .add_TreeView_for_HtmlTags(); 5 | 6 | var ie = topPanel.add_GroupBox("Browser").add_WebBrowser().silent(true); 7 | 8 | ie.open("http://demo.testfire.net").waitForCompleted(); 9 | 10 | var htmlContent = ie.html(); 11 | 12 | var query = "//tr"; 13 | 14 | treeView.add_Nodes(htmlContent.htmlDocument().select(query)); 15 | 16 | 17 | //using O2.XRules.Database.Utils 18 | //using FluentSharp.For_HtmlAgilityPack 19 | 20 | //O2File:HtmlAgilityPack_Extra_ExtensionMethods.cs 21 | //O2Ref:O2_Misc_Microsoft_MPL_Libs.dll -------------------------------------------------------------------------------- /APIs/HtmlAgilityPack/HtmlAgilityPack - Filter Html Code.h2: -------------------------------------------------------------------------------- 1 | //var topPanel = panel.clear().add_Panel(); 2 | var topPanel = "HtmlAgilityPack - Filter Html Code".popupWindow(); 3 | var htmlCodeViewer = topPanel.add_SourceCodeViewer(); 4 | var xpathQuery = topPanel.insert_Right("XPath query result"); 5 | 6 | var urlToGet = "http://altoromutual.com/"; 7 | var query = "//*"; 8 | var htmlContent = urlToGet.uri().getHtml(); 9 | htmlCodeViewer.set_Text(htmlContent.trim(), ".html"); 10 | var textBox = xpathQuery.add_HtmlTags_Viewer_with_Filter(htmlContent); 11 | var treeView = xpathQuery.control(true); 12 | treeView.after_TagSelect_showIn_SouceCodeViewer(htmlCodeViewer); 13 | 14 | textBox.sendKeys(query.line()); 15 | 16 | return "ok"; 17 | //using O2.XRules.Database.Utils 18 | 19 | //O2File:HtmlAgilityPack_Extra_ExtensionMethods.cs 20 | //O2File:HtmlAgilityPack_Extra_ExtensionMethods_SourceCodeViewer.cs 21 | -------------------------------------------------------------------------------- /APIs/IE/IE_ExecutionGui/IE_Google - Execution.h2: -------------------------------------------------------------------------------- 1 | var popupWindow = "IE Execution GUI - IE Google".popupWindow(700,500); 2 | popupWindow.add_IE_ExecutionGui("IE_Google.cs"); 3 | 4 | //using O2.XRules.Database.APIs 5 | //O2File:API_IE_ExecutionGUI.cs -------------------------------------------------------------------------------- /APIs/IE/IE_ExecutionGui/IE_Google - Scripting.h2: -------------------------------------------------------------------------------- 1 | var topPanel = O2Gui.open("IE Google - Scripting",1200,700); 2 | //var topPanel = panel.clear().add_Panel(); 3 | 4 | var ie =topPanel.add_IE(); 5 | 6 | var ieGoogle = new IE_Google(ie); 7 | ieGoogle.homepage(); 8 | ieGoogle.maps(); 9 | ieGoogle.videos(); 10 | ieGoogle.images(); 11 | return ie.links(); 12 | 13 | //if you want to open IE_Google in the execution environment use this 14 | //new IE_Google("popup".popupWindow()); // 15 | 16 | //O2File:IE_Google.cs 17 | //using O2.XRules.Database.APIs 18 | //O2Ref:FluentSharp.Watin 19 | //using FluentSharp.Watin 20 | //O2Ref:Watin.Core.dll -------------------------------------------------------------------------------- /APIs/IKVM/IKVM_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | namespace O2.XRules.Database.APIs 6 | { 7 | public class IKVM_Installer_Test 8 | { 9 | public void test() 10 | { 11 | new IKVM_Installer().start(); 12 | } 13 | } 14 | public class IKVM_Installer : Tool_API 15 | { 16 | public IKVM_Installer() 17 | { 18 | config("IKVM", 19 | "http://garr.dl.sourceforge.net/project/ikvm/ikvm/7.2.4630.5/ikvmbin-7.2.4630.5.zip".uri(), 20 | @"ikvm-7.2.4630.5\bin\ikvm.exe"); 21 | //"http://switch.dl.sourceforge.net/project/ikvm/ikvm/7.1.4532.2/ikvmbin-7.1.4532.2.zip".uri(), 22 | //@"ikvm-7.1.4532.2\bin\ikvm.exe"); 23 | installFromZip_Web(); 24 | } 25 | 26 | 27 | public Process start() 28 | { 29 | if (isInstalled()) 30 | return Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /APIs/IKVM/Util - View Java Mappings.h2: -------------------------------------------------------------------------------- 1 | var topPanel = O2Gui.open("Util - View Java Mappings",700,400); 2 | topPanel.insert_LogViewer(); 3 | topPanel.viewJavaMappings(null); 4 | 5 | //using O2.XRules.Database.APIs.IKVM 6 | //O2File:API_IKVMC.cs 7 | -------------------------------------------------------------------------------- /APIs/IronPython/IronPython.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/APIs/IronPython/IronPython.ico -------------------------------------------------------------------------------- /APIs/IronPython/Notepad (mini).py: -------------------------------------------------------------------------------- 1 | import clr 2 | clr.AddReferenceToFileAndPath("_temp\FluentSharp.CoreLib.dll") 3 | clr.AddReferenceToFileAndPath("_temp\FluentSharp.BCL.dll") 4 | import O2 5 | clr.ImportExtensions(O2.DotNetWrappers.ExtensionMethods) 6 | 7 | topPanel = "Notepad (mini).py".popupWindow() 8 | textArea = topPanel.add_TextArea(); 9 | 10 | def openFile(file): 11 | textArea.set_Text(file.fileContents().fixCRLF()); 12 | 13 | def openFile_AskUser(): 14 | file = topPanel.askUserForFileToOpen() 15 | openFile(file) 16 | 17 | fileMenu = textArea.mainMenu().add_Menu("File") 18 | fileMenu.add_MenuItem("Open", openFile_AskUser) -------------------------------------------------------------------------------- /APIs/Mailman/API_OWASP_Mailman.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | 3 | using FluentSharp.CoreLib; 4 | 5 | //O2File:API_Mailman.cs 6 | 7 | namespace O2.XRules.Database.APIs 8 | { 9 | public class API_OWASP_Mailman : API_Mailman 10 | { 11 | public API_OWASP_Mailman() 12 | { 13 | this.BaseUrl = "https://lists.owasp.org/"; 14 | this.TempDir = @"..\_owasp_mailman_Data".tempDir(false).fullPath(); 15 | } 16 | 17 | 18 | } 19 | } -------------------------------------------------------------------------------- /APIs/MediaWiki/Tool - O2Platform.com WIKI Diff of Latests Changes.h2: -------------------------------------------------------------------------------- 1 | var topPanel = O2Gui.open("Tool - OWASP WIKI Diff of Latests Changes", 800,500); 2 | var wikiApi = new O2PlatformWikiAPI(); 3 | topPanel.show_Diff_LatestPagesChanges(wikiApi,10); 4 | return wikiApi; 5 | 6 | //using O2.XRules.Database.APIs 7 | //O2File:O2MediaWikiAPI.cs 8 | //O2File:O2PlatformWikiAPI.cs 9 | //O2Ref:O2_External_IE.dll -------------------------------------------------------------------------------- /APIs/NUnit/Execute Unit Tests.h2: -------------------------------------------------------------------------------- 1 | 2 | //panel.clear(); 3 | //var topPanel = panel.add_Panel(); 4 | var topPanel = O2Gui.open("Unit Test Execution", 400,500); 5 | topPanel.insert_LogViewer(); 6 | var unitTest = topPanel.add_Control(); 7 | var textBox = topPanel.insert_Above(25) 8 | .add_LabelAndTextAndButton("Unit Test file","","load", (file)=> unitTest.loadFile(file)) 9 | .controls(); 10 | Func loadFile = 11 | (file)=>{ 12 | textBox.set_Text(file); 13 | unitTest.loadFile(file); 14 | return topPanel; 15 | }; 16 | 17 | textBox.onDrop((file)=>loadFile(file)); 18 | 19 | //unitTest.loadFile(text)); 20 | // 21 | return loadFile; 22 | // 23 | 24 | //unitTest.loadFile(@"C:\O2\O2Scripts_Database\_Scripts\Utils\_Sample Files\SampleUnitTests.cs"); 25 | //return unitTest.type().methods(); 26 | //using O2.Core.XRules.Ascx 27 | //O2Ref:O2_Core_XRules.dll 28 | //O2Ref:O2_External_O2Mono.dll -------------------------------------------------------------------------------- /APIs/NUnit/Util - NUnit GUI with REPL below.h2: -------------------------------------------------------------------------------- 1 | new API_NUnit_Gui().insert_REPL_Below(); 2 | 3 | 4 | //using O2.XRules.Database.APIs 5 | //O2Ref:FluentSharp.NGit.dll 6 | //O2Ref:nunit-gui-runner.dll 7 | //O2Ref:nunit.util.dll 8 | //O2File:API_NUnit_Gui.cs 9 | -------------------------------------------------------------------------------- /APIs/O2_WAF_Simulator/WAF_Rule_NoGoogle.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | 3 | using FluentSharp.CoreLib; 4 | 5 | //O2File:WAF_Rule.cs 6 | 7 | namespace O2.XRules.Database.APIs 8 | { 9 | public class WAF_Rule_NoGoogle : WAF_Rule 10 | { 11 | public override string InterceptRemoteUrl(string remoteUrl) 12 | { 13 | base.InterceptRemoteUrl(remoteUrl); 14 | "[WAF_Rule_NoGoogle] IN InterceptRemoteUrl".error(); 15 | if (remoteUrl.contains("google")) 16 | { 17 | "No google here, going to bing now".info(); 18 | return "http://bing.com"; 19 | } 20 | return remoteUrl; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /APIs/O2_WAF_Simulator/WAF_Rule_NoPorto.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | 3 | using FluentSharp.CoreLib; 4 | 5 | //O2File:WAF_Rule.cs 6 | 7 | namespace O2.XRules.Database.APIs 8 | { 9 | public class WAF_Rule_NoPorto : WAF_Rule 10 | { 11 | public override string InterceptRemoteUrl(string remoteUrl) 12 | { 13 | base.InterceptRemoteUrl(remoteUrl); 14 | "[WAF_Rule_NoGoogle] IN InterceptRemoteUrl".error(); 15 | if (remoteUrl.contains("Porto")) 16 | { 17 | "No Porto here, replacing it with Benfica".info(); 18 | return remoteUrl.replace("Porto","Benfica"); 19 | } 20 | return remoteUrl; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /APIs/O2_Web_Proxy/HTTPSDebuggingProxy/cert.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/APIs/O2_Web_Proxy/HTTPSDebuggingProxy/cert.cer -------------------------------------------------------------------------------- /APIs/O2_Web_Proxy/Util - O2 WAF Simulator (simple Gui).h2: -------------------------------------------------------------------------------- 1 | var topPanel = O2Gui.open("Util - O2 WAF Simulator (simple GUI)",1000,400); 2 | //var topPanel = panel.clear().add_Panel(); 3 | var o2WebProxy = new O2_Web_Proxy(); 4 | o2WebProxy.createGui_WAF(topPanel); 5 | o2WebProxy.startWebProxy(); 6 | 7 | var browser = topPanel.controls(true)[0]; 8 | browser.open("http://www.google.com"); 9 | 10 | //using O2.XRules.Database.APIs 11 | 12 | //using HTTPProxyServer; 13 | //O2File:O2_Web_Proxy.cs 14 | //O2File:O2_Web_Proxy_ExtensionMethods_GUI_Helpers.cs 15 | //O2File:ProxyServer.cs 16 | //O2File:API_ConsoleOut.cs -------------------------------------------------------------------------------- /APIs/O2_Web_Proxy/Util - O2 Web Proxy (large view).h2: -------------------------------------------------------------------------------- 1 | var topPanel = O2Gui.open("Util - O2 Web Proxy (Large View)",1200,700).insert_LogViewer(); 2 | //var topPanel = panel.clear().add_Panel(); 3 | var o2WebProxy = new O2_Web_Proxy(); 4 | o2WebProxy.createGui_Proxy_LargeView(topPanel); 5 | o2WebProxy.startWebProxy(); 6 | 7 | "http://google.com".uri().getHtml(); 8 | 9 | //using O2.XRules.Database.APIs 10 | //_using HTTPProxyServer; 11 | //O2File:O2_Web_Proxy.cs 12 | //O2File:ProxyServer.cs 13 | //O2File:O2_Web_Proxy_ExtensionMethods_GUI_Helpers.cs -------------------------------------------------------------------------------- /APIs/O2_Web_Proxy/Util - O2 Web Proxy (simple view).h2: -------------------------------------------------------------------------------- 1 | Web.Https.ignoreServerSslErrors(); 2 | 3 | var topPanel = O2Gui.open("Util - O2 Web Proxy (Simple View)",300,400).insert_LogViewer(); 4 | //var topPanel = panel.clear().add_Panel(); 5 | var o2WebProxy = new O2_Web_Proxy(); 6 | o2WebProxy.Proxy.ProxyDisabled = false; 7 | o2WebProxy.extraLogging(false); 8 | o2WebProxy.startWebProxy(); 9 | //o2WebProxy.createGui_Proxy_LargeView(topPanel); 10 | o2WebProxy.createGui_Proxy_SimpleView(topPanel); 11 | 12 | //; 13 | ////"https://www.google.com".get_Html(); 14 | "https://urs.microsoft.com".get_Html("asd"); 15 | "https://o2platform.wordpress.com/favicon.ico___".get_Html(); 16 | //"https://o2platform.wordpress.com/".get_Html(); 17 | 18 | return "done"; 19 | 20 | //using O2.XRules.Database.APIs 21 | 22 | //using HTTPProxyServer 23 | //O2File:ProxyServer.cs 24 | //O2File:O2_Web_Proxy.cs 25 | //O2File:O2_Web_Proxy_ExtensionMethods_GUI_Helpers.cs -------------------------------------------------------------------------------- /APIs/PowerShell/PoC - Execute PowerShell Command.h2: -------------------------------------------------------------------------------- 1 | var command = "help"; 2 | var powerShell = PowerShell.Create(); 3 | powerShell.AddCommand(command); 4 | return powerShell.Invoke(); 5 | 6 | //using System.Management.Automation 7 | //O2Ref:System.Management.Automation.dll -------------------------------------------------------------------------------- /APIs/Roslyn/_Extra_methods_Roslyn_API.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/APIs/Roslyn/_Extra_methods_Roslyn_API.cs -------------------------------------------------------------------------------- /APIs/WCF/PoC - O2 WCF Server.h2: -------------------------------------------------------------------------------- 1 | 2 | 3 | var topPanel = O2Gui.open("Lauch Remote Server",700,400); 4 | topPanel.insert_Below().add_LogViewer(); 5 | var result = topPanel.add_TextArea(); 6 | 7 | var hostName = "remote"; 8 | //O2.Kernel.WCF.InterfacesBaseImpl 9 | //var host = new O2GenericWcfHost(remote, 10 | var host = O2WcfUtils.createWcfHost(hostName); 11 | var port = 8000 + 2000.random(); 12 | port = 9197; // for the demo to work 13 | host.WcfBindingAddress = "net.tcp://0.0.0.0:{0}/O2Wcf/{1}".format(port, hostName); 14 | result.set_Text("Local WCF server listening on on port: {0}".info(port)); 15 | 16 | //host.WcfImplementation.Sec 17 | //host.details(); 18 | host.WcfBinding.Security.Mode = System.ServiceModel.SecurityMode.None; 19 | 20 | host.startHost(); 21 | topPanel.onClosed(()=> host.stopHost()); 22 | return host; 23 | return "ok"; 24 | 25 | //using O2.Kernel.WCF.classes; 26 | //using O2.Kernel.WCF.Interfaces; 27 | //using O2.Kernel.WCF.InterfacesBaseImpl; 28 | //O2Ref:O2_Kernel_WCF.dll 29 | //O2Ref:System.ServiceModel.dll -------------------------------------------------------------------------------- /APIs/WPF/Graph/PoC - View Graph.h2: -------------------------------------------------------------------------------- 1 | var topPanel = "Graph".popupWindow(); 2 | var graph = topPanel.add_Graph().testGraph(); 3 | var script = topPanel.insert_Script(); 4 | script.InvocationParameters.Add("graph", graph); 5 | script.Code = 6 | @"return graph; 7 | 8 | //O2Ref:FluentSharp.WPF.dll 9 | //O2Ref:GraphSharp.Controls.dll 10 | //O2Ref:GraphSharp.dll 11 | //O2Ref:QuickGraph.dll 12 | 13 | //O2Ref:PresentationCore.dll 14 | //O2Ref:PresentationFramework.dll 15 | //O2Ref:WindowsBase.dll 16 | //O2Ref:System.Xaml.dll 17 | //O2File:GraphSharp_ExtensionMethods.cs 18 | "; 19 | 20 | //using O2.XRules.Database.Utils 21 | 22 | //O2File:GraphSharp_ExtensionMethods.cs 23 | //O2Ref:FluentSharp.WPF.dll 24 | //O2Ref:GraphSharp.Controls.dll 25 | //O2Ref:GraphSharp.dll 26 | //O2Ref:QuickGraph.dll 27 | 28 | //O2Ref:PresentationCore.dll 29 | //O2Ref:PresentationFramework.dll 30 | //O2Ref:WindowsBase.dll 31 | //O2Ref:System.Xaml.dll 32 | //O2Ref:WindowsFormsIntegration.dll -------------------------------------------------------------------------------- /APIs/WPF/Graph/To Import - from O2_API_AST/extraMethod.txt: -------------------------------------------------------------------------------- 1 | /*public object resolve(O2.API.AST.Graph.CodeStreamGraphNode nodeToExpand) 2 | 3 | { 4 | 5 | setCurrentCompilationUnit(nodeToExpand.CompilationUnit); 6 | 7 | return this.resolve(nodeToExpand.OriginalObject as Expression); 8 | 9 | }*/ -------------------------------------------------------------------------------- /APIs/WPF/Graph/Util - Graph REPL.h2: -------------------------------------------------------------------------------- 1 | open.logViewer(); 2 | O2ConfigSettings.CheckForTempDirMaxSizeCheck = false; 3 | O2Setup.extractEmbededConfigZips(); 4 | 5 | var assembly = "ascx_GraphWithInspector.cs".local().compile(); 6 | assembly.type("ascx_GraphWithInspector").invokeStatic("runControl"); 7 | 8 | //ascx_GraphWithInspector.runControl(); 9 | 10 | //O2File:ascx_GraphWithInspector.cs.o2 11 | //O2Embed:ICSharpCode.AvalonEdit.dll 12 | //O2Embed:FluentSharp.WPF.dll 13 | //O2Embed:O2_External_IE.dll 14 | //O2Embed:GraphSharp.Controls.dll 15 | //O2Embed:WPFExtensions.dll 16 | //O2Embed:GraphSharp.dll 17 | //O2Package:PoC - View Graph.h2,GraphLayout_WPF_ExtensionMethods.cs,GraphSharp_ExtensionMethods.cs,GraphFactory.cs,ElementHost_ExtensionMethods.cs 18 | //O2Package:VerticesAndEdges_ExtensionMethods.cs,ascx_GraphWithInspector.cs.o2 19 | 20 | //O2Ref:PresentationCore.dll 21 | //O2Ref:PresentationFramework.dll 22 | //O2Ref:WindowsBase.dll 23 | //O2Ref:System.Xaml.dll -------------------------------------------------------------------------------- /APIs/WPF/MiniFramework/Tool - WhoIs.h2: -------------------------------------------------------------------------------- 1 | API_MiniFramework.whoIs(); 2 | 3 | //using O2.XRules.Database.APIs 4 | 5 | //O2File:API_MiniFramework.cs 6 | //O2Ref:WindowsFormsIntegration.dll 7 | //O2Ref:MiniFramework.Windows.dll 8 | //O2Ref:WindowsBase.dll 9 | //O2Ref:PresentationFramework.dll 10 | //O2Ref:PresentationCore.dll 11 | //O2Ref:System.Xaml.dll.dll 12 | -------------------------------------------------------------------------------- /APIs/WatiN/IE Automation (Simple mode).h2: -------------------------------------------------------------------------------- 1 | O2Setup.extractEmbededConfigZips(); 2 | var topPanel = O2Gui.open("IE Script Execution", 955,542); 3 | 4 | //.top(2).left(0); 5 | 6 | var helpPanel = topPanel.insert_Above(20); 7 | helpPanel.add_Label("Need Help?", 3,3) 8 | .append_Link("Learn how to use this tool",()=>"http://o2platform.wordpress.com/2011/07/13/writing-an-o2-ie-automation-script-for-jpetstore-account-creation/".startProcess()) 9 | .append_Link("Read Code Samples (o2 blog)",()=> "http://o2platform.wordpress.com/category/ie-automation/".startProcess()) 10 | .append_Link("Ask a question (o2 mailing list)",()=> "https://lists.owasp.org/mailman/listinfo/owasp-o2-platform".startProcess()); 11 | topPanel.insert_Below(80).add_LogViewer(); 12 | 13 | topPanel.add_Control().buildGui(); 14 | 15 | //using O2.XRules.Database.Utils 16 | //O2File:ascx_IE_ScriptExecution.cs 17 | 18 | //O2Package:DotNet_Viewstate.cs -------------------------------------------------------------------------------- /APIs/WatiN/WatiN - Open 'Test Recorder' in new process.h2: -------------------------------------------------------------------------------- 1 | var ie = new WatiN_IE(); 2 | ie.testRecorder(); 3 | return ie; 4 | 5 | 6 | //using FluentSharp.Watin 7 | //O2Ref:FluentSharp.Watin.dll 8 | //O2Ref:Watin.Core.dll 9 | 10 | //O2Ref:Microsoft.mshtml.dll 11 | //O2Ref:Test Recorder.exe 12 | //O2Ref:csExWB.dll 13 | //O2Ref:Microsoft.mshtml.dll 14 | //O2Ref:Microsoft.Win32.Hooks.dll -------------------------------------------------------------------------------- /APIs/WatiN/examples/PoC - Script to seach google images (with persistent ID).h2: -------------------------------------------------------------------------------- 1 | var ie = panel.storeObjectInTag(()=> panel.clear().add_IE() ); 2 | 3 | //these can now be executed individually without needing a new IE object creation 4 | if (ie.url().isNull() || ie.url().contains("search").isFalse()) 5 | { 6 | ie.open("http://www.google.com"); 7 | ie.link("Images").click(); 8 | ie.field("q").value("O2 Platform"); 9 | ie.button("Search Images").click(); 10 | } 11 | return ie.links(); 12 | 13 | //using FluentSharp.Watin 14 | //O2Ref:FluentSharp.Watin.dll 15 | //O2Ref:Watin.Core.dll 16 | 17 | 18 | //O2Tag:SkipGlobalCompilation -------------------------------------------------------------------------------- /APIs/WinFormsUI/Util - O2 C# REPL using WinFormsUI.h2: -------------------------------------------------------------------------------- 1 | var winFormsUI = "O2 REPL Editor using winFormUI".winFormsUI(800,600); 2 | 3 | var _panel = winFormsUI.dock_Top("Scriptable Panel"); 4 | var script = winFormsUI.add_DockContent("The Script").add_Script(); 5 | 6 | winFormsUI.dock_Bottom("Log Viewer").add_LogViewer(); 7 | 8 | winFormsUI.mainMenu() 9 | .add_Menu("File") 10 | .add_MenuItem("Open",()=> script.commandsToExecute.open(winFormsUI.askUserForFileToOpen())); 11 | 12 | 13 | winFormsUI.set_Icon("scripts.ico"); 14 | 15 | script.InvocationParameters.add("panel", _panel); 16 | script.Code = 17 | @"panel.clear() 18 | .add_TextArea() 19 | .set_Text(""hello"");"; 20 | 21 | //O2Embed:scripts.ico 22 | //O2Ref:WeifenLuo.WinFormsUI.Docking.dll 23 | //O2Ref:FluentSharp.WinFormsUI.dll 24 | //__NuGet:FluentSharp.WinFormsUI -------------------------------------------------------------------------------- /APIs/Windows/CmdExe/PoC - API_ConsoleOut TestGui.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | new API_ConsoleOut().show_ConsoleOut_TestGui(); 4 | //O2File:API_ConsoleOut.cs 5 | //O2Tag_DontAddExtraO2Files 6 | 7 |

-------------------------------------------------------------------------------- /APIs/Windows/CmdExe/Util - ConsoleOut.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | //var topPanel = O2Gui.open<Panel>("{name}",700,400); 4 | var topPanel = "Util - ConsoleOut".popupWindow(500,300); 5 | topPanel.add_ConsoleOut(); 6 | //O2File:API_ConsoleOut.cs 7 | 8 | //O2Tag_DontAddExtraO2Files 9 | 10 | 11 |

-------------------------------------------------------------------------------- /APIs/Windows/Cropper/Util - Show ScreenShot Tool.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | "Cropper.exe".assembly().Location.startProcess(); 4 | //O2Thread.staThread(Program.Main); 5 | //using Fusion8.Cropper; 6 | //O2Ref:Cropper.exe 7 | //O2Tag_DontAddExtraO2Files 8 | 9 | 10 |

-------------------------------------------------------------------------------- /APIs/Windows/MessageHooks/PoC - GlobalCbtHook - Transparency window.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | 4 | 5 | O2Thread.staThread( 6 | ()=>{ 7 | Application.Run(new Form1() { 8 | Text = "PoC - GlobalCbtHook - Transparency window" 9 | }); 10 | }); 11 | 12 | 13 | return "done"; 14 | //using TransparencyMenu 15 | //_O2Download:GlobalCbtHook.dll 16 | //O2File:GlobalHooks.cs 17 | //O2File:Form1.cs 18 | //O2File:Window.cs 19 | //O2File:Win32.cs 20 | 21 |

-------------------------------------------------------------------------------- /APIs/Windows/WMF/Play WMF videos.h2: -------------------------------------------------------------------------------- 1 | var topPanel = O2Gui.open("Play WMF Videos", 400,400); 2 | var video = topPanel.add_Video(); 3 | var fileToPlay = topPanel.insert_Above(18); 4 | 5 | Action playFile = 6 | (videoFile)=>{ 7 | try 8 | { 9 | if (videoFile.fileExists()) 10 | { 11 | "Loading video:{0}".info(videoFile); 12 | fileToPlay.set_Text(videoFile); 13 | video.play(videoFile); 14 | "after play".info(); 15 | } 16 | } 17 | catch(Exception ex) 18 | { 19 | ex.log("[Play WMV videos] in playFile"); 20 | } 21 | }; 22 | 23 | fileToPlay.onDrop(playFile) 24 | .onEnter(playFile); 25 | 26 | video.onDrop(playFile); 27 | 28 | return null; 29 | 30 | //using O2.XRules.Database.APIs 31 | //O2File:API_WindowsMediaPlayer.cs 32 | //O2Ref:Interop.WMPLib.dll 33 | //O2Ref:AxInterop.WMPLib.dll -------------------------------------------------------------------------------- /APIs/Windows/WMI/WMI Search (Win32_Process) .h2: -------------------------------------------------------------------------------- 1 | return "select * from Win32_Process".wmi().show(); 2 | 3 | 4 | /*"SELECT Name, CommandLine,Caption, Description, ExecutablePath FROM Win32_Process" 5 | .wmi() 6 | .show_in_DataGridView(panel); 7 | return "ok"; 8 | */ 9 | 10 | //using O2.XRules.Database.APIs 11 | //O2File:API_WMI.cs 12 | //O2Ref:System.Management.dll 13 | -------------------------------------------------------------------------------- /APIs/Windows/White/Launch VisualUIAVerify.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | var visualUIAVerify = PublicDI.config.ToolsOrApis.pathCombine(@"UI Automation Verify\VisualUIAVerify.exe"); 4 | visualUIAVerify.startProcess(); 5 | 6 | //Installer:UIAutomationVerify_Installer.cs!UI Automation Verify\VisualUIAVerify.exe 7 | 8 |

-------------------------------------------------------------------------------- /APIs/Windows/White/UIAutomationVerify_Installer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using FluentSharp.CoreLib; 4 | //O2File:Tool_API.cs 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class UIAutomationVerify_Installer_test 9 | { 10 | public static void test() 11 | { 12 | new UIAutomationVerify_Installer().start(); 13 | } 14 | } 15 | 16 | public class UIAutomationVerify_Installer : Tool_API 17 | { 18 | public UIAutomationVerify_Installer() 19 | { 20 | config("UI Automation Verify", 21 | "UIAVerify2.0_x86.zip", 22 | "http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=uiautomationverify&DownloadId=220103&FileTime=129453037998770000&Build=20006".uri(), 23 | "VisualUIAVerify.exe"); 24 | installFromZip_Web(); 25 | } 26 | 27 | public Process start() 28 | { 29 | if (this.isInstalled()) 30 | return this.Executable.startProcess(); 31 | return null; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /APIs/Windows/Win32_DLL_Imports/API_WinAPI.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | 3 | //O2File:DLL_User32.cs 4 | //O2File:DLL_Kernel32.cs 5 | //O2File:DLL_Gdi32.cs 6 | //O2File:Win32_Classes.cs 7 | //O2File:Win32_Consts.cs 8 | //O2File:Win32_Structs.cs 9 | //O2File:Win32_Helper_Methods.cs 10 | //O2File:API_WinAPI_ExtensionMethods.cs 11 | 12 | -------------------------------------------------------------------------------- /APIs/Windows/Win32_DLL_Imports/Dll_Gdi32.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using System.Runtime.InteropServices; 4 | 5 | //O2File:API_WinAPI.cs 6 | 7 | namespace O2.XRules.Database.APIs 8 | { 9 | public partial class WinAPI 10 | { 11 | [DllImport("gdi32.dll")] public static extern IntPtr CreatePen(int fnPenStyle, int nWidth, uint crColor); 12 | } 13 | } -------------------------------------------------------------------------------- /APIs/Windows/Windows_Messages/Util - Win32 Window Handle Hijack (4x host panels ).h2: -------------------------------------------------------------------------------- 1 | //var topPanel = "{name}".popupWindow(700,400); 2 | 3 | var topPanel = "Util - Win32 Window Handle Hijack (Multiple Guis)".popupWindow(1000,500); 4 | var parentForm = topPanel.parentForm(); 5 | parentForm.insert_Right().add_Handle_HijackGui() 6 | .insert_Below().add_Handle_HijackGui(); 7 | topPanel.add_Handle_HijackGui() 8 | .insert_Below().add_Handle_HijackGui(); 9 | 10 | Application.Run(); 11 | 12 | //using O2.XRules.Database.APIs 13 | //O2File:API_Win32_Handle_Hijack.cs 14 | //O2Package:target.ico -------------------------------------------------------------------------------- /APIs/Windows/Windows_Messages/Util - Win32 Window Handle Hijack (simple).h2: -------------------------------------------------------------------------------- 1 | //var topPanel = panel.add_Panel(true); 2 | var topPanel = "Util - Win32 Window Handle Hijack (simple)".popupWindow(); 3 | var hijackGui = topPanel.add_Handle_HijackGui(); 4 | return hijackGui; 5 | 6 | //using O2.XRules.Database.APIs 7 | //O2File:API_Win32_Handle_Hijack.cs -------------------------------------------------------------------------------- /APIs/WordPress/Unit_Tests_API_WordPress_IE.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/APIs/WordPress/Unit_Tests_API_WordPress_IE.cs -------------------------------------------------------------------------------- /APIs/_Javascript_Libraries/Bootstrap/Samples/Bootstrap Example - Starter template.html: -------------------------------------------------------------------------------- 1 | 9 |

10 |

Bootstrap starter template

11 |

Use this document as a way to quick start any new project.
All you get is this message and a barebones HTML document.

-------------------------------------------------------------------------------- /APIs/_Javascript_Libraries/Bootstrap/Samples/Bootstrap Example.html: -------------------------------------------------------------------------------- 1 |

this is a h1

2 |

this is an h2

3 |

this is a paragraph 4 |

    5 |
  • and a bullet
loose text -------------------------------------------------------------------------------- /APIs/_Javascript_Libraries/Bootstrap/Samples/QuickTest.html: -------------------------------------------------------------------------------- 1 | This is a quick test... -------------------------------------------------------------------------------- /APIs/_Javascript_Libraries/Bootstrap/bootstrap.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/APIs/_Javascript_Libraries/Bootstrap/bootstrap.ico -------------------------------------------------------------------------------- /APIs/_Javascript_Libraries/Bootstrap/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/APIs/_Javascript_Libraries/Bootstrap/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /APIs/_Javascript_Libraries/Bootstrap/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/APIs/_Javascript_Libraries/Bootstrap/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /APIs/_Javascript_Libraries/JQuery/examples/PoC - JS conversation between IE and O2.h2: -------------------------------------------------------------------------------- 1 | //"ie_Object".o2Cache(""); 2 | var ie = "ie_Object".o2Cache( 3 | ()=> panel.clear().add_IE().silent(true)); 4 | 5 | ie.open("about:blank"); 6 | ie.eval("document.write('this is some text')"); 7 | ie.inject_jQuery(); 8 | ie.eval("$('body').append('...appended text')"); 9 | ie.injectJavascriptFunctions(true); 10 | ie.eval("o2Log('hello o2 log')"); 11 | ie.eval("$o2.write('hello again')"); 12 | 13 | //ie.inject_FirebugLite(); 14 | 15 | //using FluentSharp.Watin 16 | //O2Ref:FluentSharp.Watin.dll 17 | //O2Ref:Watin.Core.dll 18 | 19 | //O2Tag:SkipGlobalCompilation 20 | -------------------------------------------------------------------------------- /APIs/_Javascript_Libraries/JQuery/jsTree/d.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/APIs/_Javascript_Libraries/JQuery/jsTree/d.gif -------------------------------------------------------------------------------- /APIs/_Javascript_Libraries/JQuery/jsTree/d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/APIs/_Javascript_Libraries/JQuery/jsTree/d.png -------------------------------------------------------------------------------- /APIs/_Javascript_Libraries/JQuery/jsTree/throbber.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/APIs/_Javascript_Libraries/JQuery/jsTree/throbber.gif -------------------------------------------------------------------------------- /APIs/_Javascript_Libraries/Prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun{color:#660}.pln{color:#000}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec{color:#606} 2 | pre.prettyprint{ font-size:11; ;padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}@media print{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun{color:#440}.pln{color:#000}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}} 3 | -------------------------------------------------------------------------------- /APIs/_Javascript_Libraries/Prettify/prettify.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | prettify.htm 4 | 5 | 6 | 7 | 8 | 9 |
10 |

11 | 
12 | 13 | 14 | -------------------------------------------------------------------------------- /APIs/_MiscAPIs/Mentalis_PacketMonitor.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | O2Thread.staThread( 4 | ()=>{ 5 | try 6 | { 7 | var packetMonitorForm = new PacketMonitorForm(); // panel.add_Control<PacketMonitorForm>(); 8 | packetMonitorForm.ShowDialog(); 9 | } 10 | catch(Exception ex) 11 | { 12 | "[PackerMonitor] got this error when starting PacketMonitorForm: {0}".error(ex.Message); 13 | PublicDI.CurrentScript.executeH2_as_Admin_askUserBefore(); 14 | } 15 | }); 16 | 17 | return "ok"; 18 | 19 | //using Org.Mentalis.Network.PacketMonitor 20 | //O2Ref:Mentalis_Tools.dll 21 | 22 |

-------------------------------------------------------------------------------- /Languages/AspNet/ControlEncodings/Util - AspNet ControlEncodings (Raw Format).h2: -------------------------------------------------------------------------------- 1 | //var topPanel = panel.clear().add_Panel(); 2 | var topPanel = O2Gui.open("Util - AspNet ControlEncodings (Raw Format)",700,400); 3 | 4 | var mappedData = "AspNetControlEncodings_Raw.xml".local().load(); 5 | var tableList = topPanel.add_TableList() 6 | .show(mappedData); 7 | tableList.add_Column("vuln"); 8 | 9 | tableList.visible(false); 10 | foreach(var row in tableList.rows()) 11 | { 12 | var values = row.values(); 13 | if (values[2] == "na") 14 | row.textColor(Color.Black); 15 | else if (values[3].toBool() && values[4].toBool()) 16 | row.textColor(Color.DarkGreen); 17 | else if (values[3].toBool() || values[4].toBool()) 18 | row.textColor(Color.DarkOrange); 19 | else 20 | { 21 | row.textColor(Color.Red); 22 | row.SubItems[1].Text = "* " + values[1]; 23 | } 24 | } 25 | tableList.visible(true); 26 | return "ok"; 27 | 28 | //using O2.XRules.Database.Utils 29 | 30 | //O2File:AspNetControlEncodings.cs 31 | -------------------------------------------------------------------------------- /Languages/AspNet/ScriptsToRunWith_AspxContext/Util - Show AspNet Context object details.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | "in showing HttpContext details".info(); 4 | 5 | var context = System.Web.HttpContext.Current; 6 | if (context.notNull()) 7 | context.details(); 8 | else 9 | "System.Web.HttpContext.Current was null, you must run this script from an ASP.NET page".error(); 10 | 11 | return "done"; 12 | 13 |

-------------------------------------------------------------------------------- /Languages/AspNet/Util - WSDL Invoke and Scripting v1.0.h2: -------------------------------------------------------------------------------- 1 | O2Setup.extractEmbededConfigZips(); 2 | //force dependncy on MS_SDK_wsdl.exe 3 | var a = new Microsoft.DevApps.WebServices.CheckingRule(); 4 | 5 | var wsdlGui = new test_ascx_WSDL_Creation_and_Execution() 6 | .launchGui() 7 | .set_Icon("execute.ico"); 8 | 9 | //O2File:ascx_WSDL_Creation_and_Execution.cs 10 | //O2File:DotNet_SDK_WSDL.cs 11 | //using O2.XRules.Database.Languages_and_Frameworks.AspNet 12 | //O2Ref:MS_SDK_wsdl.exe 13 | //O2Embed:execute.ico 14 | //O2Embed:MS_SDK_wsdl.exe -------------------------------------------------------------------------------- /Languages/AspNet/_O2_AspNet/Create_o2_AspNet_Page_Objects.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#"%> 2 | <% @Import Namespace="O2.Kernel" %> 3 | <% @Import Namespace="O2.Kernel.ExtensionMethods" %> 4 | <% @Import Namespace="O2.DotNetWrappers.ExtensionMethods" %> 5 | <% @Import Namespace="O2.External.SharpDevelop.ExtensionMethods" %> 6 | 7 | 8 | 9 | 10 | Create O2 AspNet_Page objects 11 | 12 | 13 |

Creating AspNet_Page objects

14 | for current website
15 | <% 16 | 17 | var script = @"C:\O2\O2Scripts_Database\_Scripts\Languages_and_Frameworks\AspNet\_O2_AspNet\Create_o2_AspNet_Page_Objects.h2"; 18 | Response.Write(script.compile_H2Script().executeFirstMethod()); 19 | 20 | %> 21 |
22 | 23 | -------------------------------------------------------------------------------- /Languages/AspNet/_O2_AspNet/Show_Aspx_Context.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" %> 2 | <% @Import Namespace="O2.Kernel" %> 3 | <% @Import Namespace="O2.Kernel.ExtensionMethods" %> 4 | <% @Import Namespace="O2.DotNetWrappers.ExtensionMethods" %> 5 | <% @Import Namespace="O2.External.SharpDevelop.ExtensionMethods" %> 6 | 7 | 8 | <% 9 | Response.Write("

Opening up: {0}

".format("Util - Show AspNet Context object details.h2")); 10 | @"C:\O2\O2Scripts_Database\_Scripts\Languages_and_Frameworks\AspNet\ScriptsToRunWith_AspxContext\Util - Show AspNet Context object details.h2".compile_H2Script().executeFirstMethod(); 11 | %> 12 | 13 | -------------------------------------------------------------------------------- /Languages/DotNet/Ast_Scanner/SecurityRules_AST_DotNet/IAST_Rules.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | using System.Collections.Generic; 3 | using FluentSharp.CSharpAST.Utils; 4 | 5 | namespace O2.XRules.Database.Languages_and_Frameworks.DotNet 6 | { 7 | public interface IAST_Rules 8 | { 9 | O2CodeStreamTaintRules TaintRules { get; set;} 10 | 11 | List execute(List sourceFiles, string targetFolder); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Languages/DotNet/Ast_Scanner/SecurityRules_AST_DotNet/Rule_DotNet_FindSinks.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | using System.Collections.Generic; 3 | using FluentSharp.CSharpAST.Utils; 4 | 5 | //O2File:IAST_Rules.cs 6 | //O2File:TextEditor_O2CodeStream_ExtensionMethods.cs 7 | //O2File:Findings_ExtensionMethods.cs 8 | //O2File:Ast_Engine_ExtensionMethods.cs 9 | 10 | 11 | namespace O2.XRules.Database.Languages_and_Frameworks.DotNet 12 | { 13 | public class Rule_DotNet_FindSinks : IAST_Rules 14 | { 15 | public O2CodeStreamTaintRules TaintRules { get; set;} 16 | 17 | /*public Rule_DotNet_FindSources() 18 | { 19 | var taintRules = new O2CodeStreamTaintRules(); 20 | }*/ 21 | 22 | public List execute(List sourceFiles, string targetFolder) 23 | { 24 | return null; 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Languages/DotNet/Ast_Scanner/SecurityRules_AST_DotNet/Rule_DotNet_ScanFiles.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | using System.Collections.Generic; 3 | using FluentSharp.CSharpAST.Utils; 4 | 5 | //O2File:Rule_DotNet_FindSources.cs 6 | 7 | 8 | namespace O2.XRules.Database.Languages_and_Frameworks.DotNet 9 | { 10 | public class Rule_DotNet_ScanFiles: IAST_Rules 11 | { 12 | public O2CodeStreamTaintRules TaintRules { get; set;} 13 | public static void test() 14 | { 15 | } 16 | 17 | public List execute(List sourceFiles, string targetFolder) 18 | { 19 | sourceFiles.Add("aaa"); 20 | new Rule_DotNet_FindSources(); 21 | return sourceFiles; 22 | } 23 | 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Languages/DotNet/Ast_Scanner/Util - MethodStreams Viewer.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | 4 | var manualMethodStreams = O2Gui.open<ascx_ManualMethodStreams>("View MethodStream",600,500); 5 | manualMethodStreams.buildGui(); 6 | //using O2.XRules.Database.Languages_and_Frameworks.DotNet 7 | //O2File:ascx_ManualMethodStreams.cs 8 |

-------------------------------------------------------------------------------- /Languages/IO/IOLanguage_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | //O2File:Tool_API.cs 4 | 5 | 6 | namespace O2.XRules.Database.APIs 7 | { 8 | public class IOLanguage_Installer_Test 9 | { 10 | public void test() 11 | { 12 | new IOLanguage_Installer().start(); 13 | } 14 | } 15 | public class IOLanguage_Installer : Tool_API 16 | { 17 | public IOLanguage_Installer() 18 | { 19 | 20 | config("IOLanguage", 21 | "http://iobin.suspended-chord.info/win32/iobin-win32-current.zip".uri(), 22 | @"\IoLanguage\bin\io.exe"); 23 | installFromZip_Web(); 24 | if (this.Executable.fileExists().isFalse()) 25 | { 26 | this.Install_Dir.pathCombine("IoLanguage-2012.11.09-win32.exe") 27 | .startProcess() 28 | .WaitForExit(); 29 | } 30 | } 31 | 32 | public Process start() 33 | { 34 | if (isInstalled()) 35 | return this.Executable.startProcess(); 36 | return null; 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /Languages/IO/PoC - Simple Exectution.h2: -------------------------------------------------------------------------------- 1 | //var topPanel = "{name}".popupWindow(700,400); 2 | var state = new IoState(); 3 | 4 | var bootStrapDir = PublicDI.config.ToolsOrApis.pathCombine(@"IOLanguage\ioclr\io\bootstrap"); 5 | var ioFiles= bootStrapDir.files(); 6 | foreach(var ioFile in ioFiles) 7 | state.loadFile(ioFile.info()); 8 | 9 | var code = "a := 2"; 10 | var result = state.onDoCStringWithLabel(state.lobby, code, "prompt:"); 11 | 12 | code = "a+1 print"; 13 | 14 | result = state.onDoCStringWithLabel(state.lobby, code, "prompt:"); 15 | return result.str(); 16 | //return state.details();; 17 | 18 | 19 | 20 | //using io 21 | //O2Ref:\IOLanguage\ioclr\bin\IoCLI.exe 22 | //O2Ref:\IOLanguage\ioclr\bin\IoVM.dll 23 | //O2Installer:IOLanguage_CLR_Installer.cs!IOLanguage\ioclr\bin\IoCLI.exe -------------------------------------------------------------------------------- /Languages/J2EE/SpringMVC/O2CmdSpringMVC_Installer.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using FluentSharp.CoreLib; 3 | 4 | //O2File:Tool_API.cs 5 | 6 | public class DynamicType 7 | { 8 | public void dynamicMethod() 9 | { 10 | new O2.XRules.Database.APIs.O2CmdSpringMVC_Installer().start(); 11 | } 12 | } 13 | 14 | namespace O2.XRules.Database.APIs 15 | { 16 | 17 | public class O2CmdSpringMVC_Installer : Tool_API 18 | { 19 | public O2CmdSpringMVC_Installer() 20 | { 21 | config("O2CmdSpringMVC", 22 | "http://s3.amazonaws.com/O2_Downloads/O2_Cmd_SpringMvc.msi".uri(), 23 | "SourceDir\\O2_Cmd_SpringMvc.exe"); 24 | install_JustMsiExtract_into_TargetDir(); 25 | } 26 | 27 | 28 | public Process start() 29 | { 30 | if (isInstalled()) 31 | return Executable.startProcess(); 32 | return null; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /Languages/J2EE/SpringMVC/Spring MVC Attributes Tool.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | //var topPanel = O2Gui.open<Panel>("{name}",700,400); 4 | var path = "http://s3.amazonaws.com/O2_Downloads/O2_Cmd_SpringMvc.msi".uri().download(); 5 | path.startProcess(); 6 | 7 |

-------------------------------------------------------------------------------- /Languages/J2EE/SpringMVC/Tool - O2 Cmd SpringMVC.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | O2ConfigSettings.O2Version = "O2CmdSpringMVC_v1"; 4 | O2Setup.extractEmbededConfigZips(); 5 | @"O2CmdSpringMVC\SourceDir\O2_Cmd_SpringMvc.exe".local().startProcess(); 6 | 7 | //Installer:O2CmdSpringMVC_Installer.cs!O2CmdSpringMVC\SourceDir\O2_Cmd_SpringMvc.exe 8 | //O2EmbedTool:O2CmdSpringMVC 9 | 10 |

-------------------------------------------------------------------------------- /Languages/J2EE/Util - View Web.Xml mappings.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | "Util - View Web.Xml mappings".popupWindow<ascx_J2EE_web_xml>(600,500); 4 | 5 | //O2File:ascx_J2EE_web_xml.cs 6 | //using O2.Core.FileViewers.Ascx 7 | 8 |

-------------------------------------------------------------------------------- /Languages/J2EE/Util - View struts-config.xml mappings.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | "Util - View struts-config.xml mappings".popupWindow<ascx_Struts_config_xml>(600,500); 4 | 5 | //O2File:ascx_Struts_config_xml.cs 6 | //using O2.Core.FileViewers.Ascx 7 | 8 |

-------------------------------------------------------------------------------- /Languages/J2EE/Util - View tiles-def.xml mappings.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | "Util - View tiles-def.xml mappings".popupWindow<ascx_TilesDefinition_xml>(600,500); 4 | 5 | //O2File:ascx_TilesDefinition_xml.cs 6 | //using O2.Core.FileViewers.Ascx 7 | 8 |

-------------------------------------------------------------------------------- /Languages/J2EE/Util - View validation.xml mappings.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | "Util - View validation.xml mappings".popupWindow<ascx_Validation_xml>(600,500); 4 | 5 | //O2File:ascx_Validation_xml.cs 6 | //using O2.Core.FileViewers.Ascx 7 | 8 |

-------------------------------------------------------------------------------- /Languages/Javascript/Util - Javascript Editor (web based).h2: -------------------------------------------------------------------------------- 1 | //panel.clear(); 2 | var topPanel = O2Gui.open("Javascript editor",700,400); 3 | var ie = topPanel.add_IE().silent(false); 4 | 5 | ie.open("http://ajaxorg.github.com/ace/build/editor.html"); 6 | 7 | //using FluentSharp.Watin 8 | //O2Ref:FluentSharp.Watin.dll 9 | //O2Ref:Watin.Core.dll 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | These are the O2 Scripts that are dynamically compiled using the O2 Platform (which can be downloaded [from here](https://bintray.com/o2-platform/Main-Exe/o2-platform/view)) 2 | 3 | ### Stand alone exes 4 | 5 | A number of these scripts are available as Stand-Alone exes and can be downloaded from https://bintray.com/o2-platform/O2-Tools 6 | 7 | See [Just used bintray.com to publish a number of O2Platform/FluentSharp stand-alone exes](http://blog.diniscruz.com/2014/08/just-used-bintraycom-to-publish-number.html) for more details 8 | 9 | 10 | ### Issues and main repository 11 | 12 | To report an issue or suggest an enhacement please use https://github.com/o2platform/O2.Platform.Scripts/issues 13 | 14 | The source code is available at https://github.com/o2platform/O2-Platform-Scripts 15 | -------------------------------------------------------------------------------- /Utils/ExtensionMethods/_Extra_methods_Browser.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | 3 | namespace O2.XRules.Database.Utils 4 | { 5 | //set text 6 | 7 | 8 | 9 | //show message 10 | 11 | 12 | //Gui Helpers 13 | 14 | 15 | 16 | 17 | //browser Document 18 | 19 | 20 | 21 | //scripting 22 | 23 | 24 | 25 | //sites 26 | 27 | 28 | } -------------------------------------------------------------------------------- /Utils/ExtensionMethods/_Extra_methods_NGitI.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | 3 | // ReSharper disable RedundantUsingDirective 4 | // ReSharper restore RedundantUsingDirective 5 | using FluentSharp.Git; 6 | using FluentSharp.Git.APIs; 7 | 8 | //O2Ref:FluentSharp.NGit.dll 9 | 10 | namespace O2.XRules.Database.Utils 11 | { 12 | public static class _Extra_methods_NGit 13 | { 14 | public static API_NGit git_Clone_or_Pull(this string localFolder, string targetRepo) 15 | { 16 | if(localFolder.isGitRepository()) 17 | { 18 | var nGit = localFolder.git_Open(); 19 | nGit.pull(); 20 | return nGit; 21 | } 22 | return targetRepo.git_Clone(localFolder); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Utils/H2_Starters/Script Editor/PoC - Script the Script.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | //var topPanel = panel.clear().add_Panel(); 4 | var topPanel = "PoC - Script the Script".popupWindow(1200,400); 5 | 6 | var script = topPanel.insert_Left("Script to Script").add_Script(false); 7 | script.Code = "return 42;"; 8 | 9 | var scriptHost = topPanel.title("original Script").add_Script(false); 10 | scriptHost.onCompileExecuteOnce(); 11 | scriptHost.InvocationParameters.add("script", script); 12 | var code = @" 13 | var _script = (script as object).castViaTypeConfusion<ascx_Simple_Script_Editor>(); 14 | _script.execute(); 15 | return _script.Code; 16 | 17 | 18 | //O2Tag_SetInvocationParameters"+@"ToDynamic 19 | //O2Tag_DontUseCachedAssemblyIfAvailable 20 | //O2Tag_DontAddExtraO2Files 21 | //O2File:_Extra_methods_TypeConfusion.cs 22 | ".trim(); 23 | 24 | scriptHost.set_Script(code); 25 | 26 |

-------------------------------------------------------------------------------- /Utils/O2/C# REPL Script Editor.h2: -------------------------------------------------------------------------------- 1 | "C# REPL Script Editor".popupWindow(600,200) 2 | .add_Script() 3 | .set_Code("return \"Hello O2 World\";"); 4 | 5 | //O2Embed:scripts.ico -------------------------------------------------------------------------------- /Utils/O2/Util - C# REPL Script.h2: -------------------------------------------------------------------------------- 1 | open.scriptEditor(); -------------------------------------------------------------------------------- /Utils/O2/Util - Development Gui and SourceCodeEditor.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | var topPanel = O2Gui.open<Panel>("Util - Development Gui and SourceCodeEditor",1200,600); 4 | //var topPanel = panel.clear().add_Panel(); 5 | var controls = topPanel.add_1x1(); 6 | controls[0].add_Control<ascx_Panel_With_Inspector>(); 7 | var sideControls = controls[1].add_SourceCodeEditor(); 8 | 9 |

-------------------------------------------------------------------------------- /Utils/O2/Util - Development Gui and Two Script Editors.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | var topPanel = O2Gui.open<Panel>("Util - Development Gui and Two Script Editors",1200,600); 4 | //var topPanel = panel.clear().add_Panel(); 5 | var controls = topPanel.add_1x1(); 6 | controls[0].add_Control<ascx_Panel_With_Inspector>(); 7 | var sideControls = controls[1].add_1x1(false); 8 | sideControls[0].add_Script(false); 9 | sideControls[1].add_Script(false); 10 | 11 |

-------------------------------------------------------------------------------- /Utils/O2/Util - Download Updated O2 Scripts.h2: -------------------------------------------------------------------------------- 1 | "script not working at the moment".alert(); 2 | return "abort"; 3 | var progressBar = "Util - Download/Update O2 Scripts".popupWindow(400,50).add_ProgressBar(); 4 | var statusBar = progressBar.parentForm().add_StatusStrip(); 5 | progressBar.maximum(3); 6 | Action _statusMessage = 7 | (text)=>{ 8 | statusBar.set_Text(text); 9 | progressBar.increment(1); 10 | this.sleep(500); 11 | }; 12 | 13 | //O2Scripts.downloadO2Scripts(_statusMessage); 14 | return "done"; 15 | -------------------------------------------------------------------------------- /Utils/O2/Util - Execute O2 Scripts.h2: -------------------------------------------------------------------------------- 1 | var executeScripts = O2Gui.open("Execute O2 Scripts", 250,200); 2 | executeScripts.parentForm().top(0).left(0); 3 | executeScripts.invoke("buildGui"); 4 | executeScripts.status("Drop O2 Script on LOGO to execute it"); 5 | return executeScripts; 6 | 7 | //using FluentSharp.WinForms.Controls 8 | //using FluentSharp.O2Platform.Controls 9 | //O2Ref:FluentSharp.O2Platform.exe -------------------------------------------------------------------------------- /Utils/O2/Util - LogViewer.h2: -------------------------------------------------------------------------------- 1 | var logViewer = "Util - LogViewer".popupWindow(400,140).add_LogViewer(); 2 | //.set_Icon("blogs-stack.ico"); 3 | 4 | "Welcome to O2's LogViewer poc".info(); 5 | 6 | 7 | //O2Embed:blogs-stack.ico -------------------------------------------------------------------------------- /Utils/O2/Util - O2 Development Environment.h2: -------------------------------------------------------------------------------- 1 | O2Gui.open("O2 Development Environment ({0}".format(clr.details()),1024, 600); -------------------------------------------------------------------------------- /Utils/O2/Util - O2 Object Model.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | open.o2ObjectModel(); 4 | 5 |

-------------------------------------------------------------------------------- /Utils/O2/Util - Open O2's Execution Directory.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | Processes.startProcess(Environment.CurrentDirectory); 4 | 5 |

-------------------------------------------------------------------------------- /Utils/O2/Util - REPL Script a Code Editor.h2: -------------------------------------------------------------------------------- 1 | //var topPanel = panel.clear().add_Panel(); 2 | var topPanel = "Util - REPL Script a Code Editor".popupWindow(1200,500); 3 | var codeEditor = topPanel.add_SourceCodeEditor().csharp_Colors(); 4 | 5 | var firstScript = "codeEditor.set_Code(\"Created by Scripted Code\");".line() + 6 | "return codeEditor;"; 7 | 8 | topPanel.insert_Left() 9 | .add_Script_Me(codeEditor,"codeEditor") 10 | .executeOnCompile() 11 | .set_Code(firstScript);; 12 | 13 | return "ok"; 14 | 15 | //O2File:_Extra_methods_To_Add_to_Main_CodeBase.cs -------------------------------------------------------------------------------- /Utils/O2/Util - Search O2 codebase (at googlecode).h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | 4 | var codeSearchUrl = @"http://www.google.com/codesearch?q={0}+package:http://o2platform\.googlecode\.com&origq={0}&btnG=Search+Trunk"; 5 | var defaultSearch = "reflection"; 6 | 7 | var topPanel = O2Gui.open<Panel>("Search O2 Code Base", 700,400); //panel.add_Panel(); 8 | var browser = topPanel.add_WebBrowser().silent(true); 9 | 10 | Action<string> search = 11 | (text)=>{ 12 | browser.open(codeSearchUrl.format(text)); 13 | }; 14 | 15 | topPanel.insert_Above<Panel>(20) 16 | .add_LabelAndComboBoxAndButton("Search O2 codebase",defaultSearch,"search",search); 17 | 18 | 19 | search(defaultSearch); 20 | 21 |

-------------------------------------------------------------------------------- /Utils/O2/Util - Secret Data Editor.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | @"c:\O2\_USERDATA".createDir().show_SecretDataEditor(); 4 | 5 |

-------------------------------------------------------------------------------- /Utils/O2/Util - SourceCodeEditor.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | O2Gui.open<Panel>("Source Code Editor",720, 400) 4 | .add_SourceCodeEditor(); 5 | 6 |

-------------------------------------------------------------------------------- /Utils/O2/Util - SourceCodeViewer.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | O2Gui.open<Panel>("Source Code Viewer",720, 400) 4 | .add_SourceCodeViewer(); 5 | 6 |

-------------------------------------------------------------------------------- /Utils/O2/Util - Two Script Editors.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | var topPanel = O2Gui.open<Panel>("Util - Two Script Editors",1200,400); 4 | //var topPanel = panel.clear().add_Panel(); 5 | var controls = topPanel.add_1x1(); 6 | controls[0].add_Script(); 7 | controls[1].add_Script(); 8 | 9 |

-------------------------------------------------------------------------------- /Utils/O2_StandAlone_Modules/CIR Viewer.h2.txt: -------------------------------------------------------------------------------- 1 | 2 |

3 | var o2AppDomain = new O2.Kernel.Objects.O2AppDomainFactory(10.randomLetters()); 4 | o2AppDomain.load("FluentSharp.CoreLib.dll"); 5 | var o2Proxy = (O2Proxy)o2AppDomain.getProxyObject("O2Proxy"); 6 | 7 | o2Proxy.staticInvocation("_CirViewer (O2 Tool)", "Program","Main" , new object[] {}); 8 | 9 | //"_FindingsViewer (O2 Tool).exe".type("Program").invokeStatic("Main"); 10 | 11 | //using O2.Kernel.Objects 12 | //using O2.Tool.CirViewer; 13 | //O2Ref:_CirViewer (O2 Tool).exe 14 | //O2Ref:O2_ImportExport_Misc.dll 15 | 16 |

-------------------------------------------------------------------------------- /Utils/O2_StandAlone_Modules/CSharp Scripts Debugger.h2.txt: -------------------------------------------------------------------------------- 1 | 2 |

3 | Processes.startProcess("_CSharpScripts (O2 Tool).exe"); 4 | 5 | return "done"; 6 | 7 | //return "_CSharpScripts (O2 Tool).exe".assembly().type("StartCSharpScriptGui").invokeStatic("Main"); 8 | /*var o2AppDomain = new O2.Kernel.Objects.O2AppDomainFactory(10.randomLetters()); 9 | o2AppDomain.load("O2_Kernel.dll"); 10 | var o2Proxy = (O2Proxy)o2AppDomain.getProxyObject("O2Proxy"); 11 | 12 | o2Proxy.staticInvocation("_CSharpScripts (O2 Tool).exe", "StartCSharpScriptGui","Main" , new object[] {}); */ 13 | 14 | //"_FindingsViewer (O2 Tool).exe".type("Program").invokeStatic("Main"); 15 | 16 | //using O2.Kernel.Objects 17 | //using O2.Tool.CSharpScripts 18 | //O2Ref:_CSharpScripts (O2 Tool).exe 19 | //O2Ref:O2_Debugger_Mdbg.exe 20 | //O2Ref:O2_ImportExport_Misc.dll 21 | 22 |

-------------------------------------------------------------------------------- /Utils/O2_StandAlone_Modules/Findings Query.h2.txt: -------------------------------------------------------------------------------- 1 | 2 |

3 | //return "_FindingsQuery (O2 Tool).exe".assembly().type("Program").invokeStatic("Main"); 4 | Processes.startProcess("_FindingsQuery (O2 Tool).exe"); 5 | 6 | //O2Ref:_FindingsQuery (O2 Tool).exe 7 | 8 | //O2Ref:O2_ImportExport_Misc.dll 9 | //O2Ref:O2_External_Evaluant.dll 10 | //O2Ref:Evaluant.NLinq.o2.1.x.dll 11 | //O2Ref:Evaluant.NLinq.Memory.o2.1.x.dll 12 | //O2Ref:Evaluant.Antlr.dll 13 | 14 |

-------------------------------------------------------------------------------- /Utils/O2_StandAlone_Modules/Findings Viewer.h2.txt: -------------------------------------------------------------------------------- 1 | 2 |

3 | var o2AppDomain = new O2.Kernel.Objects.O2AppDomainFactory(10.randomLetters()); 4 | o2AppDomain.load("O2_Kernel.dll"); 5 | var o2Proxy = (O2Proxy)o2AppDomain.getProxyObject("O2Proxy"); 6 | 7 | o2Proxy.staticInvocation("_FindingsViewer (O2 Tool)", "Program","Main" , new object[] {}); 8 | 9 | //"_FindingsViewer (O2 Tool).exe".type("Program").invokeStatic("Main"); 10 | 11 | //using O2.Kernel.Objects 12 | //using O2.Tool.FindingsViewer; 13 | //O2Ref:_FindingsViewer (O2 Tool).exe 14 | //O2Ref:O2_ImportExport_Misc.dll 15 | 16 |

-------------------------------------------------------------------------------- /Utils/O2_StandAlone_Modules/HostLocalWebsite/Util - Start .NET WebServer on Local Folder.h2: -------------------------------------------------------------------------------- 1 | var topPanel = O2Gui.open("Util - Start .NET WebServer on Local Folder",800,400); 2 | topPanel.insert_LogViewer(); 3 | 4 | var hostLocalWebsite = topPanel.add_Control(); 5 | hostLocalWebsite.start(); 6 | //using O2.Tool.HostLocalWebsite.ascx 7 | //O2File:ascx_HostLocalWebsite.cs 8 | //O2Embed:CassiniDev_4.0.exe 9 | //O2Ref:CassiniDev_4.0.exe -------------------------------------------------------------------------------- /Utils/O2_StandAlone_Modules/HostLocalWebsite/main.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | using System; 3 | using FluentSharp.CoreLib.Interfaces; 4 | using FluentSharp.WinFormUI.Utils; 5 | using O2.Tool.HostLocalWebsite.ascx; 6 | 7 | //O2File:ascx_HostLocalWebsite.cs 8 | //O2File:ascx_HostLocalWebsite.Designer.cs 9 | //O2File:webservices.cs 10 | 11 | namespace O2.Tool.HostLocalWebsite 12 | { 13 | internal static class main 14 | { 15 | private static void startMain() 16 | { 17 | Main(new string[]{}); 18 | } 19 | private static void Main(String[] asArgs) 20 | { 21 | 22 | if (O2AscxGUI.launch("O2 Tool - Host Local Website")) 23 | { 24 | O2AscxGUI.openAscx(typeof (ascx_HostLocalWebsite), O2DockState.Document, "Host Local Website"); 25 | } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Utils/O2_StandAlone_Modules/Java Execution.h2.txt: -------------------------------------------------------------------------------- 1 | 2 |

3 | //return "_JavaExecution (O2 Tool).exe".assembly().type("Program").invokeStatic("Main"); 4 | Processes.startProcess("_JavaExecution (O2 Tool).exe"); 5 | 6 | return ""; 7 | //O2Ref:_JavaExecution (O2 Tool).exe 8 | //O2Ref:O2_External_IKVM.dll 9 | //O2Download:_IKVM_Runtime.zip 10 | 11 | 12 |

-------------------------------------------------------------------------------- /Utils/O2_StandAlone_Modules/SearchEngine/Tool - Search Engine.h2: -------------------------------------------------------------------------------- 1 | //open.logViewer(); 2 | 3 | new SearchEngineGui().buildGui(); 4 | 5 | 6 | // new ascx_SearchTargets(); 7 | // new ascx_SearchResults(); 8 | 9 | //using O2.Tool 10 | //O2File:SearchEngineGui.cs 11 | //NuGet:FluentSharp.WinFormsUI -------------------------------------------------------------------------------- /Utils/Web/SimpleCSharpREPL.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | 3 | using FluentSharp.REPL.Controls; 4 | using FluentSharp.REPL.Utils; 5 | 6 | //O2Ref:FluentSharp.REPL.exe 7 | 8 | namespace O2.XRules.Database.Utils 9 | { 10 | public class CSharpREPL 11 | { 12 | public static ascx_Panel_With_Inspector launch() 13 | { 14 | return open.scriptEditor(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Utils/Web/Tool - IE Browser.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | var topPanel = "Tool - IE Browser".popupWindow(900,600); 4 | var browser = topPanel.add_WebBrowser_with_NavigationBar(); 5 | browser.open("https://www.google.com"); 6 | 7 |

-------------------------------------------------------------------------------- /Utils/Web/Util - Browser REPL.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | var topPanel = "Util - Browser REPL".popupWindow(700,400); 4 | topPanel.add_WebBrowser_Control().showMessage("Welcome to O2's WebBrowser REPL script environment") 5 | .script_Me("ie", topPanel.insert_Below()); 6 | 7 | return topPanel; 8 | 9 |

-------------------------------------------------------------------------------- /Utils/Windows/Util - File Mapping (by extension).h2: -------------------------------------------------------------------------------- 1 | O2Gui.open(); -------------------------------------------------------------------------------- /Utils/Windows/Util - Open Windows Hosts file.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | //var topPanel = O2Gui.open<Panel>("{name}",700,400); 4 | 5 | var file = @"C:\Windows\System32\drivers\etc\hosts"; 6 | var control = file.showInCodeViewer(); 7 | control.parentForm().height(700).width(800); 8 | control.insert_LogViewer(); 9 | 10 |

-------------------------------------------------------------------------------- /Utils/Windows/Util - Quick File Browser (with Browser and REPL).h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | //var topPanel = panel.add_Panel(true); 4 | var topPanel = "Util - Quick File Browser (with Browser and REPL)".popupWindow(700,500).insert_LogViewer(); 5 | var browser = topPanel.title("Selected file contents").add_WebBrowser(); 6 | 7 | Action<string> openFile = 8 | (file)=>{ 9 | browser.open(file); 10 | }; 11 | 12 | topPanel.insert_FolderViewer_Simple(openFile); 13 | 14 | topPanel.mainMenu() 15 | .add_Menu("Debug") 16 | .add_MenuItem("Open REPL Script GUI", ()=> browser.script_Me()); 17 | 18 | 19 | //O2Tag_DontAddExtraO2Files; 20 | 21 | 22 |

-------------------------------------------------------------------------------- /Utils/Windows/Util - Quick File Browser (with Code Viewer and REPL).h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | //var topPanel = panel.add_Panel(true); 4 | var topPanel = "Util - Quick File Browser (with CodeViewer and REPL)".popupWindow(700,500).insert_LogViewer(); 5 | var codeViewer = topPanel.title("Selected file contents").add_SourceCodeViewer(); 6 | 7 | Action<string> openFile = 8 | (file)=>{ 9 | codeViewer.open(file); 10 | }; 11 | 12 | topPanel.insert_FolderViewer_Simple(openFile); 13 | 14 | topPanel.mainMenu() 15 | .add_Menu("Debug") 16 | .add_MenuItem("Open REPL Script GUI", ()=> topPanel.parentForm().script_Me()); 17 | 18 | 19 | //O2Tag_DontAddExtraO2Files; 20 | 21 | 22 |

-------------------------------------------------------------------------------- /Utils/Windows/Util - Quick File Browser (with Notepad).h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | //var topPanel = panel.add_Panel(true); 4 | var topPanel = "Util - Quick File Browser (with Notepad)".popupWindow(700,500).insert_LogViewer(); 5 | var textArea = topPanel.title("Selected file contents").add_TextArea(); 6 | 7 | Action<string> openFile = 8 | (file)=>{ 9 | var fileContents = file.fileContents(); 10 | textArea.set_Text(fileContents); 11 | }; 12 | 13 | topPanel.insert_FolderViewer_Simple(openFile); 14 | 15 | //O2Tag_DontAddExtraO2Files; 16 | 17 | 18 |

-------------------------------------------------------------------------------- /Utils/Windows/Util - Quick File Search.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | var simpleSearch = O2Gui.open<ascx_SimpleFileSearch>("Util - Simple File Search", 500,400); 4 | 5 | var localScriptsFolder = PublicDI.config.LocalScriptsFolder; 6 | var filesToShow = localScriptsFolder.files(true,"*.cs","*.h2","*.o2"); 7 | 8 | simpleSearch.loadFiles(localScriptsFolder, filesToShow); 9 | 10 | //O2Tag_DontAddExtraO2Files 11 | 12 |

-------------------------------------------------------------------------------- /Utils/Windows/Util - Simple Text Editor.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | var richTextBox = O2Gui.open<RichTextBox>("Simple TextEditor (*.RTF based)", 400,300); 4 | //.insert_LogViewer(); 5 | 6 | richTextBox.onDrop( 7 | (file)=>{ 8 | if (file.isFile() && file.extension("*.rtf")) 9 | richTextBox.set_Rtf(file.fileContents()); 10 | }); 11 | richTextBox.add_ContextMenu() 12 | .add_MenuItem("Save", 13 | ()=>{ 14 | var fileToSave = O2Forms.askUserForFileToSave(Environment.CurrentDirectory,"*.rtf"); 15 | richTextBox.SaveFile(fileToSave); 16 | }); 17 | 18 | return richTextBox; 19 | 20 |

-------------------------------------------------------------------------------- /Utils/_O2_Development/Test - Code snippet compile test.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | return "code snippet compile test: {0}".format("1.2.3 ...."); 4 | 5 |

-------------------------------------------------------------------------------- /Utils/_Sample Files/DefaultUnitTest.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | using System; 3 | using System.IO; 4 | using System.Collections.Generic; 5 | using System.Diagnostics; 6 | using System.Text; 7 | 8 | //O2Ref:nunit.framework.dll 9 | using NUnit.Framework; 10 | 11 | namespace O2.XRules.Database.UnitTests 12 | { 13 | [TestFixture] 14 | public class SimpleUnitTest 15 | { 16 | [Test] 17 | public void Test1() 18 | { 19 | Assert.That(1 == 1,"If this fails you have bigger problems :)"); 20 | } 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Utils/_Sample Files/Hello_O2_World.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | 3 | using FluentSharp.WinForms; 4 | using FluentSharp.WinForms.Utils; 5 | 6 | 7 | namespace O2.XRules.Database.Samples 8 | { 9 | public class myFirstScripts 10 | { 11 | public static void sayHelloO2World() 12 | { 13 | var response = "Hello there, do you want me to say hello to you?".askUserQuestion(); 14 | if (response) 15 | DebugMsg.showMessageBox("Thanks and Hello from the OWASP O2 Platform :)"); 16 | } 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Utils/_Sample Files/Support files For Unit Tests/_Sample_UnitTests.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | 3 | //O2Ref:nunit.framework.dll 4 | using NUnit.Framework; 5 | 6 | namespace O2.Core.XRules._UnitTests.CSharp_Tests 7 | { 8 | [TestFixture] 9 | public class _Sample_UnitTests 10 | { 11 | [Test] 12 | public void test1() 13 | { 14 | Assert.That(true); 15 | } 16 | 17 | [Test] 18 | public void test2_willSucessed() 19 | { 20 | Assert.That(1==1); 21 | } 22 | 23 | [Test] 24 | public void test1_willFail() 25 | { 26 | Assert.Fail("This is a message"); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Utils/_VisualStudio_Projects/O2.Platform.Scritps.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "O2.Platform.Scritps", "O2.Platform.Scritps.csproj", "{154E3330-8535-40D1-9C8D-E447462115F2}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {154E3330-8535-40D1-9C8D-E447462115F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {154E3330-8535-40D1-9C8D-E447462115F2}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {154E3330-8535-40D1-9C8D-E447462115F2}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {154E3330-8535-40D1-9C8D-E447462115F2}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /_Custom_O2s/Fiddler - HTTP Debugging Proxy (Custom O2).h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | "Util - Fiddler (Http Debugging Proxy).h2".local().executeH2Script(); 4 | 5 |

-------------------------------------------------------------------------------- /_Custom_O2s/_Templates/Empty_Class.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | using System; 3 | using System.Linq; 4 | using System.Collections.Generic; 5 | using System.Windows.Forms; 6 | using System.Text; 7 | using FluentSharp.CoreLib; 8 | using FluentSharp.WinForms; 9 | using FluentSharp.REPL; 10 | 11 | namespace O2.Script 12 | { 13 | public class Empty_Class 14 | { 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /_Custom_O2s/_Templates/Empty_XRule.cs: -------------------------------------------------------------------------------- 1 | // This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0) 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Reflection; 6 | using System.Text; 7 | using FluentSharp.CoreLib; 8 | using FluentSharp.CoreLib.API; 9 | using FluentSharp.CoreLib.Interfaces; 10 | using FluentSharp.WinForms; 11 | using FluentSharp.REPL; 12 | 13 | namespace O2.Script 14 | { 15 | public class EmptyXRule : KXRule 16 | { 17 | private static IO2Log log = PublicDI.log; 18 | 19 | public EmptyXRule() 20 | { 21 | Name = "Empty_XRule"; 22 | } 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /_Custom_O2s/_template (Custom O2).h2: -------------------------------------------------------------------------------- 1 | var title = "Custom O2"; 2 | 3 | var ribbon = CustomO2.create(title); // stand alone version 4 | //var ribbon = CustomO2.create(panel.clear().add_Panel(),title); // use when inside 'Quick Development GUI' 5 | 6 | var customO2 = ribbon.add_Tab("Custom O2"); 7 | customO2.add_RibbonGroup("Group") 8 | .add_RibbonButton_Script("IE Automation","ascx_IE_ScriptExecution.cs"); 9 | 10 | 11 | //ribbon.add_Tab_BrowserAutomation(); 12 | ribbon.add_Tab_MiscTools(); 13 | 14 | //using O2.XRules.Database.Utils 15 | 16 | //O2File:CustomO2.cs 17 | 18 | //O2Ref:WindowsFormsIntegration.dll 19 | //O2Ref:RibbonControlsLibrary.dll 20 | 21 | //O2Ref:PresentationFramework.dll 22 | //O2Ref:PresentationCore.dll 23 | //O2Ref:WindowsBase.dll 24 | //O2Ref:System.Xaml.dll -------------------------------------------------------------------------------- /_Custom_O2s/v1.5/bullet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Custom_O2s/v1.5/bullet.gif -------------------------------------------------------------------------------- /_Custom_O2s/v1.5/external.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Custom_O2s/v1.5/external.png -------------------------------------------------------------------------------- /_Custom_O2s/v1.5/images/BlackBox_CustomO2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Custom_O2s/v1.5/images/BlackBox_CustomO2.jpg -------------------------------------------------------------------------------- /_Custom_O2s/v1.5/images/DinisCruz_CustomO2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Custom_O2s/v1.5/images/DinisCruz_CustomO2.jpg -------------------------------------------------------------------------------- /_Custom_O2s/v1.5/images/WebScarab_CustomO2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Custom_O2s/v1.5/images/WebScarab_CustomO2.jpg -------------------------------------------------------------------------------- /_DataFiles/Jars/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/Jars/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /_DataFiles/O2Findings/AltoroJ_2.5_8.6_OOB.ozasmt.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/O2Findings/AltoroJ_2.5_8.6_OOB.ozasmt.zip -------------------------------------------------------------------------------- /_DataFiles/O2Findings/HacmeBank_COMPLETE_TRACES.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/O2Findings/HacmeBank_COMPLETE_TRACES.zip -------------------------------------------------------------------------------- /_DataFiles/O2Findings/JpetStore_8.6.ozasmt.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/O2Findings/JpetStore_8.6.ozasmt.zip -------------------------------------------------------------------------------- /_DataFiles/SampleDiagrams/DownloadO2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/SampleDiagrams/DownloadO2.jpg -------------------------------------------------------------------------------- /_DataFiles/SampleDiagrams/emptyDiagram.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /_DataFiles/SampleFiles/Request.Write.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web; 3 | 4 | namespace O2.PoCs 5 | { 6 | public class originalCode 7 | { 8 | //HttpContext Context = HttpContext.Current; 9 | HttpRequest Request = HttpContext.Current.Request; 10 | HttpResponse Response = HttpContext.Current.Response; 11 | 12 | 13 | public void xssVulnerability() 14 | { 15 | xssVulnerability(Request["payload"]); 16 | } 17 | 18 | public void xssVulnerability(string payload) 19 | { 20 | Response.Write(payload); 21 | } 22 | 23 | 24 | 25 | } 26 | } -------------------------------------------------------------------------------- /_DataFiles/SampleFiles/Simple_Html_Form.html: -------------------------------------------------------------------------------- 1 |  2 | 3 |

this is a simple Html form

4 |
5 | field 1 :
6 | field 2 :
7 | 8 |
9 | 10 | 11 | -------------------------------------------------------------------------------- /_DataFiles/_Images/CustomO2Versions/O2_Version_For_DinisCruz.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/CustomO2Versions/O2_Version_For_DinisCruz.jpg -------------------------------------------------------------------------------- /_DataFiles/_Images/H2Logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/H2Logo.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/HacmebankScanner/HameBank_LoginPage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/HacmebankScanner/HameBank_LoginPage.jpg -------------------------------------------------------------------------------- /_DataFiles/_Images/HacmebankScanner/HameBank_Login_Page.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/HacmebankScanner/HameBank_Login_Page.jpg -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/Clojure-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/Clojure-icon.png -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/Execute_arrow.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/Execute_arrow.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/Notepad.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/Notepad.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/Utility.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/Utility.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/cheshire_cat.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/cheshire_cat.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/devil.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/devil.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/email.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/email.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/in_FormImages/blogs-stack.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/in_FormImages/blogs-stack.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/in_FormImages/execute.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/in_FormImages/execute.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/in_FormImages/java.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/in_FormImages/java.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/in_FormImages/owasp.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/in_FormImages/owasp.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/in_FormImages/scripts.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/in_FormImages/scripts.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/in_FormImages/target.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/in_FormImages/target.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/package_development.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/package_development.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/web.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/web.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/Icons/zip.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/Icons/zip.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/O2Logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/O2Logo.ico -------------------------------------------------------------------------------- /_DataFiles/_Images/O2Logo_Small.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/O2Logo_Small.gif -------------------------------------------------------------------------------- /_DataFiles/_Images/O2_Logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/O2_Logo.gif -------------------------------------------------------------------------------- /_DataFiles/_Images/O2_Logo_no_Shadow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/O2_Logo_no_Shadow.jpg -------------------------------------------------------------------------------- /_DataFiles/_Images/OWASP_O2_Platform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/OWASP_O2_Platform.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/ColorPalette.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/ColorPalette.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/ConnectionManager_48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/ConnectionManager_48x48.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/Default_16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/Default_16x16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/FormatPainter_16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/FormatPainter_16x16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/NewDocument_16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/NewDocument_16x16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/Open_16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/Open_16x16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/OuterBorders_16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/OuterBorders_16x16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/Paragraph_16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/Paragraph_16x16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/Save_16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/Save_16x16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/cut16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/cut16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/cut32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/cut32.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/delete16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/delete16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/delete32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/delete32.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/edit.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/favorites16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/favorites16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/favorites32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/favorites32.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/folder16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/folder16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/folder32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/folder32.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/history16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/history16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/history32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/history32.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/home16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/home16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/home32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/home32.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/image.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/mail16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/mail16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/mail32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/mail32.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/paste16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/paste16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/paste32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/paste32.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/player_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/player_play.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/player_stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/player_stop.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/props16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/props16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/props32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/props32.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/redled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/redled.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/restart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/restart.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/save16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/save16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/save32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/save32.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/search16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/search16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/search32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/search32.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/start.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/stop.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/undo16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/undo16.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/undo32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/undo32.png -------------------------------------------------------------------------------- /_DataFiles/_Images/RibbonBarIcons/video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_DataFiles/_Images/RibbonBarIcons/video.png -------------------------------------------------------------------------------- /_Sample_Vulns/Fuzzing/PoC - Fuzzing Images - Gif.h2: -------------------------------------------------------------------------------- 1 | //O2Include:PoC - Fuzzing Images.h2 2 | 3 | //var sourceFolder = "badImages_Ico".tempDir(false); 4 | var baseFolder = @"E:\O2\Releases\O2_Platform_5.5_RC1\O2.Temp\10_23_2014"; 5 | var sourceFolder = baseFolder.pathCombine("badImages_Gif_False"); 6 | //maxItems = 10; 7 | fuzzFromFolder(sourceFolder); 8 | //var topPanel = "{name}".popupWindow(700,400); 9 | 10 | return "done"; -------------------------------------------------------------------------------- /_Sample_Vulns/Fuzzing/PoC - Fuzzing Images - Ico.h2: -------------------------------------------------------------------------------- 1 | //O2Include:PoC - Fuzzing Images.h2 2 | 3 | var baseFolder = @"C:\Users\o2\AppData\Roaming\OWASP_O2_Platform_5.3\8_15_2013"; 4 | var sourceFolder = baseFolder.pathCombine("badImages_Ico"); 5 | //maxItems = 10; 6 | fuzzFromFolder(sourceFolder); 7 | 8 | return "done"; -------------------------------------------------------------------------------- /_Sample_Vulns/Fuzzing/PoC - Fuzzing Images - Png.h2: -------------------------------------------------------------------------------- 1 | //O2Include:PoC - Fuzzing Images.h2 2 | 3 | var baseFolder = @"C:\Users\o2\AppData\Roaming\OWASP_O2_Platform_5.3\8_15_2013"; 4 | var sourceFolder = baseFolder.pathCombine("badImages_Png"); 5 | //maxItems = 10; 6 | fuzzFromFolder(sourceFolder); 7 | 8 | return "done"; -------------------------------------------------------------------------------- /_Sample_Vulns/Fuzzing/PoC - Fuzzing Images.h2: -------------------------------------------------------------------------------- 1 | 2 | var topPanel = "Fuzz Image in IE".popupWindow(1200,800); 3 | 4 | var maxItems = -1; 5 | 6 | var browser = topPanel.add_WebBrowser_Control(); 7 | 8 | Action fuzzFromFolder = 9 | (folder)=>{ 10 | var images = folder.files().take(maxItems); 11 | var count = 0; 12 | var total = images.size(); 13 | 14 | var htmlTemplate = @"

{0}

15 |

[{1}/{2}]

16 | 17 | 18 | 19 | 20 | "; 21 | 22 | foreach(var image in images.take(-1)) 23 | { 24 | var html = htmlTemplate.format(image,++count,total); 25 | browser.set_Html(html); 26 | } 27 | }; -------------------------------------------------------------------------------- /_Sample_Vulns/Javascript/Exploit - Identify logged in user.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /_Sample_Vulns/SAST_DotNET/SAST DotNet Script - Misc Vulns.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using System.Web; 3 | using System.Diagnostics; 4 | 5 | var context = HttpContext.Current; 6 | var request = context.Request; 7 | var response = context.Response; 8 | 9 | var taint = request["UserName"]; 10 | 11 | response.Write(taint); 12 | response.Redirect(taint); 13 | Process.Start(taint); 14 | File.OpenRead(taint); 15 | 16 | 17 | //O2Tag:SkipGlobalCompilation -------------------------------------------------------------------------------- /_Sample_Vulns/SAST_DotNET/SAST DotNet Script - XSS.cs: -------------------------------------------------------------------------------- 1 | //Smallest XSS Example in world :) 2 | using System.Web; 3 | 4 | var request = HttpContext.Current.Request; 5 | var response = HttpContext.Current.Response; 6 | 7 | response.Write(request["UserName"]); 8 | 9 | 10 | //O2Tag:SkipGlobalCompilation -------------------------------------------------------------------------------- /_Sample_Vulns/SAST_DotNET/SAST_DotNet_BlindSpot_Interface.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.UI; 3 | using System.Web.Services; 4 | using System.Data.SqlClient; 5 | //O2Ref:System.Web.Services.dll 6 | 7 | namespace O2.SAST_DotNet 8 | { 9 | public class BlindSpot_Interface : Page 10 | { 11 | AnInterface AnObject { get ; set; } 12 | 13 | BlindSpot_Interface() 14 | { 15 | AnObject = new AnImplementation(); 16 | } 17 | 18 | [WebMethod] 19 | public void callme(string tainted) 20 | { 21 | //write(tainted); 22 | AnObject.write(tainted); 23 | } 24 | 25 | public void write(string maybeSafe) 26 | { 27 | Response.Write(maybeSafe); 28 | } 29 | 30 | } 31 | 32 | class AnImplementation : Page, AnInterface 33 | { 34 | public void write(string maybeSafe) 35 | { 36 | Response.Write(maybeSafe); 37 | } 38 | } 39 | 40 | interface AnInterface 41 | { 42 | void write(string maybeSafe); 43 | } 44 | 45 | } -------------------------------------------------------------------------------- /_Sample_Vulns/SAST_DotNET/SAST_DotNet_Template.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.UI; 3 | using System.Web.Services; 4 | using System.Data.SqlClient; 5 | //O2Ref:System.Web.Services.dll 6 | 7 | namespace O2.SAST_DotNet 8 | { 9 | public class Template : Page 10 | { 11 | 12 | [WebMethod] 13 | public void callme(string tainted) 14 | { 15 | //write(tainted); 16 | } 17 | 18 | public void write(string maybeSafe) 19 | { 20 | Response.Write(maybeSafe); 21 | } 22 | 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/SSB IE Automation - site actions.h2: -------------------------------------------------------------------------------- 1 | var topPanel = panel.clear().add_Panel(); 2 | var ie = topPanel.add_IE_with_NavigationBar().silent(true); 3 | 4 | var ssb = new API_SuperSecureBank(ie, true); 5 | 6 | ssb.homePage(); 7 | ssb.login("as","As"); 8 | 9 | //O2File:API_SuperSecureBank.cs 10 | 11 | //using FluentSharp.Watin 12 | //O2Ref:FluentSharp.Watin.dll 13 | //O2Ref:Watin.Core.dll 14 | 15 | //O2Tag:SkipGlobalCompilation -------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/SSB PoC - XSS on 404.aspx page.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | //var topPanel = O2Gui.open<Panel>("{name}",700,400); 4 | var setPayloadLocation = (Action<string>)"Util - XSS PoC Tester - Viewer.h2".local().executeH2Script(); 5 | 6 | var ssbXSSlocation = @"http://localhost:1234/404.aspx?AttemptedUrl=Content\coantent1.dat"; 7 | setPayloadLocation(ssbXSSlocation); 8 | 9 | 10 | 11 | 12 |

-------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/SSB Tool - Configure O2 on SSB.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | //var topPanel = O2Gui.open<Panel>("{name}",700,400); 4 | var returnValues = (Dictionary<string,Object>)"Util - Deploying ASPNET O2 environment to website.h2".local().executeH2Script(); 5 | var setValues = (Action<string,string,int>) returnValues["set_Values"]; 6 | 7 | var websiteName = "SuperSecureBank"; 8 | var websiteRoot = @"C:\O2\Demos\SI - SuperSecureBank\SecurityInnovation-SuperSecureBank-938fde3\SuperSecureBank"; 9 | setValues(websiteName, websiteRoot,1234); 10 | 11 | //(returnValues["topPanel"] as Panel).closeForm_InNSeconds(5); 12 | return "ok"; 13 | 14 | 15 | 16 | 17 |

-------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/SSB Tool - Invoke WebServices via WSDL.h2: -------------------------------------------------------------------------------- 1 | 2 | var wsdlCreation = "SuperSecureBank WebServices Invocation (via WSDL)".showAsForm(1000,700 ); 3 | 4 | var svcUrl = "http://localhost.:6879/SSBService.svc"; 5 | wsdlCreation.open(svcUrl); 6 | //O2File:ascx_WSDL_Creation_and_Execution.cs 7 | //using O2.XRules.Database.Languages_and_Frameworks.AspNet -------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/SSB Tool - Open AspNet Page Viewer.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | var baseFolder = @"C:\O2\Demos\SI - SuperSecureBank\O2_Data"; 4 | 5 | var loadData = (Action<string,string, string>)"Tool - ASPNet Page Viewer (with Method and Code streams).h2".local().executeH2Script(); 6 | loadData(baseFolder.pathCombine("_Saved_AspNetPage_Objects"), 7 | baseFolder.pathCombine("O2 Method Streams"),"http://localhost:1234"); 8 | 9 | return loadData; 10 | 11 | //O2File:ascx_CodeStreams.cs 12 | 13 |

-------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/dlls/SuperSecureBank.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Sample_Vulns/SuperSecureBank/dlls/SuperSecureBank.dll -------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/dlls/SuperSecureBank.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Sample_Vulns/SuperSecureBank/dlls/SuperSecureBank.pdb -------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/dlls/SuperSecureBankService.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Sample_Vulns/SuperSecureBank/dlls/SuperSecureBankService.dll -------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/dlls/SuperSecureBankService.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Sample_Vulns/SuperSecureBank/dlls/SuperSecureBankService.pdb -------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/dlls_and_zip/SuperSecureBank.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Sample_Vulns/SuperSecureBank/dlls_and_zip/SuperSecureBank.dll -------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/dlls_and_zip/SuperSecureBank.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Sample_Vulns/SuperSecureBank/dlls_and_zip/SuperSecureBank.pdb -------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/dlls_and_zip/SuperSecureBankService.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Sample_Vulns/SuperSecureBank/dlls_and_zip/SuperSecureBankService.dll -------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/dlls_and_zip/SuperSecureBankService.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Sample_Vulns/SuperSecureBank/dlls_and_zip/SuperSecureBankService.pdb -------------------------------------------------------------------------------- /_Sample_Vulns/SuperSecureBank/dlls_and_zip/SuperSecureBankService.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Sample_Vulns/SuperSecureBank/dlls_and_zip/SuperSecureBankService.zip -------------------------------------------------------------------------------- /_Sample_Vulns/WebGoat.Net/DotNetGoat.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Sample_Vulns/WebGoat.Net/DotNetGoat.dll -------------------------------------------------------------------------------- /_Sample_Vulns/WebGoat.Net/DotNetGoat.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/o2platform/O2.Platform.Scripts/9a947804cfb8046296e2424971d0aa3cb7d9d2d7/_Sample_Vulns/WebGoat.Net/DotNetGoat.pdb -------------------------------------------------------------------------------- /_Sample_Vulns/WebGoat.Net/WG.NET Tool - Configure O2 on WebServer.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | //var topPanel = O2Gui.open<Panel>("{name}",700,400); 4 | var returnValues = (Dictionary<string,Object>)"Util - Deploying ASPNET O2 environment to website.h2".local().executeH2Script(); 5 | var setValues = (Action<string,string,int>) returnValues["set_Values"]; 6 | 7 | var websiteName = "WebGoat.NET"; 8 | var websiteRoot = @"E:\_Tests\jerryhoff-WebGoat.NET-b2403f0\WebGoat"; 9 | setValues(websiteName, websiteRoot,1234); 10 | 11 | //(returnValues["topPanel"] as Panel).closeForm_InNSeconds(5); 12 | return "ok"; 13 | 14 | 15 | 16 | 17 |

-------------------------------------------------------------------------------- /_Sample_Vulns/WebGoat.Net/WG.NET Tool - Open AspNet Page Viewer.h2: -------------------------------------------------------------------------------- 1 | 2 |

3 | var baseFolder = @"E:\_Tests\jerryhoff-WebGoat.NET-b2403f0\WebGoat"; 4 | 5 | var loadData = (Action<string,string, string>)"Tool - ASPNet Page Viewer (with Method and Code streams).h2".local().executeH2Script(); 6 | loadData(baseFolder.pathCombine("_Saved_AspNetPage_Objects"), 7 | baseFolder.pathCombine("O2 Method Streams"),"http://localhost:1234"); 8 | 9 | return loadData; 10 | 11 | //O2File:ascx_CodeStreams.cs 12 | 13 |

-------------------------------------------------------------------------------- /_Sample_Vulns/XmlSerialization/XmlDecode/exploits/Simple string.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | a string 4 | 5 | -------------------------------------------------------------------------------- /_Sample_Vulns/XmlSerialization/XmlDecode/exploits/Start calc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | c:\\windows\\system32\\calc.exe 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /_Sample_Vulns/XmlSerialization/XmlDecode/exploits/XXE - get local file.xml: -------------------------------------------------------------------------------- 1 | ]> 2 | 3 | &xxx; 4 |