From ff52954cadabd4fbb46943a8d99385b746f28eca Mon Sep 17 00:00:00 2001 From: Alex Stanev Date: Wed, 6 May 2020 22:00:53 +0300 Subject: [PATCH] Fix off-by-one error --- poc/keygen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poc/keygen.py b/poc/keygen.py index fcaa952..5503b82 100644 --- a/poc/keygen.py +++ b/poc/keygen.py @@ -61,7 +61,7 @@ for s in ssids: serialBytes = args.ssid for r in s.split("[A-F0-9]{4}"): serialBytes = serialBytes.replace(r, "") - for i in range(0xffff): + for i in range(0xffff + 1): candidate = genpwd_longpasswd(oui, "{:04x}{}".format(i, serialBytes)) print(f"{candidate:010}") break -- 2.39.5