import wmi
import hashlib
def generate_hwid():
# WMI (Windows Management Instrumentation) nesnesini oluşturma
wmi_obj = wmi.WMI()
# Python Tutorial Memoryhackers.org
# BIOS bileşenleri
bios_manufacturer = wmi_obj.Win32_BIOS()[0].Manufacturer
bios_version = wmi_obj.Win32_BIOS()[0].SMBIOSBIOSVersion
bios_id = wmi_obj.Win32_BIOS()[0].IdentificationCode
# CPU bileşenleri
cpu_id = wmi_obj.Win32_Processor()[0].ProcessorId
cpu_unique_id = wmi_obj.Win32_Processor()[0].UniqueId
cpu_name = wmi_obj.Win32_Processor()[0].Name
# HDD bileşenleri
hdd_model = wmi_obj.Win32_DiskDrive()[0].Model
hdd_total_heads = wmi_obj.Win32_DiskDrive()[0].TotalHeads
# GPU bileşenleri
gpu_driver_version = wmi_obj.Win32_VideoController()[0].DriverVersion
gpu_name = wmi_obj.Win32_VideoController()[0].Name
# MAC adresi bileşeni
mac_address = wmi_obj.Win32_NetworkAdapterConfiguration(IPEnabled=True)[0].MACAddress
# İşletim sistemi bileşenleri
os_serial_number = wmi_obj.Win32_OperatingSystem()[0].SerialNumber
os_name = wmi_obj.Win32_OperatingSystem()[0].Name
# SCSI bileşenleri
scsi_device_id = wmi_obj.Win32_SCSIController()[0].DeviceID
scsi_name = wmi_obj.Win32_SCSIController()[0].Name
# Bileşenleri birleştirerek HWID'yi oluşturma
components = ''.join([
bios_manufacturer, bios_version, bios_id,
cpu_id, cpu_unique_id, cpu_name,
hdd_model, str(hdd_total_heads),
gpu_driver_version, gpu_name,
mac_address,
os_serial_number, os_name,
scsi_device_id, scsi_name
])
hwid = hashlib.sha256(components.encode()).hexdigest()
return hwid
# Ana kod akışı ekrana çıktı bu aşağıdaki kısımdan veriliyor.
# Python Tutorial Memoryhackers.org
if __name__ == "__main__":
hwid = generate_hwid()
print("Benzersiz HWID: ", hwid)