Get Processor ID Code

Harry

Certified Sick ℂunt
Premium Member
Messages
1,263
Reaction score
968
Points
973
Code:
void GetHID()
        {
            string strProcessorId = string.Empty;
            SelectQuery query = new SelectQuery("Win32_Processor");
            ManagementObjectSearcher search = new ManagementObjectSearcher(query);

            foreach (ManagementObject info in search.Get())
            {
                strProcessorId = info["ProcessorId"].ToString();
            }
        }

How to use it?
Add the reference:
Code:
System.Management.dll

Then add this up top:
Code:
using System.Management;
using System.Management.Instrumentation;

Merry Christmas


What can I use this for?
You can link the ProcessorID to a user, then, if check the ProcessorID when someone logs in. If they don't link, throw them a random error (so they don't instantly know what to spoof)

Also, you could do this through PHP and make your code web based so people can't just decompile and remove this code (unless you got a good obfuscator)
 
Top