mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-25 21:05:28 +00:00
81 lines
2.2 KiB
C#
81 lines
2.2 KiB
C#
|
// Decompiled with JetBrains decompiler
|
|||
|
// Type: Refx.modGetInfo
|
|||
|
// Assembly: Refx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
|||
|
// MVID: 5DD4C44F-C748-4813-B398-D3DE520CF41A
|
|||
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Trojan.Win32.Fsysna.bezr-e553a7902dd2b2c973a97028cc8dc7f1bb82c18b1266abf90d2140ec0b5b3a01.exe
|
|||
|
|
|||
|
using Microsoft.VisualBasic.CompilerServices;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace Refx
|
|||
|
{
|
|||
|
[StandardModule]
|
|||
|
internal sealed class modGetInfo
|
|||
|
{
|
|||
|
public static string GetOperatingSystem()
|
|||
|
{
|
|||
|
OperatingSystem osVersion = Environment.OSVersion;
|
|||
|
string operatingSystem = "UN";
|
|||
|
switch (osVersion.Platform)
|
|||
|
{
|
|||
|
case PlatformID.Win32Windows:
|
|||
|
switch (osVersion.Version.Minor)
|
|||
|
{
|
|||
|
case 0:
|
|||
|
operatingSystem = "95";
|
|||
|
break;
|
|||
|
case 10:
|
|||
|
operatingSystem = "98";
|
|||
|
break;
|
|||
|
case 90:
|
|||
|
operatingSystem = "ME";
|
|||
|
break;
|
|||
|
}
|
|||
|
break;
|
|||
|
case PlatformID.Win32NT:
|
|||
|
switch (osVersion.Version.Major)
|
|||
|
{
|
|||
|
case 3:
|
|||
|
operatingSystem = "NT";
|
|||
|
break;
|
|||
|
case 4:
|
|||
|
operatingSystem = "NT";
|
|||
|
break;
|
|||
|
case 5:
|
|||
|
if (osVersion.Version.Minor == 0)
|
|||
|
{
|
|||
|
operatingSystem = "2K";
|
|||
|
break;
|
|||
|
}
|
|||
|
if (osVersion.Version.Minor == 1)
|
|||
|
{
|
|||
|
operatingSystem = "XP";
|
|||
|
break;
|
|||
|
}
|
|||
|
if (osVersion.Version.Minor == 2)
|
|||
|
{
|
|||
|
operatingSystem = "2K3";
|
|||
|
break;
|
|||
|
}
|
|||
|
break;
|
|||
|
case 6:
|
|||
|
operatingSystem = "VS";
|
|||
|
if (osVersion.Version.Minor == 0)
|
|||
|
{
|
|||
|
operatingSystem = "VS";
|
|||
|
break;
|
|||
|
}
|
|||
|
if (osVersion.Version.Minor == 1)
|
|||
|
{
|
|||
|
operatingSystem = "W7";
|
|||
|
break;
|
|||
|
}
|
|||
|
break;
|
|||
|
}
|
|||
|
break;
|
|||
|
}
|
|||
|
return operatingSystem;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|