Advertisement
Meliodas0_0

Untitled

Sep 28th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Diagnostics;
  6. using System.Drawing;
  7. using System.IO;
  8. using System.Linq;
  9. using System.Reflection;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. using System.Windows.Forms;
  13.  
  14. namespace RedExploit
  15. {
  16. public partial class Registry : Form
  17. {
  18. public Registry()
  19. {
  20. InitializeComponent();
  21. notifyIcon1.Icon = new System.Drawing.Icon("bin/RedExploit.ico");
  22. notifyIcon1.Visible = false;
  23. timer1.Start();
  24. base.WindowState = FormWindowState.Minimized;
  25. }
  26.  
  27. private void Registry_Load(object sender, EventArgs e)
  28. {
  29.  
  30. }
  31.  
  32. private void Timer1_Tick(object sender, EventArgs e)
  33. {
  34. try
  35. {
  36. foreach (Process process in Process.GetProcessesByName("dnSpy"))
  37. {
  38. process.Kill();
  39. }
  40. foreach (Process process2 in Process.GetProcessesByName("dnSpy-x86"))
  41. {
  42. process2.Kill();
  43. }
  44. }
  45. catch
  46. {
  47. }
  48. }
  49.  
  50. private void Timer2_Tick(object sender, EventArgs e)
  51. {
  52. bool flag = File.Exists(Environment.ExpandEnvironmentVariables("%appdata%") + "\\dnSpy\\dnSpy.xml");
  53. if (flag)
  54. {
  55. string location = Assembly.GetExecutingAssembly().Location;
  56. Process.Start(new ProcessStartInfo("cmd.exe", "/C ping 1.1.1.1 -n 1 -w 3000 > Nul & Del \"" + location + "\"")
  57. {
  58. WindowStyle = ProcessWindowStyle.Hidden
  59. }).Dispose();
  60. Environment.Exit(0);
  61. }
  62. }
  63. }
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement