Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib
- import struct
- s = hashlib.new('sha1')
- s.update(bytearray.fromhex('')) # IOPlatformUUID goes here
- s.update(bytearray.fromhex('06bf076405784aaa85b47908348ee343'))
- d = s.hexdigest()[:12]
- uid = struct.unpack('Q', bytearray.fromhex(d + 'ac05'))[0] & ~0xf
- print(hex(uid))
Advertisement
Add Comment
Please, Sign In to add comment