소스 검색

Fix candidates with leading zeroes

Alex Stanev 4 년 전
부모
커밋
dc9c815bc0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      poc/keygen.py

+ 2 - 1
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