From dc9c815bc0852d1f71ef595744a00780deb6dd27 Mon Sep 17 00:00:00 2001 From: Alex Stanev Date: Wed, 6 May 2020 20:43:33 +0300 Subject: [PATCH] Fix candidates with leading zeroes --- poc/keygen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/poc/keygen.py b/poc/keygen.py index a7f70a5..fcaa952 100644 --- a/poc/keygen.py +++ b/poc/keygen.py @@ -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