Update Anti_Analysis.cs
This commit is contained in:
parent
2b248abf05
commit
a85365a836
@ -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")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user