Skip to content
Browse files

Fixing Injection into other process script

Minor changes to Checmarx intergration code
added installer for ZAP, MySQL and Sqlite
  • Loading branch information...
1 parent 5ce643b commit 0047975e5b3f5b18dc6c8fddb9fa557935fc722b @DinisCruz DinisCruz committed Jun 4, 2013
View
0 ...rx/2.6.3_WSDL_files/CxPortalWebService.cs → ...3_WSDL_files/CxPortalWebService._2.6.3.cs
File renamed without changes.
View
8 3rdParty/CheckMarx/Util - CheckMarx - Create proxy files for CxWebService.h2
@@ -1,11 +1,13 @@
var topPanel = "Util - CheckMarx - Create proxy files for CxWebService".popupWindow(700,400);
//var topPanel = panel.clear().add_Panel();
-var webRoot_Folder = "_cxProxy".tempDir(false);
+var webRoot_Folder = "_cxProxy".tempDir(false);
+
var webBrowser = topPanel.insert_Right().add_WebBrowser();
var folderViewer = topPanel.add_FolderViewer(webRoot_Folder);
-var baseUrl = "http://local:57879/Cxwebinterface";
-var wsdlUrl = "http://local/CxWebInterface/CxWebService.asmx";
+var baseUrl = "http://localhost:59750/Cxwebinterface";
+//var wsdlUrl = "http://local/CxWebInterface/CxWebService.asmx";
+var wsdlUrl = "http://checkmarx.teammentor.net/CxWebInterface/CxWebService.asmx";
var asmxFileName = wsdlUrl.fileName();
var webServiceNamespace = "http://Checkmarx.com/"; // note: just http://Checkmarx.com will not work
View
37 3rdParty/OWASP/ZAProxy/ZAProxy_Installer.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Diagnostics;
+using O2.Kernel;
+using O2.Kernel.ExtensionMethods;
+using O2.DotNetWrappers.ExtensionMethods;
+using O2.XRules.Database.Utils;
+//O2File:Tool_API.cs
+
+namespace O2.XRules.Database.APIs
+{
+ public class testInstall
+ {
+ public static void test()
+ {
+ new MySql_Install().start();
+ }
+ }
+
+ public class MySql_Install : Tool_API
+ {
+ public MySql_Install()
+ {
+ config("ZAProxy",
+ "https://zaproxy.googlecode.com/files/ZAP_WEEKLY_D-2013-05-20.zip".uri(),
+ @"ZAP_D-2013-05-20\zap.bat");
+ installFromZip_Web();
+ }
+ //
+
+ public Process start()
+ {
+ if (this.isInstalled())
+ return this.Executable.startProcess();
+ return null;
+ }
+ }
+}
View
25 3rdParty/Snoop/Process Injection Tests/Injected_Dll.cs
@@ -29,12 +29,20 @@ public class Test
public static void info(string message)
{
- Debug.Write("[Info] " + message);
- var type = assembly.GetType("O2.Kernel.PublicDI");
- var method = type.GetMethod("get_log");
- var kConfig = method.Invoke(null, new object[] { });
- var info = kConfig.GetType().GetMethod("i");
- info.Invoke(kConfig, new object[] { message});
+ //Debug.Write("[Info] " + message);
+ try
+ {
+ var type = assembly.GetType("O2.Kernel.PublicDI");
+ var method = type.GetMethod("get_log");
+ var kConfig = method.Invoke(null, new object[] { });
+ var info = kConfig.GetType().GetMethod("info");
+ info.Invoke(kConfig, new object[] {message, new object[] { }});
+ }
+ catch(Exception ex)
+ {
+ Debug.Write("[Error in Info] " + ex.Message);
+ Debug.Write("[Error in Info] " + ex.StackTrace);
+ }
}
public static void startProcess(string exe)
@@ -90,8 +98,8 @@ public static Assembly compileFile(string file)
var errorMessageProperty = compileEngineType.GetField("sbErrorMessage");
- info("errorMessageProperty: " + errorMessageProperty);
- info("errorMessageProperty: " + errorMessageProperty.GetValue(compileEngine));
+ //info("errorMessageProperty: " + errorMessageProperty);
+ //info("errorMessageProperty: " + errorMessageProperty.GetValue(compileEngine));
if (compiledAssembly != null)
info("Compiled file ok to: " + compiledAssembly.Location);
@@ -119,6 +127,7 @@ public static void executeDefaultO2Script()
{
info("compiling Default O2 Script: " + file);
var compiledAssembly = compileFile(file);
+ info("after compilation");
if (compiledAssembly == null)
info("Error: in injectO2Script, failed to compile: " + file);
else
View
37 3rdParty/_Installers/MySql_Installer.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Diagnostics;
+using O2.Kernel;
+using O2.Kernel.ExtensionMethods;
+using O2.DotNetWrappers.ExtensionMethods;
+using O2.XRules.Database.Utils;
+//O2File:Tool_API.cs
+
+namespace O2.XRules.Database.APIs
+{
+ public class testInstall
+ {
+ public static void test()
+ {
+ new MySql_Install().start();
+ }
+ }
+
+ public class MySql_Install : Tool_API
+ {
+ public MySql_Install()
+ {
+ config("MySql",
+ "http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.11-win32.zip".uri(),
+ @"mysql-5.6.11-win32\bin\mysql.exe");
+ installFromZip_Web();
+ }
+ //
+
+ public Process start()
+ {
+ if (this.isInstalled())
+ return this.Executable.startProcess("--help");
+ return null;
+ }
+ }
+}
View
37 3rdParty/_Installers/Sqlite_Installer.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Diagnostics;
+using O2.Kernel;
+using O2.Kernel.ExtensionMethods;
+using O2.DotNetWrappers.ExtensionMethods;
+using O2.XRules.Database.Utils;
+//O2File:Tool_API.cs
+
+namespace O2.XRules.Database.APIs
+{
+ public class testInstall
+ {
+ public static void test()
+ {
+ new MySql_Install().start();
+ }
+ }
+
+ public class MySql_Install : Tool_API
+ {
+ public MySql_Install()
+ {
+ config("sqlite",
+ "http://www.sqlite.org/2013/sqlite-shell-win32-x86-3071700.zip".uri(),
+ @"sqlite3.exe");
+ installFromZip_Web();
+ }
+ //
+
+ public Process start()
+ {
+ if (this.isInstalled())
+ return this.Executable.startProcess();
+ return null;
+ }
+ }
+}

0 comments on commit 0047975

Please sign in to comment.
Something went wrong with that request. Please try again.