From d3ce768c1489d0407df83da188b59073db86d6dd Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 4 May 2020 19:45:49 +0000 Subject: [PATCH] Update 'poc/keygen.py' --- poc/keygen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poc/keygen.py b/poc/keygen.py index 9acc022..a7f70a5 100644 --- a/poc/keygen.py +++ b/poc/keygen.py @@ -16,7 +16,7 @@ def genpwd_longpasswd(oui, serialnum): #wanpasswd = base64.b32encode(bytes(bytearray(md5_secret1[:16] + md5_secret2[:3]))).decode("ascii")[:30] - lower = upper = i = 0 + lower = upper = 0 for i in range(8): upper = (lower >> 0x18 | ((upper << 8)&0xffffffff))&0xffffffff