Both checks to mimimize false positives

This commit is contained in:
Adam authored and GitHub committed 2024-09-28 18:35:43 -06:00
1 parent a5be07f360
commit 6309606c77
1 file changed
+3 -2
+3 -2
View File
@@ -233,8 +233,9 @@ def bruteForce(args):
for line in output.splitlines():
line = line.decode("utf-8") #Convert from byte array to string
#Search for the line that says valid key. Example: "Valid Key found [ 63654db94d97 ]
if "matches candidate" not in line:
#Search for the line that says valid key. Example: "Valid Key found [ 63654db94d97 ] - matches candidate"
#In rare cases, multiple possible keys will be found. The "matches candidate" tag should indicate the right one
if "Valid Key" not in line or "matches candidate" not in line:
continue
print(f" {line}")