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

gb and 8 Guests are viewing this topic.

Offline BH3XON

  • Contributor
  • Posts: 21
  • Country: cn
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2125 on: November 22, 2021, 03:22:27 am »
Turn on the device with the left hand, while pushing the single button with the right hand.
Keep pushing it, over and over and over don't stop pushing, don't wait between pushes.
It works, I don't know why you are having problems.

After many attempts, I think I know the problem,
time1: Press the power button, the keyboard light is on, and the screen is dark;
time2: The keyboard light is off and the screen remains dark;
time3: The screen displays RIGOL, and the startup progress...

Just press single at time2, and the mysterious menu will appear.
 
The following users thanked this post: fengwumu

Online flash2b

  • Regular Contributor
  • *
  • Posts: 113
  • Country: nl
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2126 on: November 22, 2021, 03:08:05 pm »
Does the hack stay after upgrading the firmware?
 

Offline ziDot

  • Newbie
  • Posts: 3
  • Country: ru
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2127 on: November 22, 2021, 05:37:22 pm »
Successful liberated brand new MSO5072. Without any recovery mode downgrades. With local upgrade only.
Firmware installed from store:
FW 0A.01.03.00.01
HW 01.01.000
Boot 2018.06.27
Build 2021-05-04 15:50:32

My actions step-by-step:
1. Download official FW v00.01.03.00.01. Found on Russian Rigol site (registration required):
https://ru.rigol.com/En/Index/listView/catid/28/tp/6/cat/7/xl/24
Google drive mirror:
https://drive.google.com/file/d/1wsz9O9EJmQxzGSD-pm-yF06vw2qoJkRa/view?usp=sharing
2. Prepare USB Disk. I have very old 2Gb flash. Formatted with MiniTool Partition Wizard as FAT32 Primary partition
3. Extract downloaded files to any folder on PC.
4. Copy DS5000Update.GEL file to fresh formatted USB Flash
5. Power on MSO and plug in flash drive.
6. Select local upgrade (press Utility->System->Help->Local upgrade). Confirm upgrade. (there were no errors or warnings about version mismatch)
After upgrade is complete reboot MSO. Now MSO have FW 00.01.03.00.01 and Build 2020-03-30 15:56:36

Then go to:
https://www.eevblog.com/forum/testgear/hacking-the-rigol-mso5000-series-oscilloscopes/msg3105598/#msg3105598
And follow instructions from STEP 2.

After all operations MSO must be recalibrated. Recalibrate instructions can be found in MSO5000 Upgrade Instructions file comes with downloaded firmware.

Note:
After patch I had black screen for 15-20 second (maybe little longer and I pressed Menu key few times in panic))). Just little patience an all will back to screen.
« Last Edit: November 22, 2021, 07:43:20 pm by ziDot »
 

Offline Matsh

  • Newbie
  • Posts: 6
  • Country: se
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2128 on: November 23, 2021, 10:48:01 am »
Does the hack need to be updated to work with firmware 00.01.03.00.03?
 

Offline normi

  • Regular Contributor
  • *
  • Posts: 78
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2129 on: November 23, 2021, 06:47:22 pm »
Does the hack need to be updated to work with firmware 00.01.03.00.03?

Yes a new file needs to be created for each new update, the hack is the same but it needs to be applied to new update.
 

Offline Matsh

  • Newbie
  • Posts: 6
  • Country: se
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2130 on: November 24, 2021, 06:35:50 pm »
I tried to checkout the whole thread how-to create the new file, is that information available here?
 

Offline normi

  • Regular Contributor
  • *
  • Posts: 78
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2131 on: November 25, 2021, 03:27:34 am »
Information is buried in thread. if a remember correctly; basically there is a file call appentry which is a binary file and you compare the hacked version of the file to the unhacked file and discover the changes. Locate those section of the code in the new firmware and change them to the same values as the hacked version, then copy new file to scope. That is an over simplified description, but I assume someone will build a new patch with the updated firmware and post it.
 

Offline bmx

  • Contributor
  • Posts: 30
  • Country: fr
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2132 on: November 25, 2021, 05:24:20 am »
while you're at it, reinstate sshd (or telnetd or whatever) in the main start script.
The pain point is to extract the package, somewhere with no CRLF/.Trashes involved, then do update what you want on the extracted fs, like if you were on the real scope, and finally, repack everything properly (that is the pain).

the gitlab repository (https://gitlab.com/riglol/rigolee.git) have some helpers to do that properly (in bin/).

hint: unix cmdline needed
 

Offline everest159

  • Newbie
  • Posts: 1
  • Country: se
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2133 on: November 27, 2021, 10:12:06 am »
For info

When formating the USB make sure it its FAT32 and Cluster size to 4096 bytes (some of my newer USB's has 8192 as default).

I updated to 01.03.00.03 and I can confirm the SSH GEL still worked (but I don't remember where I downloaded the .03 firmware, as I don't find it on Rigols hompeage anymore).

When trying to downgrade using the "secret" menu, pressing SINGLE button twice at boot, I got "Failed to upgrade! Check the upgrade file."
My solution was to use another USB, even tho I knew the first USB worked for upgrade, apparently it didn't work for downgrade.

Hope this helps someone!
 

Offline Matsh

  • Newbie
  • Posts: 6
  • Country: se
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2134 on: November 27, 2021, 11:21:07 pm »
Official FW v00.01.03.00.03 can be downloaded here https://www.rigolna.com/products/digital-oscilloscopes/MSO5000/
 

Offline keenox

  • Contributor
  • Posts: 34
  • Country: ro
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2135 on: November 29, 2021, 04:59:28 pm »
Hi guys,

I have version 00.01.03.00.01, but the bspatch doesn't seem to work. This got me reading more into this thread and used the gel file to enable SSH and do a dump.
Looking into the GEL files I saw that they contain binary shell files and was wondering what those files to.

1. Can someone explain how to encrypt and decrypt the binary shell files? Or at least tell me what's in them?
2. Regarding bspatch, can someone explain what it contains? I am interested in terms of assembly so I can adapt it to the firmware on my scope and maybe any future firmware.

It seems to me that the hacking methods here are pretty opaque and would like to learn more about how they work.
Is it because legal issues with Rigol? If that is the case, I would be very thankful if anyone could send me a PM.
Thanks!
 

Offline qali.pro

  • Contributor
  • Posts: 17
  • Country: qa
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2136 on: November 29, 2021, 06:17:15 pm »
Hi guys,

I have version 00.01.03.00.01, but the bspatch doesn't seem to work. This got me reading more into this thread and used the gel file to enable SSH and do a dump.
Looking into the GEL files I saw that they contain binary shell files and was wondering what those files to.

1. Can someone explain how to encrypt and decrypt the binary shell files? Or at least tell me what's in them?
2. Regarding bspatch, can someone explain what it contains? I am interested in terms of assembly so I can adapt it to the firmware on my scope and maybe any future firmware.

It seems to me that the hacking methods here are pretty opaque and would like to learn more about how they work.
Is it because legal issues with Rigol? If that is the case, I would be very thankful if anyone could send me a PM.
Thanks!

i think your F.W it's not Build 2020-03-30 15:56:36
to confirm that  press Utility->System->Help->About (see what build you have)
if not follow these steps
https://www.eevblog.com/forum/testgear/hacking-the-rigol-mso5000-series-oscilloscopes/msg3829616/#msg3829616


command :  openssl aes-128-cbc -in "./fw4linux.sh" -out "fw.sh" -d -K "BAD8CFFEBBAAB5C4C3D8D4BFCAFDBEDD" -iv "BAD8CFFEBBAAB5C4C3D8D4BFCAFDBEDD" -nopad

to unpack GEL file there is a script to do that gel_unpack.sh
https://gitlab.com/riglol/rigolee/firmware/-/tree/MSO5000/bin

if you get any error try to change -i flag
"dumpimage -T flat_dt -i "${GELDIR}/system.img" -p 0 "${OUTDIR}/zImage"" >> "dumpimage -T flat_dt  "${GELDIR}/system.img" -p 0  -o "${OUTDIR}/zImage""
« Last Edit: November 30, 2021, 01:12:03 pm by qali.pro »
 
The following users thanked this post: moore

Offline keenox

  • Contributor
  • Posts: 34
  • Country: ro
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2137 on: November 29, 2021, 08:04:27 pm »
@qali.pro Thanks for the info! I'll try it. I already managed to unzip the GEL files by using 7zip. That's how I found the encrypted shell files :)
My build is from 18.05, but I wanted to know better how the hack works and also maybe port it the 01.03.00.03
 

Offline qali.pro

  • Contributor
  • Posts: 17
  • Country: qa
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2138 on: December 01, 2021, 11:00:50 pm »
here is patch for F.W 01_03_00_03

have fun ;)

---------------------------
The patch file has been deleted for further testing and should be release soon  :palm:
« Last Edit: December 11, 2021, 06:24:27 pm by qali.pro »
 

Offline Matsh

  • Newbie
  • Posts: 6
  • Country: se
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2139 on: December 02, 2021, 01:39:06 pm »
First I updated to FW v00.01.03.00.03. Then used the patch above to activate all options.

Thank you for the work done on the patch!
 
The following users thanked this post: tutecnicocarlos

Offline qali.pro

  • Contributor
  • Posts: 17
  • Country: qa
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2140 on: December 02, 2021, 04:43:38 pm »
First I updated to FW v00.01.03.00.03. Then used the patch above to activate all options.

Thank you for the work done on the patch!

Glad it works for you.
Your are welcome, i'm here to help.
 
The following users thanked this post: Mick B

Offline BM61

  • Newbie
  • Posts: 3
  • Country: it
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2141 on: December 02, 2021, 08:36:35 pm »
Hi friends, I’m new here  :)

I’ve updated my MSO5000 with FW v00.01.03.00.03 and patched it with the patch from qali.pro (Thank you!!), but now I experience a problem using the 20MHz BW limit on the inputs: the trace disappear!  :o

Have you the same issue?

Trying better, using using the 20M BW Limit (but not the 100 or 200M) a “negative bias” of approximatly 300mV it’s added to the trace.
So with 10mV or less sensitivity the trace “disappear”
« Last Edit: December 02, 2021, 08:51:31 pm by BM61 »
 

Offline BM61

  • Newbie
  • Posts: 3
  • Country: it
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2142 on: December 02, 2021, 09:48:27 pm »
Dear friends, I’ve performed another one Self Calibration and the 20M BW problem it’s gone..
Now using the BW Limit I have no signal trace shifting like before.

Excuse me for the “fake alarm”, sorry.

  :)
 
The following users thanked this post: serg_77, tutecnicocarlos

Offline serg_77

  • Newbie
  • Posts: 5
  • Country: ru
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2143 on: December 03, 2021, 10:51:45 am »
Updated, patched, self-calibrated twice - everything is normal.
Thank you qali.pro for the work done on the patch!
 

Offline Wintel

  • Regular Contributor
  • *
  • Posts: 52
  • Country: us
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2144 on: December 03, 2021, 11:44:43 am »
here is patch for F.W 01_03_00_03

have fun ;)
Thanks!

Have you tried to upgrade the MSO5072 to MSO5504 (BW:500MHz) with firmware 01_03_00_03?

 

Offline RobbiTobi

  • Contributor
  • Posts: 24
  • Country: de
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2145 on: December 03, 2021, 12:31:20 pm »
Hi friends, I’m new here  :)

I’ve updated my MSO5000 with FW v00.01.03.00.03 and patched it with the patch from qali.pro (Thank you!!), but now I experience a problem using the 20MHz BW limit on the inputs: the trace disappear!  :o

Have you the same issue?

Trying better, using using the 20M BW Limit (but not the 100 or 200M) a “negative bias” of approximatly 300mV it’s added to the trace.
So with 10mV or less sensitivity the trace “disappear”

I have found same problem! But no success after 2 times self-calibration ...  |O
Below 2mV/div has become useless ... even averaging
In addition BW-20MHz gives offset problems up to 1V/div ...  :--

Suggestions? Roll-back?
 

Offline serg_77

  • Newbie
  • Posts: 5
  • Country: ru
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2146 on: December 03, 2021, 12:32:26 pm »
The patch works. Everything is fine.
 

Offline serg_77

  • Newbie
  • Posts: 5
  • Country: ru
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2147 on: December 03, 2021, 12:34:31 pm »
After two self-calibrations, restart the device and that's it.
 
The following users thanked this post: MegaVolt

Offline RobbiTobi

  • Contributor
  • Posts: 24
  • Country: de
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2148 on: December 03, 2021, 01:12:07 pm »
You are perfectly right!  :-+

Did not restart the system!  :palm:

Many thanks!


P.S.: should perform an auto-boot after self-calib  >:D
« Last Edit: December 03, 2021, 01:13:45 pm by RobbiTobi »
 

Offline qali.pro

  • Contributor
  • Posts: 17
  • Country: qa
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2149 on: December 03, 2021, 05:05:40 pm »
Hi friends, I’m new here  :)

I’ve updated my MSO5000 with FW v00.01.03.00.03 and patched it with the patch from qali.pro (Thank you!!), but now I experience a problem using the 20MHz BW limit on the inputs: the trace disappear!  :o

Have you the same issue?

Trying better, using using the 20M BW Limit (but not the 100 or 200M) a “negative bias” of approximatly 300mV it’s added to the trace.
So with 10mV or less sensitivity the trace “disappear”

I have found same problem! But no success after 2 times self-calibration ...  |O
Below 2mV/div has become useless ... even averaging
In addition BW-20MHz gives offset problems up to 1V/div ...  :--

Suggestions? Roll-back?

Can you post a screenshot to replicate same error in my device ?

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf