Author Topic: Hacking the Rigol MSO5000 series oscilloscopes  (Read 916107 times)

0 Members and 7 Guests are viewing this topic.

Offline d86d1864

  • Newbie
  • Posts: 6
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2075 on: September 28, 2021, 06:11:21 pm »
Why do you want to see them? They are different keys of the same type. Just that.

They most probably use an ID of the scope to seed the key generation. Never truly investigated that although it has crossed my mind.

With access to two public keys it's trivial to check for nonce reuse, and with more keys it's possible to check for weak key generation.
This of course is only possible if the keys are in fact different (albeit different in a specific way).

In either case such weaknesses would potentially allow for private key recovery, which I'd like to attempt.
 

Offline oelapaloma

  • Newbie
  • Posts: 9
  • Country: de
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2076 on: September 28, 2021, 06:20:37 pm »
It seems I have a new build and a different checksum. Now what?

System Information:
Firmware: 0A.01.03.00.01
Boot: 2018.06.27
Build: 2021-05-04 15:50:32


Checksum:
<root@rigol>md5sum appEntry
4669caa3cfb3d19f98adff7833e321db  appEntry


I have successfully created a backup, I am able to activate SSH, I can connect with WinSCP and provide files for analysis, if needed. I think I understood how to hack the scope, but the checksums will not match (I have not tried, but that's why I created the MD5 hash to know in advance).
« Last Edit: September 28, 2021, 07:14:43 pm by oelapaloma »
 

Offline d86d1864

  • Newbie
  • Posts: 6
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2077 on: September 28, 2021, 07:12:52 pm »
Firmware: 0A.01.03.00.01

Curious. That does not match any version, or even naming scheme, I have ever seen.

I had a quick look at all the usual places Rigol publishes firmware but they all point to 00.01.03.00.01.

The stock 00.01.03.00.01 does not come with ssh enabled, so I assume you ran some USB script to enable it - did you by any chance run a script that might've modified your appEntry?
 

Offline oelapaloma

  • Newbie
  • Posts: 9
  • Country: de
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2078 on: September 28, 2021, 07:31:38 pm »
Quote
did you by any chance run a script that might've modified your appEntry?

I created USB Sticks with GEL files on it. I'm not sure whether one of these modified appEntry, but the Firmware version was like that all the time. I recorded it when I bought the scope. The GEL files I used were those for backing up files (no need to modify appEntry, I hope) and running the SSH server (also no need to modify appEntry, I hope).
 

Offline d86d1864

  • Newbie
  • Posts: 6
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2079 on: September 28, 2021, 07:57:31 pm »
I'm not sure whether one of these modified appEntry, but the Firmware version was like that all the time.

I just went through the six patches I have on file and I was not able to find any that matched the MD5 you gave.
It is of course possible I've missed several patches, but if you say the factory fresh version had the 0A, then it's entirely possible you're running some as-yet-unpublished version of the firmware.

It's easiest to put together a patch if we have the full firmware, but if you can attach your appEntry that's likely enough.
(Unfortunately I can't personally promise I'll have time to have a look, but perhaps someone else out there can.)

Good luck!
« Last Edit: September 28, 2021, 08:15:05 pm by d86d1864 »
 

Offline oliv3r

  • Frequent Contributor
  • **
  • Posts: 279
  • Country: nl
    • Rigol related stuff!
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2080 on: September 29, 2021, 08:30:32 am »
It seems I have a new build and a different checksum. Now what?

System Information:
Firmware: 0A.01.03.00.01
Boot: 2018.06.27
Build: 2021-05-04 15:50:32


Checksum:
<root@rigol>md5sum appEntry
4669caa3cfb3d19f98adff7833e321db  appEntry


I have successfully created a backup, I am able to activate SSH, I can connect with WinSCP and provide files for analysis, if needed. I think I understood how to hack the scope, but the checksums will not match (I have not tried, but that's why I created the MD5 hash to know in advance).

I'm very curious in that release :)

Did you do a 'full nand backup'? Would you mind sharing that one so I can add it to the gitlab repo?

Offline oliv3r

  • Frequent Contributor
  • **
  • Posts: 279
  • Country: nl
    • Rigol related stuff!
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2081 on: September 29, 2021, 08:31:49 am »
While the promo still appears to be running (I'll check again okt. 1st to see if it was extended again :p) I can't actually reach the form.

https://www.rigolna.com/promos/ does list the link, but the link is dead, from the EU and the USA :(
https://beyondmeasure.rigoltech.com/acton/ct/1579/p-0080/Bct/-/-/ct20_0/1/fu?sid=TV2%3AKt5oPeWlY

can anybody confirm it is indeed, dead?

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5125
  • Country: nl
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2082 on: September 29, 2021, 09:18:26 am »
While the promo still appears to be running (I'll check again okt. 1st to see if it was extended again :p) I can't actually reach the form.

Both the link on the rigolna site and the direct one work fine for me (Netherlands IP)
Keyboard error: Press F1 to continue.
 

Offline oliv3r

  • Frequent Contributor
  • **
  • Posts: 279
  • Country: nl
    • Rigol related stuff!
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2083 on: September 30, 2021, 06:44:15 pm »
While the promo still appears to be running (I'll check again okt. 1st to see if it was extended again :p) I can't actually reach the form.

Both the link on the rigolna site and the direct one work fine for me (Netherlands IP)

That is so sad :( I also have a Netherlands IP and get:
Quote
This site can’t be reached
beyondmeasure.rigoltech.com refused to connect.

Offline oelapaloma

  • Newbie
  • Posts: 9
  • Country: de
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2084 on: September 30, 2021, 06:59:19 pm »
Quote
I can't actually reach the form.

Same issue here right at the moment. I had problems on September 28th as well, but 2 hours later it worked again.

Quote
'full nand backup'

I don't know what that is. Is there a GEL file to create that kind of backup? Ok, got that one as well from https://www.eevblog.com/forum/testgear/hacking-the-rigol-mso5000-series-oscilloscopes/msg2757356/#msg2757356. Will try.
At the moment I only have a calibration backup. But I can connect to the scope using WinSCP and I can access /rigol/appEntry and likely other files if needed.

Find appEntry (22 MB) for a few days on http://37.120.179.6/appEntry-0A.01.03.00.01
« Last Edit: September 30, 2021, 07:13:09 pm by oelapaloma »
 
The following users thanked this post: d86d1864

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5125
  • Country: nl
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2085 on: September 30, 2021, 07:07:09 pm »
Just checked again and it still works for me, very strange
Keyboard error: Press F1 to continue.
 

Offline oliv3r

  • Frequent Contributor
  • **
  • Posts: 279
  • Country: nl
    • Rigol related stuff!
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2086 on: September 30, 2021, 07:26:06 pm »
Quote
I can't actually reach the form.

Same issue here right at the moment. I had problems on September 28th as well, but 2 hours later it worked again.

Quote
'full nand backup'

I don't know what that is. Is there a GEL file to create that kind of backup? Ok, got that one as well from https://www.eevblog.com/forum/testgear/hacking-the-rigol-mso5000-series-oscilloscopes/msg2757356/#msg2757356. Will try.
At the moment I only have a calibration backup. But I can connect to the scope using WinSCP and I can access /rigol/appEntry and likely other files if needed.

Find appEntry (22 MB) for a few days on http://37.120.179.6/appEntry-0A.01.03.00.01

Heh, you found the link faster then I did :p I was looking for that link from our very own @tv84 :) but the script only does a simple `dd if=/dev/mdX of=/media/usb/mdX` so nothing super special :)

Offline oliv3r

  • Frequent Contributor
  • **
  • Posts: 279
  • Country: nl
    • Rigol related stuff!
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2087 on: September 30, 2021, 07:33:48 pm »
Just checked again and it still works for me, very strange
Didn't work in the NL; used a USA proxy; worked this time around ... weirdness.

Offline PabloSanchez

  • Newbie
  • Posts: 3
  • Country: ru
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2088 on: September 30, 2021, 08:44:40 pm »
Hi!
I have the firmware 00.01.03.00.01 from 30.03.2020
can someone tell me where to download the firmware FW 01.03.00.01 build 2020-05-18
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3217
  • Country: pt
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2089 on: September 30, 2021, 09:11:33 pm »
Hi!
I have the firmware 00.01.03.00.01 from 30.03.2020
can someone tell me where to download the firmware FW 01.03.00.01 build 2020-05-18

Nowhere. Up till now it's only flashed at factory.
 

Offline PabloSanchez

  • Newbie
  • Posts: 3
  • Country: ru
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2090 on: September 30, 2021, 09:24:30 pm »
And what versions do you recommend to do ?
 

Offline K9DTV

  • Contributor
  • Posts: 23
  • Country: us
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2091 on: September 30, 2021, 09:48:29 pm »
I applied the patch to unlock my scope and this unlocked everything.
However, I am unable to run selfcal, as it never starts.
Channel one goes rail to rail, so it will never start selfcal.

Scope channel is working fine otherwise.

Any ideas?

Mine just ran successfully (first one post-hack).

See attachment

1286395-0
 

Offline PabloSanchez

  • Newbie
  • Posts: 3
  • Country: ru
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2092 on: September 30, 2021, 10:48:41 pm »
I applied the patch to unlock my scope and this unlocked everything.
However, I am unable to run selfcal, as it never starts.
Channel one goes rail to rail, so it will never start selfcal.

Scope channel is working fine otherwise.

Any ideas?

Mine just ran successfully (first one post-hack).

See attachment

(Attachment Link)

what exactly did you use, I have the same firmware version and nothing works, please describe in more detail where to start and what files?
 

Offline K9DTV

  • Contributor
  • Posts: 23
  • Country: us
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2093 on: September 30, 2021, 11:55:46 pm »
what exactly did you use, I have the same firmware version and nothing works, please describe in more detail where to start and what files?

Download the attached files
01_03_00_01.bspatch.txt  rename to  01_03_00_01.bspatch
DS5000Update.GEL.txt      rename to  DS5000Update.GEL
patch.txt


Copy to root directory of usb flash drive
insert into front scope usb
run update



Now can some one help me with my problem?
« Last Edit: September 30, 2021, 11:58:12 pm by K9DTV »
 
The following users thanked this post: sem21, PabloSanchez

Offline Kean

  • Supporter
  • ****
  • Posts: 2088
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2094 on: October 01, 2021, 07:54:38 am »
I just noticed that while the free bundle is apparently still available for purchases until 31 March 2022, it is now only offfered for 4 channel models.
Not really a big deal for those wanting to hack their scope, unless you wanted those features to increase un-hacked resale value.

From: https://beyondmeasure.rigoltech.com/acton/form/1579/0065:d-0001/0/-/-/-/-/index.htm
Quote
Valid Models: MSO5074, MSO5104, MSO5204, MSO5354

note: Other models no longer qualify for the free bundle offer when purchased after 9/30/2021. For purchases of any UltraVision II Oscilloscope that occurred before 10/1/2021 please fill out the form below and your bundle will still be sent per the previous promotion.
 

Offline oliv3r

  • Frequent Contributor
  • **
  • Posts: 279
  • Country: nl
    • Rigol related stuff!
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2095 on: October 01, 2021, 02:35:10 pm »
Hi!
I have the firmware 00.01.03.00.01 from 30.03.2020
can someone tell me where to download the firmware FW 01.03.00.01 build 2020-05-18

Nowhere. Up till now it's only flashed at factory.
Do we have a nand-backup of someone with that firmware? we can generate it then if really needed.
Has anybody reached out to rigol to request the GEL file from them?

Offline kc55

  • Newbie
  • Posts: 2
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2096 on: October 02, 2021, 08:09:29 am »
I have same problem especially on channel 1 of my MSO5074. When I switch on only that channel the offset is smaller. around -70 mV. With at least one other analog channel also switched on, the offset becomes larger at around -160 mV at 1 V/div scale setting.
I ran self calibration a few times but it didn ‘t fix the offset.
Anyboby here have similar observation? Is the amount of offset to be expected?
« Last Edit: October 02, 2021, 08:16:33 am by kc55 »
 

Offline oelapaloma

  • Newbie
  • Posts: 9
  • Country: de
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2097 on: October 02, 2021, 08:16:10 pm »
I have created a Full NAND Backup and a Data FRAM Backup of the scope with 0A.01.03.00.01 firmware. Please PM on how to procede. I don't want to see my full dump on the Internet.
 

Offline d86d1864

  • Newbie
  • Posts: 6
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2098 on: October 03, 2021, 12:10:15 pm »
Find appEntry (22 MB) for a few days on http://37.120.179.6/appEntry-0A.01.03.00.01

Thank you for sharing the binary.

Curiosity got the better of me so I had a crack at porting the previous patches to the new binary (attached below).

It's a little harder to test when we don't have the firmware available, but I managed to get the binary running on 00.01.03.00.01 with a little fiddling, and it appears to work.
But as always, use at own risk and naturally only for educational purposes. :)
 

Offline flash2b

  • Regular Contributor
  • *
  • Posts: 113
  • Country: nl
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2099 on: October 05, 2021, 12:02:15 pm »
My scope came with this:



Is this hackable and what do I need to do?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf