Exploit databaseDownload repository ZIP
GH-88d8bc551618926a04536090300b4292
dungnm24/cve-2020-0796
Sources for CVE-2020-0796
81 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files38
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- Properties/
- images/
- AdapterPage.xaml
- AdapterPage.xaml.cs
- App.config
- App.xaml
- App.xaml.cs
- AutoDetectionPage.xaml
- AutoDetectionPage.xaml.cs
- ConfigMethodPage.xaml
- ConfigMethodPage.xaml.cs
- ConfigPage.xaml
- ConfigPage.xaml.cs
- DetectingPage.xaml
- Helper.cs
- MainWindow.xaml
- MainWindow.xaml.cs
- Pages.cs
- RulePage.xaml
- RulePage.xaml.cs
- RunPage.xaml
- RunPage.xaml.cs
- SUTInfoPage.xaml
- SUTInfoPage.xaml.cs
- StringResources.Designer.cs
- StringResources.resx
- TestReportWindow.xaml
- TestReportWindow.xaml.cs
- TestSuiteIntro.xml
- TestSuiteWindow.xaml
- TestSuiteWindow.xaml.cs
- UI.csproj
- UserPromptWindow.xaml
- UserPromptWindow.xaml.cs
- WelcomePage.xaml
- WelcomePage.xaml.cs
- app.manifest
- config-blue.ico
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/ProtocolTestManager/UI/TestReportWindow.xaml.cs
C# · 2,541 bytes// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Protocols.TestManager.Kernel;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace Microsoft.Protocols.TestManager.UI
{
/// <summary>
/// Interaction logic for TextReportWindow.xaml
/// </summary>
public partial class TestReportWindow : Window
{
public TestReportWindow()
{
InitializeComponent();
}
private void CloseDialog_Click(object sender, RoutedEventArgs e)
{
DialogResult = true;
}
private void GenerateReport_Click(object sender, RoutedEventArgs e)
{
var caselist = Pages.util.SelectTestCases(
Passed.IsChecked == true,
Failed.IsChecked == true,
Inconclusive.IsChecked == true,
false);
if (caselist.Count == 0)
{
UserPromptWindow.Show(StringResources.Error, StringResources.NoTestResults, UserPromptWindow.IconType.Error);
return;
}
var selectedRadioButton = ReportFormatGroup.Children.OfType<RadioButton>().FirstOrDefault(rb => rb.IsChecked == true);
if (selectedRadioButton == null)
{
UserPromptWindow.Show(StringResources.Error, StringResources.NoReportFormatSelected, UserPromptWindow.IconType.Error);
return;
}
TestReport report = TestReport.GetInstance(selectedRadioButton.Name, caselist);
if (report == null)
{
UserPromptWindow.Show(StringResources.Error, StringResources.UnknownReportFormat, UserPromptWindow.IconType.Error);
return;
}
Microsoft.Win32.SaveFileDialog saveFileDialog = new Win32.SaveFileDialog();
saveFileDialog.Filter = report.FileDialogFilter;
saveFileDialog.DefaultExt = report.FileExtension;
if (saveFileDialog.ShowDialog() == true)
{
report.ExportReport(saveFileDialog.FileName);
DialogResult = true;
}
}
}
}