MalwareSourceCode/MSIL/Trojan/Win32/P/Trojan.Win32.Patched.mf-9c4f7eb57e580673b883e57f31931bcbce8bd5d8de1a509a25b8b5a175335d9f/Broker/PackageState.cs

29 lines
1.2 KiB
C#
Raw Normal View History

2022-08-18 11:28:56 +00:00
// Decompiled with JetBrains decompiler
// Type: Bmc.Broker.PackageState
// Assembly: updateservice, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: A6A1FC23-14F7-4CCE-B702-0F9FFD2CD5AC
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Trojan.Win32.Patched.mf-9c4f7eb57e580673b883e57f31931bcbce8bd5d8de1a509a25b8b5a175335d9f.exe
using System;
using System.Collections;
using System.Collections.Specialized;
namespace Bmc.Broker
{
public class PackageState
{
public string Package;
public TimeSpan LastTransition;
public string CurrentState;
public TimeSpan NextTransition;
public DateTime NextTransitionDate;
public string NextState;
public StringCollection Permissions;
public IDictionary Products;
public bool HasPermission(string productName, string perm) => productName != null && this.Products.Contains((object) productName) && ((ProductState) this.Products[(object) productName]).Permissions.Contains(perm) || this.Permissions.Contains(perm);
public string GetProperty(string productName, string propName) => !this.Products.Contains((object) productName) ? (string) null : ((ProductState) this.Products[(object) productName]).GetProperty(propName);
}
}