Fix candidates with leading zeroes #1

Merged
g merged 1 commits from RealEnder/nokia-keygen:master into master 2020-05-06 20:10:35 +02:00
Showing only changes of commit dc9c815bc0 - Show all commits

View File

@ -62,5 +62,6 @@ for s in ssids:
for r in s.split("[A-F0-9]{4}"):
serialBytes = serialBytes.replace(r, "")
for i in range(0xffff):
print(genpwd_longpasswd(oui, "{:04x}{}".format(i, serialBytes)))
candidate = genpwd_longpasswd(oui, "{:04x}{}".format(i, serialBytes))
print(f"{candidate:010}")
break