Hello guys i want a program that build a dll that block a porcsses name is there any program like that ?![]()
Hello guys i want a program that build a dll that block a porcsses name is there any program like that ?![]()
An If condition to check if the process name bla bla is open . I'll code one , give me a moment.
I got stuck and couldn't finish, this is C#.
Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace AntiProcess { public static extern void checkRunningGame() { foreach (Process runningProc in Process.GetProcesses()) { if (runningProc.ProcessName.Contains("Inject")) { Environment.Exit(0); } } } }
Code://Copyright © MetaStudios public static class WindowsDetection { [DllImport("user32.dll", SetLastError = true)] public static extern int FindWindow(string lpClassName, string lpWindowName); static string[] prog = { "Olly", "Dbg", "hack", "h4ck", "hax", "Hack", "HACK", "H4CK", "massive", "MASSIVE", "lawnmower", "LAWNMOWER", "god", "GOD", "G0D", "g0d", "God", "Ghost", "ghost", "gh0st", "speed", "Speed", "Sp33d", "sp33d", "dll", "DLL", "OneWhoSign", "OWS", "ThevingSix", "thevingsix", "t6", "theving6", "Anônimo", "anônimo", "Wizkid", "WizKid", "wizkid", "WIZKID", "Evilness", "evilness", "bytes4bread", "thesupermax", "bypass", "Bypass", "BYPASS", "Cipher", "Sulfin", "sulfin", "SULFIN", "Thanu21", "lone222", "WaffleByte", "hmhax", "Xeffar", "Mafiacoders", "mafiacoders", "Injec", "injec", "Hook", "hook", "Pserv", "pserv" }; //WindowsName Protect public static readonly bool WNP { get { foreach (string x in prog) { Thread.Sleep(300); int hwnd = FindWindow(null, x); if (hwnd >= 1) { return true; } } return false; } } //Secondary WindowsName Protect public static readonly bool SWNP { get { Process[] ProcList = Process.GetProcesses(); foreach (Process xProcess in ProcList) { foreach (string x in prog) { Thread.Sleep(300); if (xProcess.ProcessName.Contains(x)) { return true; } } } return false; } } }OrCode:while (true) { Thread.Sleep(1000); if (WindowsDetection.WNP == true || WindowsDetection.SWNP == true) { //Hack detected, do something. Exemple: //foreach(Process yProcess in Process.GetProcesses()){ //if(yProcess.MainWindowTitle == "The duel"){yProcess.Close(); //Process.GetCurrentProcess().Close();}} } }
Credits: FisherCode:WindowsDetection.FindWindow(null, "windows title");
Blocking by process name isn't going to stop hackers, if that's what you mean.
I suggest looking at the MSDN website for functions you can use within the WinAPI.
A better way of detecting hackers anyway would be doing so silently without them knowing, instead of outright preventing them.
For example, every time a hacker is detected, record their UID and character name to a database table (or file even.) using MCommand or even send/recv. If that's too advanced for you, I don't know what to say.