Advertisement
amaimon02

grupo

Dec 9th, 2020
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.85 KB | None | 0 0
  1. import platform
  2. import os
  3.  
  4.  
  5. if platform.system() == 'Windows':
  6.     with os.popen('wmic csproduct get uuid') as cmd:
  7.         cmd = cmd.read().split('\n')[2].strip().upper()
  8. else:
  9.     with os.popen('sudo dmidecode | grep UUID') as  cmd:
  10.         cmd = cmd.read().split(':')[1].strip().upper()
  11.  
  12.  
  13. def encript(var):
  14.         var = var.replace('-', '')
  15.         var = var[::-1]
  16.         var1 = var[int((len(var) + 1) / 2):]
  17.         var2 = var[:int((len(var) + 1) / 2)]
  18.  
  19.         string = ''
  20.  
  21.         for x in var2:
  22.             new = ord(x)+ 22
  23.             string += chr(new)
  24.        
  25.         for x in var1:
  26.             new = ord(x) + 30
  27.             string += chr(new)
  28.        
  29.         string = string.upper()
  30.         string = string.replace('I', 'Y')
  31.         string = string.replace('H', 'W')
  32.         return string
  33.  
  34. print(cmd)
  35. print(encript(cmd))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement