diff --git a/README.md b/README.md index edbbefd..62fda0d 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ This is a research group dedicated to documenting the data structures used by Ba - No, tags are digitally signed. Even if you modify the contents, the printer will reject any tags without a valid RSA signature - An [Open Source RFID Tag](OpenSourceRfid.md) has been proposed to allow anyone to create / modify their own tags. This must be adopted by printer manufacturers, or you can mod your own printer for support - **What are the next steps for this project?** - - Decyphering the rest of the unknwn tag content + - Decyphering the rest of the unknown tag content - Custom AMS firmware that allows custom tags to be read while ignoring the signature - See [Todos/Timeline/Next steps](#todostimelinenext-steps) for more info diff --git a/traceKeyExtractor.py b/traceKeyExtractor.py index d60b42a..7684658 100644 --- a/traceKeyExtractor.py +++ b/traceKeyExtractor.py @@ -28,7 +28,7 @@ def main(): global pm3Location,dictionaryFilepath,trace print("--------------------------------------------------------") - print("RFID Key Extractor v0.1 - Bambu Research Group 2024") + print("RFID Key Extractor v0.2 - Bambu Research Group 2024") print("--------------------------------------------------------") print("This will extract the keys from a trace file") print("that was saved from sniffing communication between") @@ -200,8 +200,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 "Valid Key" 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 not ("Valid Key" in line and "matches candidate" in line): continue print(f" {line}") @@ -295,4 +296,4 @@ def testCommands(directories, command, arguments = ""): -main(); #Run main program \ No newline at end of file +main(); #Run main program