-
Notifications
You must be signed in to change notification settings - Fork 0
/
spoofer.py
64 lines (57 loc) · 2.24 KB
/
spoofer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import random
import os
def generate_serial():
serial = ""
for i in range(8):
serial += str(random.randint(0,9))
return serial
os.system("wmic path win32_desktopmonitor get serialnumber > monitor_serial.txt")
with open("monitor_serial.txt", "r") as f:
lines = f.readlines()
with open("monitor_serial.txt", "w") as f1:
for line in lines:
if "SerialNumber" in line:
f1.write("SerialNumber\t" + generate_serial() + "\n")
else:
f1.write(line)
os.system("wmic path win32_physicalmedia get serialnumber > disk_serial.txt")
with open("disk_serial.txt", "r") as f:
lines = f.readlines()
with open("disk_serial.txt", "w") as f1:
for line in lines:
if "SerialNumber" in line:
f1.write("SerialNumber\t" + generate_serial() + "\n")
else:
f1.write(line)
os.system("wmic path win32_videocontroller get serialnumber > gpu_serial.txt")
with open("gpu_serial.txt", "r") as f:
lines = f.readlines()
with open("gpu_serial.txt", "w") as f1:
for line in lines:
if "SerialNumber" in line:
f1.write("SerialNumber\t" + generate_serial() + "\n")
else:
f1.write(line)
os.system("wmic path win32_processor get processorid > cpu_serial.txt")
with open("cpu_serial.txt", "r") as f:
lines = f.readlines()
with open("cpu_serial.txt", "w") as f1:
for line in lines:
if "ProcessorId" in line:
f1.write("ProcessorId\t" + generate_serial() + "\n")
else:
f1.write(line)
os.system("wmic path win32_computersystemproduct get uuid > hwid_serial.txt")
with open("hwid_serial.txt", "r") as f:
lines = f.readlines()
with open("hwid_serial.txt", "w") as f1:
for line in lines:
if "UUID" in line:
f1.write("UUID\t" + generate_serial() + "\n")
else:
f1.write(line)
print("Your monitor serial number is: " + generate_serial())
print("Your disk serial number is: " + generate_serial())
print("Your GPU serial number is: " + generate_serial())
print("Your CPU serial number is: " + generate_serial())
print("Your HWID serial number is: " + generate_serial())