Merge branch 'master' of RealEnder/nokia-keygen into master

Fix left zero padding
This commit is contained in:
g 2020-05-06 18:10:35 +00:00 committed by Gogs
commit b22d70ee63

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