![]() |
|
[C#] [C#]HWID System With Online/Offline Protection - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] [C#]HWID System With Online/Offline Protection (/showthread.php?tid=800166) |
[C#]HWID System With Online/Offline Protection - Blimp - Nov 7, 2010 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. 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;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 trySecond 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;Step : 2 This will handle the checking of if you are connected to the internet. Code [DllImport("wininet.dll")]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 internetThat's it, I recommend the first one for beginners or novice users and second for more experienced users as you have more control. Enjoy! * - xCocaine - Nov 7, 2010 I got flamed when i posted it in vb.net... It's posted alot of time.. But this is C#, hope u not get flamed.. Nice work ;D * - Blimp - Nov 7, 2010 (Nov 7, 2010 02:03 AM)xCocaine Wrote: I got flamed when i posted it in vb.net... Thanks although i haven't seen it at all in C# with online/offline protection. People shouldn't flame and be grateful for the contribution as it may help some people. * - Blimp - Nov 8, 2010 Updated this, I forgot to add the public static bool isConnectedToTheInternet( ) * - CryptoMatic - Aug 4, 2012 it doesen't work, doesen't catch if its not in the txt file * - Gee19 - Aug 4, 2012 Also, this method is very simple to bypass. * - Excore - Aug 4, 2012 Oh god why. This thread is almost 3 years old. The protection sucks, please let this thread die. |