[Feature Request] Implement Rolling Code Unlock for Sub-GHz
Currently, the RF / Sub-GHz section allows for basic capturing and replaying of signals. I recently tested the firmware with a LilyGo T-Embed (CC1101) attempting to audit my own garage gate. While I could capture the signal, the replay failed due to the rolling code protection.
I would like to see an implementation similar to the "Unlock" feature found on the Flipper Zero. This feature allows the user to: -Capture a signal from the remote. -Press the remote button multiple times to capture subsequent rolling code increments. -Use these captures to analyze the sequence and potentially bypass the rolling window for supported protocols (e.g., Keeloq, SecPlus).
You can already do something similar by manually analysing raw signals, but is time-consuming and difficult for average users.
Beyond the functional aspect, I am interested in using this feature to evaluate the security of my own devices. Specifically, I want to understand if my gate's rolling code implementation is still secure by modern standards or if it uses an outdated/vulnerable algorithm that can be easily bypassed with a multi-press capture method.
-Thanks for considering this!
Hey, Mayhem firmware contributor here!
I've just implemented this on the Mayhem firmware for the PortaPack + HackRF and I'm porting it over to Bruce currently. In this case we are going to support KeeLoq initially since that is what I agreed in person last week with Pirata, however I want to support other protocols as well in the future. As of now, I already implemented the KeeLoq protocol decoder and in the process of implementing the UI parts and decryption, so expect to see a PR covering this topic in the coming days :>
i'm interested too, Ihave to may remote controller... so I want to put all in my M5stack S3
Here we go, work is done
So it's available now on Bruce firmware. ?? Is there a bin file?
It’s broken again; in /src/modules/rf/rf_send.cpp, the code currently reads: if (data.protocol == "RcSwitch") { loopEmulate(data); } else { txSubFile(data); delay(200); }. It should be something like: if (data.protocol == "RcSwitch" || data.protocol == "KeeLoq") { loopEmulate(data); } else { txSubFile(data); delay(200); }. This is because when recording a rolling-code remote, the protocol is automatically set to "KeeLoq" in the file, and due to that if block, we simply cannot reach the remote emulation function when the protocol is "KeeLoq".[Sorry, I am using Google Translate]