├── README.md
├── App.config
├── HwidGetCurrentEx
├── Properties
│ └── AssemblyInfo.cs
├── GUID_DEVINTERFACE.cs
├── StructHWID.cs
├── MinWinDef.cs
├── HwidGetCurrentEx.csproj
├── CPUID.cs
├── ComHelper.cs
├── BitUtil.cs
├── SMBIOS.cs
└── Native.cs
├── Properties
├── AssemblyInfo.cs
└── app.manifest
├── VRSAVaultSignPKCS
├── VRSA.cs
├── DynamicDllLoader.cs
└── DLLFromMemory.cs
├── HwidGetCurrentEx.sln
├── .gitattributes
├── gatherosstate.csproj
├── .gitignore
└── Program.cs
/README.md:
--------------------------------------------------------------------------------
1 | hwIdGetCURRENTeX
--------------------------------------------------------------------------------
/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/HwidGetCurrentEx/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Diagnostics;
3 | using System.Reflection;
4 | using System.Runtime.CompilerServices;
5 | using System.Runtime.InteropServices;
6 | using System.Runtime.Versioning;
7 | using System.Security;
8 | using System.Security.Permissions;
9 |
10 | [assembly: AssemblyCompany("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCopyright("Copyright © 2022")]
13 | [assembly: AssemblyDescription("")]
14 | [assembly: AssemblyFileVersion("1.0.0.0")]
15 | [assembly: AssemblyProduct("HwidGetCurrentEx")]
16 | [assembly: AssemblyTitle("HwidGetCurrentEx")]
17 | [assembly: AssemblyTrademark("")]
18 | [assembly: AssemblyVersion("1.0.0.0")]
19 | [assembly: ComVisible(false)]
20 | [assembly: Guid("053495d7-7335-4890-b187-925f8f150bc2")]
21 | [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
22 |
--------------------------------------------------------------------------------
/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // 有关程序集的一般信息由以下 控制。更改这些特性值可修改 与程序集关联的信息。
5 | [assembly: AssemblyTitle("gatherosstate")]
6 | [assembly: AssemblyDescription("")]
7 | [assembly: AssemblyConfiguration("")]
8 | [assembly: AssemblyCompany("")]
9 | [assembly: AssemblyProduct("gatherosstate")]
10 | [assembly: AssemblyCopyright("Copyright © 2022")]
11 | [assembly: AssemblyTrademark("")]
12 | [assembly: AssemblyCulture("")]
13 |
14 | // 将 ComVisible 设置为 false 会使此程序集中的类型
15 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
16 | //请将此类型的 ComVisible 特性设置为 true。
17 | [assembly: ComVisible(false)]
18 |
19 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
20 | [assembly: Guid("728adad5-ad62-469b-8270-d47e34a11cb8")]
21 |
22 | // 程序集的版本信息由下列四个值组成:
23 | //
24 | // 主版本
25 | // 次版本
26 | // 生成号
27 | // 修订号
28 | //
29 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
30 | //通过使用 "*",如下所示:
31 | // [assembly: AssemblyVersion("1.0.*")]
32 | [assembly: AssemblyVersion("1.0.0.0")]
33 | [assembly: AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/HwidGetCurrentEx/GUID_DEVINTERFACE.cs:
--------------------------------------------------------------------------------
1 | // Decompiled with JetBrains decompiler
2 | // Type: HwidGetCurrentEx.GUID_DEVINTERFACE
3 | // Assembly: HwidGetCurrentEx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
4 | // MVID: 200C1AD7-2186-49E5-9EB2-5AB7013ECA80 Assembly location: D:\downloads\Programs\HwidGetCurrentEx.dll
5 |
6 | using System;
7 |
8 | namespace HwidGetCurrentEx
9 | {
10 | public class GUID_DEVINTERFACE
11 | {
12 | public static Guid GUID_DEVCLASS_HDC = new Guid("4d36e96a-e325-11ce-bfc1-08002be10318");
13 | public static Guid GUID_DEVCLASS_DISPLAY = new Guid("4d36e968-e325-11ce-bfc1-08002be10318");
14 | public static Guid GUID_DEVCLASS_SCSIADAPTER = new Guid("4d36e97b-e325-11ce-bfc1-08002be10318");
15 | public static Guid GUID_DEVCLASS_PCMCIA = new Guid("4d36e977-e325-11ce-bfc1-08002be10318");
16 | public static Guid GUID_DEVCLASS_MEDIA = new Guid("4d36e96c-e325-11ce-bfc1-08002be10318");
17 | public static Guid GUID_NDIS_LAN_CLASS = new Guid("ad498944-762f-11d0-8dcb-00c04fc3358c");
18 | public static Guid GUID_BTHPORT_DEVICE_INTERFACE = new Guid("0850302A-B344-4fda-9BE9-90576B8D46F0");
19 | public static Guid GUID_DEVINTERFACE_CDROM = new Guid("4D36E965-E325-11CE-BFC1-08002BE10318");
20 | public static Guid GUID_DEVINTERFACE_DISK = new Guid("53f56307-b6bf-11d0-94f2-00a0c91efb8b");
21 | public static Guid GUID_6994ad04_93ef_11d0_a3cc_00a0c9223196 = new Guid("6994ad04-93ef-11d0-a3cc-00a0c9223196");
22 | }
23 | }
--------------------------------------------------------------------------------
/VRSAVaultSignPKCS/VRSA.cs:
--------------------------------------------------------------------------------
1 | // Decompiled with JetBrains decompiler
2 | // Type: VRSAVaultSignPKCS.VRSA
3 | // Assembly: VRSAVaultSignPKCS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
4 | // MVID: 835E1F41-447B-4B59-919B-3F453537ACCB
5 | // Assembly location: D:\downloads\Programs\VRSAVaultSignPKCS-cleaned.dll
6 |
7 | using System;
8 | using System.Runtime.InteropServices;
9 |
10 | namespace VRSAVaultSignPKCS
11 | {
12 | public class VRSA
13 | {
14 | public static byte[] SignPKCS(byte[] HashArray)
15 | {
16 | byte[] DST = new byte[256];
17 | uint outSize = 256;
18 | DLLFromMemory dllFromMemory = new DLLFromMemory(PeArray.rawData);
19 | byte[] numArray;
20 | if (((VRSA.VRSAVaultSignPKCS86) Marshal.GetDelegateForFunctionPointer(new IntPtr(dllFromMemory.pCode.ToInt32() + 313463), typeof (VRSA.VRSAVaultSignPKCS86)))(IntPtr.Zero, IntPtr.Zero, HashArray, HashArray.Length, DST, ref outSize) == 0)
21 | {
22 | dllFromMemory.Close();
23 | numArray = DST;
24 | }
25 | else
26 | {
27 | dllFromMemory.Close();
28 | numArray = (byte[]) null;
29 | }
30 | return numArray;
31 | }
32 |
33 | [UnmanagedFunctionPointer(CallingConvention.ThisCall, CharSet = CharSet.Unicode)]
34 | private delegate int VRSAVaultSignPKCS86(
35 | IntPtr pVbnRsaVault_ModExpPriv_clear,
36 | IntPtr handle,
37 | byte[] dwbyte,
38 | int dwsize,
39 | byte[] DST,
40 | ref uint outSize);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/HwidGetCurrentEx/StructHWID.cs:
--------------------------------------------------------------------------------
1 | // Decompiled with JetBrains decompiler
2 | // Type: HwidGetCurrentEx.StructHWID
3 | // Assembly: HwidGetCurrentEx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
4 | // MVID: 200C1AD7-2186-49E5-9EB2-5AB7013ECA80 Assembly location: D:\downloads\Programs\HwidGetCurrentEx.dll
5 |
6 | namespace HwidGetCurrentEx
7 | {
8 | public class StructHWID
9 | {
10 | public int cbsize;
11 | public short BiosHwidCount;
12 | public short MemoryHwidCount;
13 | public short CpuHwidCount;
14 | public short NdisHwidCount;
15 | public short HWProfileCount;
16 | public short GuidHwidCount;
17 | public short PcmciaHwidCount;
18 | public short BthPortHwidCount;
19 | public short ScsiAdapterHwidCount;
20 | public short DisplayHwidCount;
21 | public short DiskHwidCount;
22 | public short HdcHwidCount;
23 | public short WwanHwidCount;
24 | public short CdromHwidCount;
25 | public byte[] BiosHwidBlock;
26 | public byte[] MemoryHwidBlock;
27 | public byte[] CpuHwidBlock;
28 | public byte[] NdisHwidBlock;
29 | public byte[] HWProfileBlock;
30 | public byte[] GuidHwidBlock;
31 | public byte[] PcmciaHwidBlock;
32 | public byte[] BthPortHwidBlock;
33 | public byte[] ScsiAdapterHwidBlock;
34 | public byte[] DisplayHwidBlock;
35 | public byte[] DiskHwidBlock;
36 | public byte[] HdcHwidBlock;
37 | public byte[] WwanHwidBlock;
38 | public byte[] CdromHwidBlock;
39 | }
40 | }
--------------------------------------------------------------------------------
/HwidGetCurrentEx/MinWinDef.cs:
--------------------------------------------------------------------------------
1 | // Decompiled with JetBrains decompiler
2 | // Type: HwidGetCurrentEx.MinWinDef
3 | // Assembly: HwidGetCurrentEx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
4 | // MVID: 200C1AD7-2186-49E5-9EB2-5AB7013ECA80 Assembly location: D:\downloads\Programs\HwidGetCurrentEx.dll
5 |
6 | using System;
7 |
8 | namespace HwidGetCurrentEx
9 | {
10 | public static class MinWinDef
11 | {
12 | internal static Func