Update MFC dict, 135 new keys from RRG pm3 repo and UberGuidoZ dump

This commit is contained in:
Willy-JL
2024-07-11 22:12:49 +01:00
parent 0b91b2e31f
commit 826aa4ba3d
3 changed files with 175 additions and 25 deletions
+5 -1
View File
@@ -13,6 +13,7 @@ except UnicodeDecodeError:
)
exit()
total = 0
for i, line in enumerate(lines):
lines[i] = line = line.strip()
if line.startswith("#"):
@@ -21,9 +22,12 @@ for i, line in enumerate(lines):
if not line:
continue
if len(line) != 12 or any(char not in string.hexdigits for char in line):
print(f"line {i + 1} is not correct: {line}")
print(f"Line {i + 1} is not correct: {line}")
else:
total = total + 1
for j in reversed(range(i + 1, len(lines))):
if lines[j].upper().strip() == line:
del lines[j]
file.write_text("\n".join(line for line in lines if line.removeprefix("#")))
print(f"Total keys: {total}")