-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainWindow.xaml
157 lines (126 loc) · 9.1 KB
/
MainWindow.xaml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<Window x:Class="GitRecon.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:GitRecon"
Style="{DynamicResource windowStyle}"
mc:Ignorable="d"
xmlns:res="clr-namespace:GitRecon.Resources"
Height="366" Width="563">
<Window.Title>
<MultiBinding StringFormat="{}{0} - {1}">
<Binding Source="{x:Static res:Strings.AppTitle}"/>
<Binding Source="{x:Static res:Strings.Github}"/>
</MultiBinding>
</Window.Title>
<!--<Window.Resources>
<ResourceDictionary Source="Resources/Styles.xaml"/>
</Window.Resources>-->
<Grid x:Name="MainGrid" Margin="0,0,126,0">
<Grid.ContextMenu>
<ContextMenu>
<MenuItem Header="Dark" Click="DarkThemeClick"/>
<MenuItem Header="Light" Click="LightThemeClick"/>
</ContextMenu>
</Grid.ContextMenu>
<TabControl x:Name="MainApp" Margin="0,0,-125,0" Style="{DynamicResource tabControlStyle}">
<!-- Gitrecon -->
<TabItem Header="GitRecon" Style="{DynamicResource tabItemStyle}">
<TabControl x:Name="MainTab" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{DynamicResource tabControlStyle}">
<!-- First Tab: Query by Username and find Exposed emails -->
<TabItem Header="{x:Static res:Strings.TabMenu1}" Style="{DynamicResource tabItemStyle}">
<Grid Style="{DynamicResource gridStyle}">
<TextBox Style="{DynamicResource txtInputStyle}" x:Name="txUsername" Margin="10,5,0,0" Padding="3,2,3,2" Text="Enter a username" GotFocus="OnFocusInput" />
<Button Style="{DynamicResource btnPrimaryStyle}" Content="Query" x:Name="btnEmailQuery" Margin="197,5,0,0" Padding="3,2,3,2" Click="btnEmailQuery_Click" />
<!-- Token Input Label -->
<TextBlock Style="{DynamicResource lbApiToken}" Margin="10,33,0,0" Text="API Token:"/>
<TextBox Style="{DynamicResource txtInputStyle}" x:Name="txToken" Margin="75,33,0,0" Width="200"/>
<!-- CheckBox for Ignore forks -->
<CheckBox Style="{DynamicResource chkBoxStyle}" Content="Ignore all forks" x:Name="isForksCheckBox" Margin="10,58,0,0"/>
<Label Style="{DynamicResource labelDg}" Content="Hint: Double click on any row to copy" Margin="30,58,0,0" x:Name="labelDg" />
<DataGrid Style="{DynamicResource dataGridStyle}" x:Name="ResultEmails" MouseDoubleClick="dgEmails_DoubleClick" IsReadOnly="True" Margin="10,89,10,39">
<DataGrid.Columns>
<DataGridTextColumn Header="Email" Binding="{Binding Email}"/>
<DataGridTextColumn Header="Author" Binding="{Binding Author}"/>
</DataGrid.Columns>
</DataGrid>
<TextBlock Style="{DynamicResource tbStatusLabelStyle}" x:Name="EmailsStatusTextBlock" Margin="10,250,0,0" Text="Status..."/>
<Button Style="{DynamicResource btnSaveAs}" Content="Export" x:Name="btnExport" Margin="0,0,16,7" Padding="6,3,6,3" Click="btnExport_Click"/>
</Grid>
</TabItem>
<!-- Second Tab: Query by Email and find Github username -->
<TabItem Header="{x:Static res:Strings.TabMenu2}" Style="{DynamicResource tabItemStyle}">
<Grid Style="{DynamicResource gridStyle}">
<TextBox Style="{DynamicResource txtInputStyle}" x:Name="txEmail" Margin="10,5,0,0" Padding="3,2,3,2" Text="Enter an email" GotFocus="OnFocusInput" />
<Button Style="{DynamicResource btnPrimaryStyle}" Content="Query" x:Name="btnUsernameQuery" Margin="197,5,0,0" Padding="3,2,3,2" Click="btnUsernameQuery_Click"/>
<DataGrid x:Name="ResultUsernames" Margin="10,60,10,39" AutoGenerateColumns="False">
<DataGrid.Columns>
<DataGridTextColumn Header="Username" Binding="{Binding Username}" />
</DataGrid.Columns>
</DataGrid>
<TextBlock Style="{DynamicResource tbStatusLabelStyle}" x:Name="UsernameStatusTextBlock" Margin="10,250,0,0" Text="Status..."/>
</Grid>
</TabItem>
</TabControl>
</TabItem>
<!-- End Gitrecon -->
<!-- Social Account Finder -->
<TabItem Header="Social Account Finder" Style="{DynamicResource tabItemStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBox x:Name="UsernameInput" Text="Enter a username..." Style="{DynamicResource txtSocialInput}" GotFocus="OnFocusInput" />
<Button x:Name="SearchButton" Content="Search" Click="SearchButton_Click" Style="{DynamicResource btnSocialQuery}"/>
</StackPanel>
<DataGrid x:Name="SocialMediaResults" AutoGenerateColumns="False" Margin="10,0,10,10" IsReadOnly="True" VerticalAlignment="Stretch" Grid.Row="1">
<DataGrid.Columns>
<DataGridTextColumn Header="Profile URL" Binding="{Binding ProfileUrl}" Width="300"/>
</DataGrid.Columns>
</DataGrid>
<Grid Margin="5" Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Style="{DynamicResource tbStatusLabelStyle}" x:Name="SocialAccountResult" Margin="10,0,0,0" Text="Status..." HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Column="0"/>
<Button x:Name="btnSocialExport" Style="{DynamicResource btnSaveAs}" Content="Export" Width="100" Height="30" Margin="5,0,10,0" HorizontalAlignment="Right" Click="btnSocialFinderExport_Click" Grid.Column="1"/>
</Grid>
</Grid>
</TabItem>
<!-- End Social Account Finder -->
<!-- Subdomain Finder -->
<TabItem Header="Subdomain Finder" Style="{DynamicResource tabItemStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBox x:Name="DomainInput" Text="domain.com" Style="{DynamicResource txtSocialInput}" GotFocus="OnFocusInput" />
<Button x:Name="DomainSearchBtn" Content="Search" Click="DomainSearchBtn_Click" Style="{DynamicResource btnSocialQuery}"/>
</StackPanel>
<DataGrid x:Name="SubDomainResults" AutoGenerateColumns="False" Margin="10,0,10,10" IsReadOnly="True" VerticalAlignment="Stretch" Grid.Row="1">
<DataGrid.Columns>
<DataGridTextColumn Header="Subdomain URL" Binding="{Binding Subdomain}" Width="300"/>
</DataGrid.Columns>
</DataGrid>
<Grid Margin="5" Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Style="{DynamicResource tbStatusLabelStyle}" x:Name="Subdomainresult" Margin="10,0,0,0" Text="Status..." HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Column="0"/>
<Button x:Name="btnSubdomainsExport" Style="{DynamicResource btnSaveAs}" Content="Export" Width="100" Height="30" Margin="5,0,10,0" HorizontalAlignment="Right" Click="btnSubdomainExport_Click" Grid.Column="1"/>
</Grid>
</Grid>
</TabItem>
<!-- End Subdomain Finder -->
</TabControl>
</Grid>
</Window>