Lenovo Patch Bios Keygen.py
import random
import string
import time
import sys
import os
def title():
os.system('cls & title Lenovo Patch Bios Keygen')
print("Please wait loading...")
for i in range(0, 100):
time.sleep(0.1)
sys.stdout.write(u"\u001b[1000D")
sys.stdout.flush()
sys.stdout.write(str(i + 1) + "%")
sys.stdout.flush()
def gen():
key = ''.join(random.choice(string.digits) for i in range(7))
id = ''.join(random.choice(string.digits) for i in range(7))
print("""\u001b[32m\nHardware id:"""
+ str(id) + """\nKey:""" + str(key) + "\n\u001b[0mPress enter to exit..")
input()
time.sleep(3)
def main():
title()
os.system('cls')
try:
int(input("\u001b[33mHardware ID: \u001b[0m"))
except ValueError:
print("\u001b[31mInvalid number detected!\nReturning to main menu..\u001b[0m")
time.sleep(3)
main()
try:
int(input("\u001b[33mKey: \u001b[0m"))
except ValueError:
print("\u001b[31mInvalid number detected!\nReturning to main menu..\u001b[0m")
time.sleep(3)
main()
gen()
main()