Search
Categories
Archives

Generic HWID Protection

Hello everyone!

Since I’ve gotten into the hacking scene if you will, I started noticing that there are too many people ripping other people’s work off and labeling it as their own. How can we prevent this? Simple, add in a unique hardware identifier for each computer so that only that piece of hardware can run it.

This is the C# code I’m publicly releasing. I have a more advanced method but I don’t want to post it for obvious reasons ;)

// mach_kernel's generic hardware ID checker.
// all your base are belong to me!

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management;
using System.Threading;
using System.Diagnostics;

namespace HWIDProtect
{
    class Program
    {
        /// 
        /// Quick and dirty way to get some sort of a hardware ID
        /// Your head can run wild with how you can encrypt these IDs,
        /// read some WLM docs =)
        /// 
        /// 

        public static string GetProcessorID()
        {

            string sProcessorID = String.Empty;

            string sQuery = "SELECT ProcessorId FROM Win32_Processor";

            ManagementObjectSearcher oManagementObjectSearcher = new ManagementObjectSearcher(sQuery);

            ManagementObjectCollection oCollection = oManagementObjectSearcher.Get();

            foreach (ManagementObject oManagementObject in oCollection)
            {

                sProcessorID = (string)oManagementObject["ProcessorId"];

            }

            return (sProcessorID);

        }

        /// 
        /// IT IS IMPORTANT to encapsulate your code in a void,
        /// because as your hack gets more complicated, you WANT TO AVOID
        /// having the load parameters be clouded with all this stuff!
        /// 
        public static void CheckHWID()
        {
            // String I'm making for comparison
            string cpuID = GetProcessorID();
            string setting = Properties.Settings.Default.CPUHWID.ToString();

            if (cpuID != setting)
            {
                Console.WriteLine("Your HWID isn't in the database, quitting in 5 seconds");
                Console.Beep();
                Thread.Sleep(5000);

                // You can use the application close but this is a bit more effective and
                // can't be f*d with as easily

                // hackapplication is this process, not another process.
                // It won't kill anything else than this process!
                Process hackapplication = Process.GetCurrentProcess(); hackapplication.Kill();

            }
        }

        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to mach_kernel's generic HWID protection example!!");
            Console.WriteLine("Your CPUID:" + GetProcessorID());
            CheckHWID();
            Console.WriteLine("");
            Console.WriteLine("Your computer was found in the HWID Database!");
            Console.ReadLine();
        }
    }
}

MenaceNeedle 1.0

Well hello everyone, chances have it that I’m now involved with a Game Hacking forum and I (David/mach_kernel) decided to make a public release for them;

I noticed that all the most common DLL injectors make AntiVirus programs shit bricks at a very high rate so I decided to make an undetectable (to AV and game) DLL injector.

Features:

  • Easy to use User Interface
  • Smart Inject (find process ID rather than inject by process name)

Instructions:

  1. Launch application
  2. Click find and browse to hacked DLL
  3. Launch Combat Arms and Push Inject!

Happy Hacking Everyone!

Windows Binary – .NET 3.5