Download Horizon :: Staff Members :: TheTechGame.com :: XboxHacking :: XboxMB YouTube


Old 09-03-2010   #1 (permalink)
Banned
 
Join Date: Aug 2010
Location: Massachussetts
Posts: 389
Thanks: 81
Default Computer Identification Snippets

When locking a program to a user's computer, these snippets are useful.

Get user's IP address:

Code:
        private void ipaddress()
        {
            String strHostName = Dns.GetHostName();
            IPHostEntry iphostentry = Dns.GetHostByName(strHostName);
            int nIP = 0;
            foreach (IPAddress ipaddress in iphostentry.AddressList)
            {
                ipadd = ipaddress.ToString();
                iphostname = strHostName;
                
            }  
        }
Get user's MAC address:

Code:
        private void getmac()
        {
                ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration");
                ManagementObjectCollection moc = mc.GetInstances();
                string MACAddress = String.Empty;
                foreach (ManagementObject mo in moc)
                {
                    if (MACAddress == String.Empty) // only return MAC Address from first card
                    {
                        if ((bool)mo["IPEnabled"] == true) MACAddress = mo["MacAddress"].ToString();
                    }
                    mo.Dispose();
                }
                MACAddress = MACAddress.Replace(":", "");
                mac = MACAddress;
        }
Get motherboard ID:

Code:
        private void getmobo()
        {
            ManagementObjectSearcher mbs = new ManagementObjectSearcher("Select * From Win32_BaseBoard");

            foreach (ManagementObject mo in mbs.Get())
            {
                snn = mo["SerialNumber"].ToString().Trim();
            }
            if (snn == string.Empty)
            {
                snn = "No Serial Found";
            }
            
        }
Get Harddrive ID:

Code:
        private void hddss()
        {
            ManagementObject disk = new ManagementObject("win32_logicaldisk.deviceid=\"" + "C" + ":\"");
            disk.Get();
           hds = disk["VolumeSerialNumber"].ToString();
        }
I will add more when I find more.
iCypher is offline Send a message via AIM to iCypher
Reply With Quote


Old 09-03-2010   #2 (permalink)

Theone0522's Avatar
:|
Join Date: Jul 2010
Location: Over The Horizon ;)
Posts: 5,132
Thanks: 2,298
Default Re: Computer Identification Snippets

very cool, so i would add the motherboard snippet to my program, then make the person send me there code and i enter it into my database and they can use the whole program?
__________________
Theone0522 is offline Send a message via AIM to Theone0522
Reply With Quote


Old 09-03-2010   #3 (permalink)
Banned
 
Join Date: Aug 2010
Location: Massachussetts
Posts: 389
Thanks: 81
Default Re: Computer Identification Snippets

Yupp, it works good in a authentication system.
iCypher is offline Send a message via AIM to iCypher
Reply With Quote


Old 09-03-2010   #4 (permalink)

Theone0522's Avatar
:|
Join Date: Jul 2010
Location: Over The Horizon ;)
Posts: 5,132
Thanks: 2,298
Default Re: Computer Identification Snippets

thanks, i think horizon should add this on their program so people dont share there accounts. They can only sign up if there account and motherboard match, if they dont they cannot login, but they can ask for a mobo reset and login again and it automatically apply's the mobo to the account again. (users can only do it 1 every 3 months)
__________________
Theone0522 is offline Send a message via AIM to Theone0522
Reply With Quote


Old 09-03-2010   #5 (permalink)
Banned
 
Join Date: Aug 2010
Location: Massachussetts
Posts: 389
Thanks: 81
Default Re: Computer Identification Snippets

Quote:
Originally Posted by Theone0522 View Post
thanks, i think horizon should add this on their program so people dont share there accounts. They can only sign up if there account and motherboard match, if they dont they cannot login, but they can ask for a mobo reset and login again and it automatically apply's the mobo to the account again. (users can only do it 1 every 3 months)
I think Horizon already has taken precautions for that
iCypher is offline Send a message via AIM to iCypher
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:55 AM.


 

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
COPYRIGHT (c) 2010 - 2011 - XboxMB - DESIGN BY:
EDENWEBS.COM