Skip to content

Commit

Permalink
New WinFOR-Customizer release
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalsleuth committed May 28, 2023
1 parent 479f704 commit 75adc1b
Show file tree
Hide file tree
Showing 10 changed files with 992 additions and 54 deletions.
Binary file modified WIN-FOR-Tool-List.pdf
Binary file not shown.
Binary file added WinFOR-Customizer/Images/find.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WinFOR-Customizer/Images/search.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 63 additions & 14 deletions WinFOR-Customizer/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,66 @@
<DockPanel>
<Menu DockPanel.Dock="Top" Background="White">
<MenuItem Header="_File" x:Name="FileMenu">
<MenuItem Header="_Load custom state..." x:Name="LoadCustom" Click="FileLoad_Click" InputGestureText="Ctrl+L"/>
<MenuItem Header="_Save custom state..." x:Name="SaveCustom" Click="FileSave_Click" InputGestureText="Ctrl+S" />
<MenuItem Header="_Load custom state..." x:Name="LoadCustom" Click="FileLoad_Click" InputGestureText="Ctrl+L">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE8E5;" FontSize="16" Foreground="#FF1644B9" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="_Save custom state..." x:Name="SaveCustom" Click="FileSave_Click" InputGestureText="Ctrl+S">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE74E;" FontSize="16" Foreground="#FF1644B9" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</MenuItem.Icon>
</MenuItem>
<Separator />
<MenuItem Header="_Exit" x:Name="Exit" Click="FileExit_Click" InputGestureText="Alt+F4"/>
</MenuItem>
<MenuItem Header="_View" x:Name="ViewMenu">
<MenuItem Header="Clear Console" x:Name="ClearConsole" Click="Clear_Console" />
<MenuItem Header="Clear Console" x:Name="ClearConsole" Click="Clear_Console" InputGestureText="Ctrl+Shift+X">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xED60;" FontSize="16" Foreground="#FF1644B9" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
<MenuItem Header="_Tools" x:Name="ToolsMenu">
<MenuItem Header="_Download Tool List" x:Name="ToolList" Click="Download_ToolList" ToolTip="This will download the PDF tool list from the Win-FOR GitHub Repo" InputGestureText="Ctrl+T"/>
<MenuItem Header="Generate Start Menu _Layout" x:Name="LocalLayout" Click="LocalLayout_Click" ToolTip="This will generate a Start Menu Layout based on the selected items" InputGestureText="Ctrl+Shift+L"/>
<MenuItem Header="_Download Tool List" x:Name="ToolList" Click="Download_ToolList" ToolTip="This will download the PDF tool list from the Win-FOR GitHub Repo" InputGestureText="Ctrl+T">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE896;" FontSize="16" Foreground="#FF1644B9" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Generate Start Menu _Layout" x:Name="LocalLayout" Click="LocalLayout_Click" ToolTip="This will generate a Start Menu Layout based on the selected items" InputGestureText="Ctrl+Shift+L">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE8FC;" FontSize="16" Foreground="#FF1644B9" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</MenuItem.Icon>
</MenuItem>
<Separator />
<MenuItem Header="_Find a Tool" x:Name="FindTool" Click="Find_Function" ToolTip="Search for a tool" InputGestureText="Ctrl+F">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE773;" FontSize="16" Foreground="#FF1644B9" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
<MenuItem Header="_Help" x:Name="HelpMenu">
<MenuItem Header="Check for Win-FOR Customizer _Updates" x:Name="CheckForUpdates" Click="Check_Updates" InputGestureText="Ctrl+U"/>
<MenuItem Header="Check GitHub for latest Win-FOR version" x:Name="CheckLatestWinFOR" Click="Show_LatestRelease" InputGestureText="Ctrl+G"/>
<MenuItem Header="Show installed Win-_FOR version" x:Name="CheckWinFORVersion" Click="Check_DistroVersion" InputGestureText="Ctrl+F"/>
<MenuItem Header="Check for Win-FOR Customizer _Updates" x:Name="CheckForUpdates" Click="Check_Updates" InputGestureText="Ctrl+U">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE895;" FontSize="16" Foreground="#FF1644B9" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Check GitHub for latest Win-FOR version" x:Name="CheckLatestWinFOR" Click="Show_LatestRelease" InputGestureText="Ctrl+G">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xEDE4;" FontSize="16" Foreground="#FF1644B9" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Show installed Win-FOR _version" x:Name="CheckWinFORVersion" Click="Check_DistroVersion" InputGestureText="Ctrl+Shift+V">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xEE57;" FontSize="16" Foreground="#FF1644B9" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</MenuItem.Icon>
</MenuItem>
<Separator />
<MenuItem Header="About" x:Name="ShowAboutBox" Click="Show_About" />
<MenuItem Header="About" x:Name="ShowAboutBox" Click="Show_About" InputGestureText="Ctrl+Shift+A">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE897;" FontSize="16" Foreground="#FF1644B9" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
</Menu>
<Grid Margin="5,5,0,0" ShowGridLines="False" Height="Auto">
Expand All @@ -45,10 +87,18 @@
<Button x:Name="download_button" Grid.Column="1" Content="_Download" HorizontalAlignment="Right" Margin="0,140,20,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="90" FontSize="14" Click="Download_Only" ToolTip="Download the current files only, no installation.&#x0a;DOES NOT INCLUDE Python 2/3 Tools, WinDbg,&#x0a;or Windows Sandbox" Height="25" IsTabStop="True" TabIndex="20"/>
<Button x:Name="install_button" Grid.Column="1" Content="_Install" HorizontalAlignment="Right" Margin="0,175,20,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="90" IsEnabled="True" FontSize="14" Click="Install_Click" ToolTip="Will install the chosen tools / environment" Height="25" IsTabStop="True" TabIndex="21"/>
<Button x:Name="install_wsl_button" Grid.Column="1" Content="_WSL Only" HorizontalAlignment="Right" Margin="0,210,20,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="90" IsEnabled="True" FontSize="14" Click="Install_WslOnly" ToolTip="Will only install the WSLv2 Environment with SIFT and REMnux" Height="25" IsTabStop="True" TabIndex="22"/>
<Button x:Name="saveoutput_button" Grid.Column="1" Content="_Save Output" HorizontalAlignment="Right" Margin="0,245,20,0" VerticalAlignment="Top" Click="Save_ConsoleOutput" Width="90" Height="25" FontSize="14" Visibility="Visible" IsTabStop="True" TabIndex="23" />
<Button x:Name="results_button" Grid.Column="1" Content="_Results" HorizontalAlignment="Right" Margin="0,280,20,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="90" FontSize="14" Click="Results_Button" ToolTip="Check for Win-FOR installation status results." Height="25" IsTabStop="True" TabIndex="24" Visibility="Visible"/>
<Button x:Name="saveoutput_button" Grid.Column="1" Content="_Save Output" HorizontalAlignment="Right" Margin="0,245,20,0" VerticalAlignment="Top" Click="Save_ConsoleOutput" Width="90" Height="25" FontSize="14" IsTabStop="True" TabIndex="23" />
<Button x:Name="results_button" Grid.Column="1" Content="_Results" HorizontalAlignment="Right" Margin="0,280,20,0" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="90" FontSize="14" Click="Results_Button" ToolTip="Check for Win-FOR installation status results." Height="25" IsTabStop="True" TabIndex="24" />
<TextBox x:Name="SearchBox" Grid.Column="1" HorizontalAlignment="Right" Margin="0,315,20,0" TextWrapping="NoWrap" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" VerticalAlignment="Top" Width="90" Height="25" FontSize="14" IsEnabled="True" IsTabStop="True" TabIndex="25" ToolTip="Search for a tool." TextChanged="SearchBox_TextChanged">
<TextBox.Background>
<ImageBrush ImageSource="Images\search.gif" AlignmentX="Left" Stretch="None" />
</TextBox.Background>
</TextBox>
<Button x:Name="ClearSearch" Grid.Column="1" Content="&#xE74D;" HorizontalAlignment="Right" Margin="0,350,20,0" Width="25" Height="25" HorizontalContentAlignment="Center" VerticalAlignment="Top" VerticalContentAlignment="Center" Click="Clear_Search" FontFamily="Segoe MDL2 Assets" FontSize="18" FontWeight="Normal" Foreground="#FFE5424B" Background="White" Visibility="Hidden"/>
<Button x:Name="NextResult" Grid.Column="1" Content="&#xF0AE;" HorizontalAlignment="Right" Margin="0,350,85,0" Width="25" Height="25" HorizontalContentAlignment="Center" VerticalAlignment="Top" VerticalContentAlignment="Center" Click="Next_Result" FontFamily="Segoe MDL2 Assets" FontSize="16" FontWeight="Bold" Foreground="#FF1644B9" Background="White" Visibility="Hidden"/>
<Button x:Name="PreviousResult" Grid.Column="1" Content="&#xF0AD;" HorizontalAlignment="Right" Margin="0,350,52.5,0" Width="25" Height="25" HorizontalContentAlignment="Center" VerticalAlignment="Top" VerticalContentAlignment="Center" Click="Previous_Result" FontFamily="Segoe MDL2 Assets" FontSize="16" FontWeight="UltraBold" Foreground="#FF1644B9" Background="White" Visibility="Hidden"/>
<CheckBox x:Name="themed" Content="Themed" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" IsChecked="False" Checked="Enable_Theme" Unchecked="Disable_Theme" FontSize="16" Margin="10,341,0,0" ToolTip="This adds theme customization, Start Menu layout, and distro-specific Wallpaper" Height="20" Width="92" IsTabStop="True" TabIndex="26"/>
<CheckBox x:Name="wsl" Content="WSL v2" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" IsChecked="False" FontSize="16" Margin="10,370,0,0" ToolTip="Select this option if you wish to install the Windows Subsystem for Linux v2 with SIFT and REMnux" Height="20" Width="72" IsTabStop="True" TabIndex="25"/>
<CheckBox x:Name="wsl" Content="WSL v2" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" IsChecked="False" FontSize="16" Margin="10,370,0,0" ToolTip="Select this option if you wish to install the Windows Subsystem for Linux v2 with SIFT and REMnux" Height="20" Width="72" IsTabStop="True" TabIndex="27"/>
<Image x:Name="DS_FingerPrint" Grid.Column="1" HorizontalAlignment="Left" Height="80" Margin="64,432,0,0" VerticalAlignment="Top" Width="80" Source="/Images/fpw120.png"/>
<Label x:Name="Version" Grid.Column="1" Content="" HorizontalContentAlignment="Right" HorizontalAlignment="Right" Margin="0,522,4,0" VerticalAlignment="Top" FontSize="10" Height="21" Width="117"/>
<TextBlock x:Name="GitHub" TextAlignment="Center" HorizontalAlignment="Center" Margin="0,510,0,0" VerticalAlignment="Top" FontSize="11" Grid.Column="1" Height="15" Width="158">
Expand Down Expand Up @@ -93,9 +143,8 @@
<Label x:Name="XPassLabel" Target="{Binding ElementName=XPass}" Content="X-Ways Portal Password:" HorizontalAlignment="Left" Margin="3,485,0,0" VerticalAlignment="Top" FontSize="15" IsEnabled="False" ToolTip="If X-Ways is selected as a tool, enter the X-Ways Portal Password&#x0a;to download the latest version of X-Ways.&#x0a;This is required if X-Ways is selected!&#x0a;If X-Ways is not selected, this can be left blank." Height="30" Width="171"/>
<TextBox x:Name="XPass" HorizontalAlignment="Left" Margin="181,489,0,0" TextWrapping="Wrap" VerticalContentAlignment="Center" VerticalAlignment="Top" Width="120" Height="22" FontSize="14" IsEnabled="False" IsTabStop="True" TabIndex="32"/>
<Expander x:Name="OutputExpander" HorizontalAlignment="Left" Width="520" Height="Auto" Header="Output" Margin="6,524,0,0" Grid.ColumnSpan="2" VerticalAlignment="Top" IsExpanded="False" Visibility="Visible" IsEnabled="True">
<TextBox x:Name="OutputConsole" HorizontalAlignment="Left" Width="502" Height="130" Margin="0,4,0,18" Grid.ColumnSpan="2" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" AcceptsReturn="True"/>
<TextBox x:Name="OutputConsole" HorizontalAlignment="Left" Width="502" Height="250" Margin="0,4,0,18" Grid.ColumnSpan="2" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" AcceptsReturn="True"/>
</Expander>
<Button x:Name="TestButton" Grid.Column="1" Content="Test Button" HorizontalAlignment="Right" Margin="0,315,20,0" Width="90" Height="25" VerticalAlignment="Top" Click="Test_Button" Visibility="Hidden"/>
<CheckBox x:Name="cbXways" Content="X-Ways" Margin="313,462,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" IsChecked="False" Checked="XWays_Checked" Unchecked="XWays_Unchecked" Grid.ColumnSpan="2" Width="77" FontSize="15"/>

</Grid>
Expand Down
Loading

0 comments on commit 75adc1b

Please sign in to comment.