Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
HWID System With Online/Offline Protection
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-29-2010, 09:43 PM
Active Member
BANNED
 
Join Date: Mar 2010
Posts: 156
Default HWID System With Online/Offline Protection

Hi,

Some of this code is from other people and I've just compiled it together and changed to C# as well as adding online/offline protection. There's two ways to doing this. You will need to host a database.txt file on a website which contains the valid HWID's.

What is a HWID?

http://www.webopedia.com/TERM/H/HWID.html

First one :

Step : 1

This is to retrieve the HWID of the computer and paste it into a textBox.(button1_Click) Paste it inside the { and the } when you double click the Get HWID button.

Code:
string cpuInfo = string.Empty;
    ManagementClass mc = new ManagementClass("win32_processor");
    ManagementObjectCollection moc = mc.GetInstances();

    foreach (ManagementObject mo in moc)
    {
    if (string.IsNullOrEmpty(cpuInfo))
    {
    cpuInfo = mo["ProcessorID"].ToString();
    break;
    }

    }
    textBox1.Text = cpuInfo;
Step : 2

This is to retrieve the list of HWID's from your database.txt file and check it to the current computers.(button2_Click) Paste it inside the { and the } when you double click the Check/Login button.

Code:
try
    {
    string cpuInfo = string.Empty;
    WebClient webClient = new WebClient();
    string strings = null;
    strings = webClient.DownloadString("http://website.com/Database.txt");
    webClient.Dispose();

     if (strings.Contains(cpuInfo))
    {

     // If the HWID is in the file then it will return this.    MessageBox.Show("HWID Valid", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
    this.Hide();
    Form1 frm1 = new Form1();
    frm1.ShowDialog();
     }
    else
    {
     // If the HWID isn't in the file then it will return this.
    MessageBox.Show("HWID Invalid", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
    this.Close();
    }
    }
    catch (Exception)
    {
    // If not connected to the internet or can't connect to the site then it will return this.
    MessageBox.Show("Unable To Retrieve HWID", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
    this.Close();
    }

Second One :


Step : 1


This is to retrieve the HWID of the computer and paste it into a textBox.(button1_Click) Paste it inside the { and the } when you double click the Get HWID button.

Code:
string cpuInfo = string.Empty;
    ManagementClass mc = new ManagementClass("win32_processor");
    ManagementObjectCollection moc = mc.GetInstances();

    foreach (ManagementObject mo in moc)
    {
    if (string.IsNullOrEmpty(cpuInfo))
    {
    cpuInfo = mo["ProcessorID"].ToString();
    break;
    }

    }
    textBox1.Text = cpuInfo;
Step : 2

This will handle the checking of if you are connected to the internet.

Code:
[DllImport("wininet.dll")]
private extern static bool InternetGetConnectedState( int out Description, int ReservedValue ) ;

public static bool isConnectedToTheInternet( )
{

    int Desc ;
    return InternetGetConnectedState( out Desc, 0 ) ;

}

Step : 3


This is to retreive the list of HWID's from your database.txt file and chek it to the current computers.(button2_Click) Paste it inside the { and the } when you double click the Check/Login button.

Code:
if (!isConnectedToTheInternet()) //Checks if it isn't connected to internet
    {
    MessageBox.Show("Unable To Retrieve HWID", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
    this.Dispose();
    } else
    { //Downloads the database.txt file.
    string cpuInfo = string.Empty;
    WebClient webClient = new WebClient();
    string strings = null;
    strings = webClient.DownloadString("http://website.com/Database.txt");
     webClient.Dispose();

    if (strings.Contains(cpuInfo))//If it contains the HWID in the database.txt file.
    {
    MessageBox.Show("HWID Valid", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
    this.Hide();
    Form1 frm1 = new Form1();
    frm1.ShowDialog();
    } 
    if (!strings.Contains(cpuInfo))//If it doesn't contain the HWID in the database.txt file.(Could use else method)
    {
    {
    MessageBox.Show("HWID Invalid", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
    this.Dispose();
    }
    }

    }
  }
That's it, I recommend the first one for beginners or novice users and second for more experienced users as you have more control.

Enjoy!
Reply With Quote
  #2  
Old 03-21-2011, 07:48 PM
Guru
 
Join Date: Mar 2007
Location: 127.0.0.1
Posts: 1,285
Send a message via MSN to Divine blob
Default Re: HWID System With Online/Offline Protection

I used to use a bot that was protected by something similar to these. Are these good for selling programs?
__________________
Reply With Quote
  #3  
Old 03-23-2011, 11:54 PM
Jeezal's Avatar
Forum Addict
 
Join Date: Mar 2011
Posts: 285
Send a message via MSN to Jeezal
Default Re: HWID System With Online/Offline Protection

i was curious will these help for sell
Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

All times are GMT +1. The time now is 06:33 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1