Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Preventing Vult from running twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Copy05 committed Aug 22, 2023
1 parent 6a69b1b commit c71b60b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
7 changes: 6 additions & 1 deletion src/BlacklistSoftware.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
Vult_SecureInstall.exe
MEMZ.exe
VultInstaller.exe
iloveyou.exe
iloveyou.exe
Cheat Engine.exe
FreeLocalChatGPT.exe
sponsorship.scr
Sponsorship.scr
SponsorshipContract.scr
9 changes: 4 additions & 5 deletions src/Form1.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;

namespace Vult
Expand All @@ -16,14 +14,13 @@ public Form1()
private void Form1_Load(object sender, EventArgs e)
{
Hide();

VultNotif.Icon = this.Icon;
VultNotif.ContextMenu = VultNotiMenu;
VultNotif.BalloonTipTitle = "Vult";
VultNotif.BalloonTipText = "Vult is running in the background.";
VultNotif.ShowBalloonTip(1000);
VNMSecurity.ClearTempFolder();
VNMSecurity.ScanDownloadFolder();
VNMSecurity.CheckForCheats();

SecurityInterval.Start();
}

Expand All @@ -33,6 +30,7 @@ public void SendNotification(string text, string title)
VultSecurityNotif.BalloonTipTitle = title;
VultSecurityNotif.BalloonTipText = text;
VultSecurityNotif.ShowBalloonTip(1000);

VultSecurityNotif.Icon = null;
}

Expand Down Expand Up @@ -70,6 +68,7 @@ private void SecurityInterval_Tick(object sender, EventArgs e)
{
VNMSecurity.ClearTempFolder();
VNMSecurity.ScanDownloadFolder();
VNMSecurity.CheckForCheats();
}
}
}
7 changes: 6 additions & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;

namespace Vult
Expand All @@ -13,6 +15,9 @@ internal static class Program
[STAThread]
static void Main()
{
if (Process.GetProcessesByName(Path.GetFileNameWithoutExtension(Assembly.GetEntryAssembly().Location)).Count() > 1)
Process.GetCurrentProcess().Kill();

Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
Expand Down

0 comments on commit c71b60b

Please sign in to comment.