Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rf replay not working m5stick cplus 2 #608

Open
thanatos84 opened this issue Dec 25, 2024 · 29 comments
Open

Rf replay not working m5stick cplus 2 #608

thanatos84 opened this issue Dec 25, 2024 · 29 comments

Comments

@thanatos84
Copy link

Describe the bug:
RF replay not working on m5stick C plus 2

Steps To Reproduce:
Select all ranges, intercept signal and reply. Neither works if I save it and then I try to replay it

  • Device used: m5stick c plus 2
@bmorcelli
Copy link
Collaborator

It was fixed in this commit e92a3ab

please test it with the last beta

@thanatos84
Copy link
Author

thanatos84 commented Dec 25, 2024

Tried with latest beta in the website. I've tried with my garage door and now reply works but not working when I go to "main menu > rf > custom subhhz > select file", it appears "sending" but nothing happens

I'm using CC1101. Spectrum and jammer works fine

@bmorcelli
Copy link
Collaborator

Ok, I'll keep looking into the Raw signal detection/saving.. it'll take some time tho

@bmorcelli bmorcelli reopened this Dec 26, 2024
@bmorcelli
Copy link
Collaborator

As you have a HackRF, can you check one thing for me?

I believe the signal is being saved "inverted"... Like high times and Low times swapped...

If this is the problem, I might need to add one dummy time at the beginning to invert it..

If you can send a snapshot of both original signal and replayed signal, where we can see the first 10 square waves, maybe it can help me debugging this issue

@MAR1TO15
Copy link

I don't know if it has anything to do with it, but checking the .sub file, it is missing ":" after the version, so no .sub file processor accepts it.

@bmorcelli
Copy link
Collaborator

It is not the problem.. this version section is nothing but a comment

@rustysun9
Copy link

rustysun9 commented Dec 26, 2024

As you have a HackRF, can you check one thing for me?

I believe the signal is being saved "inverted"... Like high times and Low times swapped...

If this is the problem, I might need to add one dummy time at the beginning to invert it..

If you can send a snapshot of both original signal and replayed signal, where we can see the first 10 square waves, maybe it can help me debugging this issue

Let me help you with that since I was analyzing simmilar yesterday with URH. What i noticed is that binary values of bruce sub compared with EvilC didnt match at all. But I didnt thought about signal being inverted and didnt look into that. Will also check this later today since I am going out now. Anyway let me at least share files with you since it might help.

Below are recordings of remote door unlock signal data transferred via 433.92MHz. Recordings are with EvilCrowRFv2 (which can also be successfully replicated) and recording of same data (same button on remote) )with Bruce where sending data is not working correctly.

Description of each shared file:

  • EvilCrow recording sub file: ECRF_remote_rec_RAW_File_433.92mHz_ASK_OOK_653_samples.sub
  • Bruce recording sub file: bruce_3_rec_remote.sub
  • EvilCrow recording of Bruces bruce_3_rec_remote.sub transmission: ECRF_rec_bruce3_RAW_File_433.92mHz_ASK_OOK_294_samples.sub
    sub_files.tar.gz

Screenshot_2024-12-26_15-16-15

Edit: Forgot to mention that Bruce recording and sending was done with LilyGo Tembed cc1101 modul flashed with latest beta firmware. ffa4c1f

Hope it helps!

@bmorcelli
Copy link
Collaborator

Today I could successfully open my gate with the RAW data collected with Cardputer and T-Embed CC1101 with this last version available on Beta

@rustysun9 if you could do the testing please

@thanatos84
Copy link
Author

Today I could successfully open my gate with the RAW data collected with Cardputer and T-Embed CC1101 with this last version available on Beta

@rustysun9 if you could do the testing please

Wich version? Because this afternoon I updated last beta and I just received dozens of fake raw signals in m5stick cplus2

I thought may be there was some noise in the air, but I checked with flipper zero also and nothing. Also I installed latest stable and no noise (but not working for sure)

@thanatos84
Copy link
Author

I've installed latest beta and device is not booting, I've had to install again latest stable

@rustysun9
Copy link

rustysun9 commented Dec 29, 2024

Today I could successfully open my gate with the RAW data collected with Cardputer and T-Embed CC1101 with this last version available on Beta

@rustysun9 if you could do the testing please

@bmorcelli Great. I will test it today and let you know.

@hunt3rbb666NotFound
Copy link

I just tested with the latest beta my 433mhz car remote, it captures the raw signal but the replay doesn't work. I also tried saving more signals but no luck :(

@rouing
Copy link
Contributor

rouing commented Dec 29, 2024

I just tested with the latest beta my 433mhz car remote, it captures the raw signal but the replay doesn't work. I also tried saving more signals but no luck :(

You mean your Cars Keyfob? Please dont try this. You can cause issues and lock yourself out of the vehicle. Its also not likely to work.

@rustysun9
Copy link

Today I could successfully open my gate with the RAW data collected with Cardputer and T-Embed CC1101 with this last version available on Beta

@rustysun9 if you could do the testing please

@bmorcelli; sadly, testing was not successfull yet. I have tested opening and locking doors with two different Tembed devices (one with external antenna and second with stock HW). Both running 63a1be3 commit.
Please find Bruce saved sub file named bruce_5.sub and EvilCrow sub file created with recording of transmision of bruce_5.sub from Tembed in the attached archive. I havent checked or analized data with URH yet since I am testing this at my parents place..
files.tar.gz

@MayLaOwn
Copy link
Contributor

@rouing Flipper Zero works the replay without causing damage. Isn't this possible with bruce? Meaning I can't carry out RF tests on my car?

@rouing
Copy link
Contributor

rouing commented Dec 29, 2024

@rouing Flipper Zero works the replay without causing damage. Isn't this possible with bruce? Meaning I can't carry out RF tests on my car?

You can cause your keyfob to get out of sync with the car. Then you will be locked out.

@MayLaOwn
Copy link
Contributor

@rouing I didn't understand the answer and for that I apologize. can you explain me better? Raw signal replay should work and cause no damage...

@rouing
Copy link
Contributor

rouing commented Dec 29, 2024

https://tcm-sec.com/intro-to-car-hacking-replay-attacks/

"Some of these attacks may put a key fob and car out of sync, causing the key fob to no longer work until the car and fob are reprogrammed."

Everything you need to know is in that article.

@rouing
Copy link
Contributor

rouing commented Dec 29, 2024

Bruce should still be working yes though, were having issues apparently.

@thanatos84
Copy link
Author

What devices are you using? I've tried again to flash via the website latest beta in m5stic cplus 2 and not booting, it just turn on green led when press power on… but not booting

Then I go back to stable 1.8 and boots perfectly

@MayLaOwn
Copy link
Contributor

@rouing Ok now at least we know not to even try. Hopefully this will be different for Bruce in the future, even if it means risking my devices I should be able to do it. Thanks for the reply!

@eadmaster
Copy link
Contributor

eadmaster commented Dec 30, 2024

It may be worth having separate menu entries for raw and decoded signals replay.

I've found sometimes the RcSwitch library skips a part of the signal for some reason.

For instance, this is the output of rtl_433 -a 4 with a smart home plug i have:

[00] {151} 4c 0f 08 26 07 84 13 03 c2 09 81 e1 04 c0 f0 82 60 78 40 
[01] {33} a1 82 98 93 00                                           : 10100001 10000010 10011000 10010011 0
[02] {33} a1 82 98 93 00                                           : 10100001 10000010 10011000 10010011 0
[03] {33} a1 82 98 93 00                                           : 10100001 10000010 10011000 10010011 0
[04] {32} a1 82 98 93                                              : 10100001 10000010 10011000 10010011 

the initial row ([00] {151} 4c 0f...) is not present in the generated sub file:

Filetype: Bruce SubGhz File
Version 1
Frequency: 433919968
Preset: 2
Protocol: RcSwitch
Bit: 32
Key: 00 00 00 00 A1 82 98 93
TE: 706

@bmorcelli
Copy link
Collaborator

It may be worth having separate menu entries for raw and decoded signals replay.

I've found sometimes the RcSwitch library skips a part of the signal for some reason.

For instance, this is the output of rtl_433 -a 4 with a smart home plug i have:

[00] {151} 4c 0f 08 26 07 84 13 03 c2 09 81 e1 04 c0 f0 82 60 78 40 
[01] {33} a1 82 98 93 00                                           : 10100001 10000010 10011000 10010011 0
[02] {33} a1 82 98 93 00                                           : 10100001 10000010 10011000 10010011 0
[03] {33} a1 82 98 93 00                                           : 10100001 10000010 10011000 10010011 0
[04] {32} a1 82 98 93                                              : 10100001 10000010 10011000 10010011 

the initial row ([00] {151} 4c 0f...) is not present in the generated sub file:

Filetype: Bruce SubGhz File
Version 1
Frequency: 433919968
Preset: 2
Protocol: RcSwitch
Bit: 32
Key: 00 00 00 00 A1 82 98 93
TE: 706

This is the preamble part that usually is prepared by the Preset: 2 in the RCSwitch library...

The raw reading is reading the timings completely... You can activate RAW Only if you have DevMode activated and try to catch and replay it..

I tested like this:

  • captured the RAW signal using T-Embed, and the decoded signal with Cardputer... This signal was sent by the Controller
  • Replayed the RAW signal with T-Embed and saw the same decoded signal on the Cardputer and the gate was opening

@hunt3rbb666NotFound
Copy link

@bmorcelli Above it says that we cannot do the raw replay of the car remote control (now it doesn't work anyway) because we could damage and remain locked out. Is it normal for it to be problematic? Or is it just about Bruce? Flipper zero does not cause this damage and it works.

@bmorcelli
Copy link
Collaborator

Depending on the system, if it has rolling code, there's a small risk of desynchronization of the key fob and the car..

Mostly RAW reading is a Bruce problem, that we need to figure out a way to do read and replay successfully..

Flipper Zero has tons of people developing for it, and a lot of resources (money, people amd hardware) to play with...and bruce, it the other hand, has only myself trying to make this raw reading work by messing with the RCSwitch library, with no money, no Flipper and no hackRf and low time 😔

@rustysun9
Copy link

@bmorcelli The thing that people started to compare Bruce to Flipper Zero is only confirmation that firmware which you are developing (mostly on your own) is coming to a phase where in the near future it could really be best alternative to FZ. Meaning that you are doing great job.
Bruce community is still relatively small and many of us interested in this project are learning on the go. Its hard to help when you have some RF knowledge but not a lot of expirience in C/C++.
What I want to say is that many of us appreciate your work and know that it will take time and a lot of help of current and future contributors to develop something which is free to be on same level to 200€ mainstream device :) Whatever comparison of Bruce to FZ should be compliment and not rant to you :)

@thanatos84
Copy link
Author

@bmorcelli I've tested just now to flash latest beta from the web flasher, tested to capture my garage door, saving and then opening and it works!

In the latests betas I received lot of noise when capturing and it didn't work, now without noise and working!

@rustysun9 , @eadmaster , @hunt3rbb666NotFound & @MayLaOwn can you try also to doublecheck that works also for you?

@bmorcelli
Copy link
Collaborator

@thanatos84 awesome 😎

@rustysun9
Copy link

@thanatos84 Great. I will try with the latest beta tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants