Skip to content

Instantly share code, notes, and snippets.

@secrary
Created August 21, 2017 11:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save secrary/243aa7272c3f42a600fe1ebbeb18b6dd to your computer and use it in GitHub Desktop.
def modify_cpuid_time(from_cpu_and_time):
alpha = mix_two_list()
index = 0
edx = 0
res = []
for x in range(len(from_cpu_and_time)):
index += 1
index = index & 0xFF
edx = (alpha[index] + edx) & 0xFF
tmp = alpha[index]
alpha[index] = alpha[edx]
alpha[edx] = tmp
eax = (alpha[index] + tmp) & 0x800000FF
if from_cpu_and_time[x] ^ alpha[eax] == 0:
return res
res.append(from_cpu_and_time[x] ^ alpha[eax])
return res
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment