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/App.xaml.cs
C# · 2,536 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.Configuration;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
namespace Microsoft.Protocols.TestManager.UI
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
private Mutex mutex = null;
public App() : base()
{
this.Dispatcher.UnhandledException += OnDispatcherUnhandledException;
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
}
protected override void OnStartup(StartupEventArgs e)
{
bool isNewInstance = false;
mutex = new Mutex(true, "{FE998190-5B44-4816-9A65-295E8A1EBBA1}", out isNewInstance);
if (!isNewInstance)
{
UserPromptWindow.Show(StringResources.Error, StringResources.PTMRunning, UserPromptWindow.IconType.Error);
mutex = null;
App.Current.Shutdown();
return;
}
base.OnStartup(e);
}
protected override void OnExit(ExitEventArgs e)
{
if (mutex != null)
{
mutex.ReleaseMutex();
}
base.OnExit(e);
}
void OnDispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs args)
{
Exception e = args.Exception;
LogExceptionAndPrompt(StringResources.Error, new Exception[] { e });
args.Handled = true;
}
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
LogExceptionAndPrompt(StringResources.Error, new Exception[] { (Exception)e.ExceptionObject });
}
public static void LogExceptionAndPrompt(string title, IEnumerable<Exception> exceptions)
{
string logPath = Utility.LogException(exceptions.ToList());
string errorMsg = string.Format(StringResources.ExceptionsHappendWithLogsRecorded, logPath);
UserPromptWindow.ShowWithLinks(title, errorMsg, UserPromptWindow.IconType.Error);
}
}
}