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 files12
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- ErrorViewModel.cs
- GuestBookRequestModel.cs
- ICodecViewModel.cs
- LayerPanelRequest.cs
- LayoutViewModel.cs
- RFXDecodeViewModel.cs
- RFXEncodeViewModel.cs
- RFXPDecodeViewModel.cs
- RFXPEncodeViewModel.cs
- RecomputeRequest.cs
- ReturnResult.cs
- WebpageComponents.cs
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/LayoutViewModel.cs
C# · 2,447 bytes// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
namespace RDPToolSet.Web.Models
{
public class LayoutViewModel
{
public string Title { get; private set; }
public string LinkName { get; private set; }
public string LinkController { get; private set; }
public string Project { get; private set; }
public string Author { get; private set; }
public string Version { get; private set; }
public List<Menu> Menu { get; private set; }
public LayoutViewModel(string title, string linkname, string linkcontroller, string project, string author, string version, List<Menu> menu)
{
Title = title;
LinkName = linkname;
LinkController = linkcontroller;
Project = project;
Author = author;
Version = version;
Menu = menu;
}
public LayoutViewModel(string title, string linkname, string linkcontroller, string project, string author, string version, params Menu[] menus)
{
Title = title;
LinkName = linkname;
LinkController = linkcontroller;
Project = project;
Author = author;
Version = version;
Menu = new List<Menu>(menus);
}
}
public class Menu
{
public string Name { get; private set; }
public List<SubMenu> SubMenu { get; private set; }
public Menu(string name, List<SubMenu> subMenu)
{
Name = name;
SubMenu = subMenu;
}
public Menu(string name, params string[] submenu)
{
var submenuList = new List<SubMenu>();
for (int i = 0; i < submenu.Length; i += 2)
{
if (i + 1 < submenu.Length)
{
submenuList.Add(new SubMenu(submenu[i], submenu[i + 1]));
}
}
Name = name;
SubMenu = submenuList;
}
}
public class SubMenu
{
public string SubName { get; private set; }
public string @Controller { get; private set; }
public SubMenu(string subName, string controller)
{
SubName = subName;
@Controller = controller;
}
}
}