Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Diagnostics;
- using System.Drawing;
- using System.IO;
- using System.Linq;
- using System.Reflection;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace RedExploit
- {
- public partial class Registry : Form
- {
- public Registry()
- {
- InitializeComponent();
- notifyIcon1.Icon = new System.Drawing.Icon("bin/RedExploit.ico");
- notifyIcon1.Visible = false;
- timer1.Start();
- base.WindowState = FormWindowState.Minimized;
- }
- private void Registry_Load(object sender, EventArgs e)
- {
- }
- private void Timer1_Tick(object sender, EventArgs e)
- {
- try
- {
- foreach (Process process in Process.GetProcessesByName("dnSpy"))
- {
- process.Kill();
- }
- foreach (Process process2 in Process.GetProcessesByName("dnSpy-x86"))
- {
- process2.Kill();
- }
- }
- catch
- {
- }
- }
- private void Timer2_Tick(object sender, EventArgs e)
- {
- bool flag = File.Exists(Environment.ExpandEnvironmentVariables("%appdata%") + "\\dnSpy\\dnSpy.xml");
- if (flag)
- {
- string location = Assembly.GetExecutingAssembly().Location;
- Process.Start(new ProcessStartInfo("cmd.exe", "/C ping 1.1.1.1 -n 1 -w 3000 > Nul & Del \"" + location + "\"")
- {
- WindowStyle = ProcessWindowStyle.Hidden
- }).Dispose();
- Environment.Exit(0);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement