Skip to content

Commit 90e8110

Browse files
committed
More FluentSharp fixes
1 parent 3e94450 commit 90e8110

File tree

63 files changed

+261
-1361
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+261
-1361
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ bin
55
*.csproj
66
*.user
77
_VisualStudio_Projects
8+
9+
*.suo
10+
11+
*.ncrunchsolution

3rdParty/Chrome/API_Chrome_Hijack.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// 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)
22
using System;
3+
using System.Management;
34
using System.Windows.Forms;
45
using System.Reflection;
56
using System.Diagnostics;
@@ -104,7 +105,7 @@ public static API_Chrome_Hijack hijack_Chrome(this API_Chrome_Hijack chromeHijac
104105
var targetWindow = mainWindowHandle.child_Windows().second();
105106
return targetWindow;
106107

107-
return mainWindowHandle; // for now hijack the whole thing
108+
//return mainWindowHandle; // for now hijack the whole thing
108109
});
109110

110111
}

3rdParty/Chrome/CefSharp_Installer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ public CefSharp_Installer(bool installNow)
3030
public bool install()
3131
{
3232
"Installing {0}".info(ToolName);
33-
return installFromZip_Web();
34-
return false;
33+
return installFromZip_Web();
3534
}
3635

3736
public Process start()

3rdParty/HawkEye/API_HawkEye.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using System;
22
using System.Windows.Forms;
3-
using O2.Kernel;
4-
using O2.DotNetWrappers.ExtensionMethods;
3+
using FluentSharp.CoreLib;
4+
using FluentSharp.REPL;
5+
using FluentSharp.WinForms;
6+
57
//O2File:WindowFinder.cs
68

79
namespace O2.XRules.Database.APIs

3rdParty/HawkEye/Ctrl_ProcessFinder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// 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)
22
using System;
3-
using System.Linq;
43
using System.Diagnostics;
54
using System.Windows.Forms;
6-
using System.Collections.Generic;
7-
using O2.DotNetWrappers.ExtensionMethods;
5+
using FluentSharp.CoreLib;
6+
using FluentSharp.WinForms;
7+
88
//O2File:WindowFinder.cs
99

1010
namespace O2.XRules.Database.APIs

3rdParty/HawkEye/WindowFinder.cs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
//based on the code from HawkEye
22
using System;
3-
using System.IO;
4-
using System.Text;
53
using System.Drawing;
64
using System.Diagnostics;
75
using System.Windows.Forms;
8-
using System.ComponentModel;
9-
using System.Runtime.InteropServices;
10-
using System.Runtime.CompilerServices;
11-
using O2.XRules.Database.Utils;
12-
using O2.DotNetWrappers.ExtensionMethods;
6+
using System.ComponentModel;
7+
using FluentSharp.CoreLib;
8+
using FluentSharp.WinForms;
9+
using FluentSharp.WinForms.Utils;
1310

1411

1512
//O2File:API_WinAPI.cs
@@ -90,7 +87,7 @@ public WindowFinder()
9087
this.pink();*/
9188
base.Name = "WindowFinder";
9289
base.Size = new Size(32, 32);
93-
this.BackgroundImage = O2.Platform.BCL.O2_Views_ASCX.FormImages.target.ToBitmap();
90+
this.BackgroundImage = FormImages.target.ToBitmap();
9491
this.BackgroundImageLayout = ImageLayout.Stretch;
9592

9693
}
@@ -108,7 +105,7 @@ public void StartSearch()
108105
// Cursor.Current = new Cursor("Eye.cur".local());
109106
//else
110107
// Cursor.Current = Cursors.Cross;
111-
Cursor.Current = new Cursor(new System.IO.MemoryStream(O2.Platform.BCL.O2_Views_ASCX.FormImages.Eye));
108+
Cursor.Current = new Cursor(new System.IO.MemoryStream(FormImages.Eye));
112109
base.Capture = true;
113110
base.MouseMove += new MouseEventHandler(this.WindowFinder_MouseMove);
114111
base.MouseUp += new MouseEventHandler(this.WindowFinder_MouseUp);

APIs/Windows/API_RDP.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
// 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.Windows.Forms;
4-
using System.Text;
5-
using O2.Interfaces.O2Core;
6-
using O2.Kernel;
7-
using O2.Kernel.ExtensionMethods;
8-
using O2.DotNetWrappers.ExtensionMethods;
9-
using O2.DotNetWrappers.Windows;
10-
using O2.Views.ASCX;
11-
using O2.XRules.Database.Utils;
2+
3+
using FluentSharp.CoreLib;
4+
using FluentSharp.CoreLib.API;
5+
using FluentSharp.GuiAutomation;
126

137
//O2File:API_GuiAutomation.cs
148
//O2Ref:White.Core.dll

APIs/Windows/API_WindowsMediaPlayer.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
// 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;
32
using System.Windows.Forms;
4-
using System.Drawing;
5-
using System.Collections.Generic;
6-
using System.Linq;
7-
using System.Reflection;
8-
using System.Text;
9-
using O2.Interfaces.O2Core;
10-
using O2.Kernel;
11-
using O2.Kernel.ExtensionMethods;
12-
using O2.DotNetWrappers.ExtensionMethods;
13-
using O2.Views.ASCX;
14-
using O2.XRules.Database.Utils;
3+
using FluentSharp.CoreLib;
4+
using FluentSharp.WinForms;
155
using AxWMPLib;
166
//O2Ref:Interop.WMPLib.dll
177
//O2Ref:AxInterop.WMPLib.dll

APIs/Windows/CLR/API_CLR.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
// 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)
22
using System;
33
using System.Diagnostics;
4-
using System.Collections;
5-
using System.Collections.Generic;
6-
using System.IO;
74
using System.Text;
85
using System.Runtime.CompilerServices;
96
using System.Runtime.InteropServices;
107
using System.Security;
11-
using O2.DotNetWrappers.ExtensionMethods;
12-
using O2.Kernel;
8+
using FluentSharp.CoreLib;
139

1410
namespace O2.XRules.Database.APIs
1511
{

APIs/Windows/CLR/API_Mscoree.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
// 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)
22
using System;
3-
using System.Diagnostics;
4-
using System.Collections;
53
using System.Collections.Generic;
6-
using O2.DotNetWrappers.ExtensionMethods;
7-
using System.Runtime.InteropServices;
8-
using mscoree;
4+
using FluentSharp.CoreLib;
5+
using System.Runtime.InteropServices;
6+
using mscoree;
97

108
//O2Ref:mscoree_v4.0.dll
119

0 commit comments

Comments
 (0)