Skilled Illusionist
- Joined
- Jan 7, 2007
- Messages
- 347
- Reaction score
- 78
Easy to use.
Using it:
It's simple but usefull :
FindWindows methode can also be really usefull:
Dots.
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;
}
}
//MainTitleName Protect
public static readonly bool MTNP
{
get
{
Process[] ProcList = Process.GetProcesses();
foreach (Process xProcess in ProcList)
{
foreach (string x in prog)
{
Thread.Sleep(300);
if (xProcess.MainWindowTitle.Contains(x)) { return true; }
}
}
return false;
}
}
}
Code:
while (true)
{
Thread.Sleep(1000);
if (WindowsDetection.WNP == true || WindowsDetection.SWNP == true || WindowsDetection.MTNP == true)
{ //Hack detected, do something. Exemple:
//foreach(Process yProcess in Process.GetProcesses()){
//if(yProcess.MainWindowTitle == "The duel"){yProcess.Close();
//Process.GetCurrentProcess().Close();}}
}
}
FindWindows methode can also be really usefull:
Code:
WindowsDetection.FindWindow(null, "windows title");
Dots.
Last edited: