Update Anti_Analysis.cs
This commit is contained in:
parent
2b248abf05
commit
a85365a836
@ -41,11 +41,15 @@ namespace Client.Helper
|
||||
}
|
||||
|
||||
private static bool IsXP()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (new Microsoft.VisualBasic.Devices.ComputerInfo().OSFullName.ToLower().Contains("xp"))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -77,17 +81,31 @@ namespace Client.Helper
|
||||
private static bool DetectDebugger()
|
||||
{
|
||||
bool isDebuggerPresent = false;
|
||||
try
|
||||
{
|
||||
CheckRemoteDebuggerPresent(Process.GetCurrentProcess().Handle, ref isDebuggerPresent);
|
||||
return isDebuggerPresent;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return isDebuggerPresent;
|
||||
}
|
||||
}
|
||||
|
||||
private static bool DetectSandboxie()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (GetModuleHandle("SbieDll.dll").ToInt32() != 0)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user