Skip to content

Instantly share code, notes, and snippets.

@1nnOc3nt
Created March 4, 2019 15:31
Show Gist options
  • Save 1nnOc3nt/8db5d86a783a280b2d3d8a3cbdce3d1b to your computer and use it in GitHub Desktop.
Save 1nnOc3nt/8db5d86a783a280b2d3d8a3cbdce3d1b to your computer and use it in GitHub Desktop.
serial='76876-77776'
for i in range(ord('a'),ord('z')+1):
for j in range(ord('a'),ord('z')+1):
v6=i
v8=j
v7 = (v6 & 1) + 5
v48 = ((v6 >> 4) & 1) + 5
v42 = ((v6 >> 1) & 1) + 5
v44 = ((v6 >> 2) & 1) + 5
v46 = ((v6 >> 3) & 1) + 5
v34 = (v8 & 1) + 1
v40 = ((v8 >> 4) & 1) + 1
v36 = ((v8 >> 1) & 1) + 1
v9 = ((v8 >> 2) & 1) + 1
v38 = ((v8 >> 3) & 1) + 1
if (v7+v9 == int(serial[0]) and v46+v38 == int(serial[1])
and v42+v40 == int(serial[2]) and v44+v34 == int(serial[3])
and v48+v36 == int(serial[4])):
print chr(i),chr(j)
print '-----------------------------------------------------------------'
for i in range(ord('a'),ord('z')+1):
for j in range(ord('a'),ord('z')+1):
v20=i
v22=j
v21 = (v20 & 1) + 5
v49 = ((v20 >> 4) & 1) + 5
v43 = ((v20 >> 1) & 1) + 5
v45 = ((v20 >> 2) & 1) + 5
v47 = ((v20 >> 3) & 1) + 5
v35 = (v22 & 1) + 1
v41 = ((v22 >> 4) & 1) + 1
v37 = ((v22 >> 1) & 1) + 1
v23 = ((v22 >> 2) & 1) + 1
v39 = ((v22 >> 3) & 1) + 1
if (v21+v23 == int(serial[6]) and v47+v39 == int(serial[7])
and v43+v41 == int(serial[8]) and v45+v35 == int(serial[9])
and v49+v37==int(serial[10])):
print chr(i),chr(j)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment