First off all its very important to put all strings togeter if you want to make it perfect
Code:
Imports System****
Imports System.Management
Public Class Form1
Dim cpuInfo As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
txtHWID.Text = GetHWID()
Me.AcceptButton = btnConnect
End Sub
Function GetHWID()
Dim mc As New ManagementClass("win32_processor")
Dim moc As ManagementObjectCollection = mc.GetInstances
For Each mo As ManagementObject In moc
If cpuInfo = "" Then
cpuInfo = mo.Properties("processorID").Value.ToString
Exit For
End If
Next
Return cpuInfo
End Function
Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConnect.Click
Dim Request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("https://Bradwatson95.*******.com/HWID.txt ")
Dim Response As System.Net.HttpWebResponse = Request.GetResponse()
Dim SR As System****.StreamReader = New System****.StreamReader(Response.GetResponseStream)
Dim HWIDAdded As String = SR.ReadToEnd
Dim ThisHWID As String = GetHWID()
If HWIDAdded.Contains(ThisHWID) Then
Form2.Show()
Me.Hide()
Else
Application.Exit()
End If
End Sub
End Class
After enabling those bushes,make sure you decide wich string are you about to pull
Code:
If Textbox2.Text = "MyPassword" Then
Form2.Show()
Else
Me.Close()
End If
After you finished with compiling make sure all off data stats are enable on the line
Code:
{
string cpuInfo = string.Empty;
ManagementClass mc = new ManagementClass("win32_processor");
ManagementObjectCollection moc = mc.GetInstances();
foreach (ManagementObject mo in moc)
{
if (cpuInfo == "")
{
cpuInfo = mo.Properties["processorID"].Value.ToString();
break;
}
}
System.Net.WebClient WebbrowserforLogging = new System.Net.WebClient();
string IP = System.Text.Encoding.ASCII.GetString((WebbrowserforLogging.DownloadData("https://automation.whatismyip.com/n09230945.asp")));
DateTime now = DateTime.Now;
WebbrowserforLogging.DownloadString("https://gunz.zapto.org/hibansystem1/hwidlog.php?action=write&data=" + GetHDDSerial() + " = " + cpuInfo + " = " + IP + " = " + now);
System.Net.WebClient Wc = new System.Net.WebClient();
string hwidbanned = Wc.DownloadString("https://gunz.zapto.org/hibansystem1/HWID.txt");
if (hwidbanned.Contains(GetHDDSerial() +cpuInfo))
{
MessageBox.Show("You have been banned from 'Your Gunz'.", "Your Gunz");
Environment.Exit(-1);
}
else
{
}
Get Serial Number of HDD:
Then add checkers
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HWID
{
class Program
{
static void Main(string[] args)
{
Hwid hwid = new Hwid();
// Change this to your desired password;
string password = "secret1234";
if (args.Length < 1)
PrintHelp();
else
switch (args[0])
{
case "--display":
{
Console.WriteLine("CPU ID: " + hwid.CpuId);
Console.WriteLine("HDD ID: " + hwid.HddId);
Console.WriteLine();
break;
}
case "--generate":
{
if (args.Length < 2)
{
Console.WriteLine("Path not specified!");
break;
}
string path = args[1];
Console.WriteLine("Encrypted HWID: " + hwid.Generate(password, path));
// If we don't specify the path it will only return the encrypted string
//Console.WriteLine("Encrypted HWID: " + hwid.Generate(password));
break;
}
case "--verify":
{
if (args.Length < 2)
{
Console.WriteLine("Path not specified!");
break;
}
string path = args[1];
Console.WriteLine(hwid.Verify(password, path));
break;
}
default:
{
PrintHelp();
break;
}
}
Console.WriteLine("Press any key to continue . . .");
Console.ReadLine();
}
private static void PrintHelp()
{
Console.WriteLine("Usage: hwid.exe <option>");
Console.WriteLine("");
Console.WriteLine("Options:");
Console.WriteLine(" --display Display the HWID(CPUID and HDDID)");
Console.WriteLine(" --generate <path> Saves the crypted HWID to path");
Console.WriteLine(" --verify <path> Verifies the HWID is available in the path");
}
}
}
That should be it,make sure u compiled every string each since it will give oposite number if you didnt
Have fun dont forget to thanks!