/
BlackBox and Browser Automation (Custom O2).h2
89 lines (68 loc) · 4.22 KB
/
BlackBox and Browser Automation (Custom O2).h2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
//panel.clear();
//var topPanel = panel.add_Panel();
var topPanel = O2Gui.open<Panel>("BlackBox and Browser Automation (Custom O2)", 800,163);
var currentScript = "BlackBox and Browser Automation (Custom O2).h2".local();
var ribbon = topPanel.add_Control<WPF_Ribbon>();
ribbon.title("BlackBox (plus IE Automation, Javascript, Html)");
var browserAutomation = ribbon.Ribbon.add_RibbonTab("Browser Automation");
browserAutomation.add_RibbonGroup("IE Script development environments")
.add_RibbonButton_Script("IE Automation","ascx_IE_ScriptExecution.cs")
.add_RibbonButton_H2Script("IE Automation Development","IE Automation using WatiN.h2")
.add_RibbonButton_H2Script("WatiN Recorder","WatiN - Open 'Test Recorder' in new process.h2");
var html = ribbon.Ribbon.add_RibbonTab("Html");
html.add_RibbonGroup("Html")
.add_Script("Html Tag Viewer","ascx_HtmlTagViewer.cs")
.add_RibbonButton_Script("View WebPage details","ascx_View_WebPage_Details.cs.o2")
.add_RibbonButton_H2Script("Quick Html Viewer","Quick HtmlCode Viewer.h2")
.add_RibbonButton_H2Script("Simple Html Editor -> Viewer","Util - Simple Html Viewer.h2")
.add_RibbonButton_Script("Html Editor","ascx_Html_Editor.cs.o2")
.add_RibbonButton_H2Script("View and Search Web Page","Util - View and search WebPage code.h2");
html.add_RibbonGroup("Html Transformations")
.add_Script("Util - Web Encoder & Decoder","Util - Web Encoder (with AntiXss Support).h2");
var javascript = ribbon.Ribbon.add_RibbonTab("Javascript");
javascript.add_RibbonGroup("Invocation and Debug")
.add_RibbonButton_H2Script("Javascript Object Viewer","Util - Javascript Object viewer.h2")
.add_RibbonButton_H2Script("Get Javascript Objects (using Firefox)" ,"Util - get Javascript Objects.h2");
javascript.add_RibbonGroup("AST")
.add_RibbonButton_H2Script("Javascript AST Viewer","Web - Javascript AST Viewer.h2")
.add_RibbonButton_H2Script("JavaScript Stats Viewer","Web - JavaScript Stats Viewer.h2");
javascript.add_RibbonGroup("XSS")
.add_RibbonButton_H2Script("XSS PoC Builder","Web - XSS PoC Builder.h2");
var frameworks = ribbon.Ribbon.add_RibbonTab("Frameworks");
frameworks.add_RibbonGroup("ASP.NET")
.add_Script("ViewState_Decoder (for ASP.NET 3.0)","Util - ViewState_Decoder_ASP.NET 3.0.h2")
.add_Script("Aspx PoC Builder","Util - Aspx PoC Builder.h2");
frameworks.add_RibbonGroup("DWR")
.add_RibbonButton_H2Script("DWR Calls Monitor","Util - DWR Calls Monitor.h2")
.add_RibbonButton_H2Script("DWR Functions Viewer and Invoker","Util - DWR Functions Viewer and Invoker.h2");
ribbon.Ribbon.add_RibbonTab("Misc")
.add_RibbonGroup("This Custom O2")
.add_RibbonButton("Edit this Custom O2 Script",
() => O2Gui.open<Panel>("Custom O2",800,400)
.add_SourceCodeEditor()
.open(currentScript))
.add_RibbonButton("Relaunch",
()=>{
topPanel.parentForm().close();
currentScript.executeH2Script();
})
.add_RibbonButton_H2Script("Open a Log Viewer window","Util - LogViewer.h2");
/*var demoVulnerableApplications = ribbon.Ribbon.add_RibbonTab("Demo Vulnerable Applications");
demoVulnerableApplications.add_RibbonGroup("Browser Automation")
.add_RibbonButton_H2Script(topPanel,"Browser Automation - IE Demos","Browser Automation_IE Demos.h2");
demoVulnerableApplications.add_RibbonGroup("HacmeBank")
.add_RibbonButton_Script(topPanel,"HacmeBank BlackBox Exploits / Unit tests","HacmeBank_BlackBox_Exploits.cs")
.add_RibbonButton_H2Script(topPanel,"Full PoC (Black Box to WhiteBox)", "HacmeBank_FullPoc.h2")
.add_RibbonButton_H2Script(topPanel,"Map HacmeBank Ascx EntryPoints", "Map HacmeBank Ascx EntryPoints.h2");
demoVulnerableApplications.add_RibbonGroup("HacmeBank")
.add_RibbonButton_Script(topPanel,"WebGoat BlackBox Exploits / Unit tests","WebGoat_BlackBox_Exploits.cs");
*/
//using O2.XRules.Database.Utils
//O2File:WPF_Ribbon.cs
//using Microsoft.Windows.Controls.Ribbon;
//O2Ref:WindowsFormsIntegration.dll
//O2Ref:RibbonControlsLibrary.dll
//O2Ref:PresentationFramework.dll
//O2Ref:PresentationCore.dll
//O2Ref:WindowsBase.dll
//O2Ref:System.Xaml.dll