Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import platform
- import os
- if platform.system() == 'Windows':
- with os.popen('wmic csproduct get uuid') as cmd:
- cmd = cmd.read().split('\n')[2].strip().upper()
- else:
- with os.popen('sudo dmidecode | grep UUID') as cmd:
- cmd = cmd.read().split(':')[1].strip().upper()
- def encript(var):
- var = var.replace('-', '')
- var = var[::-1]
- var1 = var[int((len(var) + 1) / 2):]
- var2 = var[:int((len(var) + 1) / 2)]
- string = ''
- for x in var2:
- new = ord(x)+ 22
- string += chr(new)
- for x in var1:
- new = ord(x) + 30
- string += chr(new)
- string = string.upper()
- string = string.replace('I', 'Y')
- string = string.replace('H', 'W')
- return string
- print(cmd)
- print(encript(cmd))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement