Author Topic: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method  (Read 7548 times)

apulanta and 1 Guest are viewing this topic.

Offline BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #75 on: May 23, 2024, 04:47:19 pm »
Did the post stuff as part of the process so I basically went from page 1 to the end and did it all.  :-+

I'm fairly familiar with using an oscilloscope since I worked in electrical engineering but I'm not all that familiar with the capabilities of the MSO5000 so I'll be going to the thread you linked to and taking a look.

Quote
Did the post stuff as part of the process so I basically went from page 1 to the end and did it all.  :-+
That's great, I always make a habit of reminding everyone because the checks, cal and backup are very important.
and peopole generally get caught up in the excitement of finally get all the options that they forget to backup

As for the rest, if you're familiar with scopes and you're an engineer, then you're probably ok.
I just did those videos mainly for the beginners and intermediate who want to understand their scopes and to help them
to understand how to test things properly with the scope

it has things like (if i remember)....    Calculating inductance with a scope by building a simple Tank Circuit , and explaining
how a square wave with a given duty cycle can be used on certain inductors to derive it's value
i think there's some transistor stuff in there . as well as some PWM stuff
there there's a tutorial on cursors',  Pass Fail mask , Etc etc
there's a lot there, chances are you'll find something interesting

Have fun with it
QUESTION EVERYTHING!!!
 
The following users thanked this post: electricMN

Offline Dorian_Kaf

  • Newbie
  • Posts: 1
  • Country: at
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #76 on: May 24, 2024, 08:45:26 pm »
Good evening BTO,

first of all, amazing work you are doing! I have an MSO5104 with all the options activated apart from the Memory and Bandwidth upgrade. Is this constellation possible?

Best regards!
 

Offline BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #77 on: May 26, 2024, 05:27:28 am »
Good evening BTO,

first of all, amazing work you are doing! I have an MSO5104 with all the options activated apart from the Memory and Bandwidth upgrade. Is this constellation possible?

Best regards!

Quote
first of all, amazing work you are doing!
Thank you , i appreciate it,  Although i'm not the only one doing the work,  But , thank you in any case.

Quote
I have an MSO5104 with all the options activated apart from the Memory and Bandwidth upgrade.
OK, That's not a problem.

Quote
Is this constellation possible?
CONSTELLATION ?????,  Not sure what you mean .

However if you're asking
"Martin, i have a MSO5104 With all options licensed EXCEPT Sampling Memory and Bandwidth to 350MHz,  is it possible to upgrade
the features that i don't have to licenced status ?"
YES IT IS

Go to Post #1
https://www.eevblog.com/forum/testgear/hacking-the-rigol-mso5000-dr-mefisto-licensing-method/

USE THIS LINK to get to the cloud
https://mega.nz/folder/A8cEgQRI#5FSoMrCurJi71T7VkRPgYQ

When you are there  YOU WANT TO DOWNLOAD THE FOLLOWING

- Downgrading to 1.3.2.2   Video  to show you how to get into the Pre Boot menu
- MSO5000 DrMefisto Licencing Method   PDF WITH DETAILED INSTRUCTIONS (Follow this step by step)
- rigol_kg2_3_000.py   This is the script you will use for MSO5100 SERIES
- Upgrading to 350MHz (1.3.2.2)  You will use this zip file for the 1.3.2.2  GEL FILE to downgrade to 1.3.2.2
- Upgrading to 350MHz (1.3.3.0)  You will use this zip file for the 1.3.3.0  GEL FILE and the backup files

download all that
1. Follow the PDF
2. Use the Script stated above for your particular scope
3. After you do all that, don't forget to backup the scope BEFORE and AFTER (this is all in the PDF)

and then you'll be fine

let me know if you have any issues.
Most people have said it's pretty easy to follow along






QUESTION EVERYTHING!!!
 

Offline BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #78 on: May 27, 2024, 12:46:15 pm »
Good evening BTO,

first of all, amazing work you are doing! I have an MSO5104 with all the options activated apart from the Memory and Bandwidth upgrade. Is this constellation possible?

Best regards!

So.. How are you mate
How did you go with the licensing of your scope,   Any Drama's ?
QUESTION EVERYTHING!!!
 

Offline BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #79 on: May 30, 2024, 02:05:39 am »
And i already tried to hardcode the serial number and Model number in the code to get it to run.... It runs trough completely but no matter what i do, the outcome is never ... activated but either unavailable or not activated...

I would be so happy if you could help to get it to work...
Mate, it sounds like you're not doing something correctly Because...

LET'S GO THROUGH YOUR COMMENT STEP BY STEP

Quote
today i got my 5072 and right away i tried to upgrade it
OK with 5072 it's likely you'll need to use the script 
Code: [Select]
rigol_kg2.py
Quote
All the USB - Scripts ran fine and then i started with the Python script
ALL THE SCRIPTS ????  What do you mean "ALL" , There is only 1 script.

DID YOU FOLLOW THE INSTRUCTIONS IN THE PDF THAT I SUPPLIED AND DID YOU DOWNLOAD THE FILES FROM THE LINK THAT I SUPPLIED IN COMMNET 1 OF THIS THREAD ?


Quote
I installed all the modules ran the script with -i and then: (see picture).
the -i Switch DOES NOT INSTALL ANYTHING, the -i Switch just brings up the INFORMATION of the scope

Quote
And i already tried to hardcode the serial number and Model number in the code to get it to run
You did What ???  WHY ?   What exactly did you do ?


before you do this though , because i don't know what you've done, but it sounds really wrong.
I would DEFAULT THE SCOPE TO FACTORY SETTINGS

then..
Roughly stated the process is as follows
(You should really read the PDF as it is details everything)

- You connect your scope to power and network
- You install Python on your computer
- You download the content that you need from the link in Post 1
- You do your backups

- You get yourself on version 1.3.2.2

you run the INFORMATION script

You run the REGEN Script

You then run the script on it's own WITHOUT ANY SWITCH

then, You'll need to  run 1.3.2.2   again

You then run the INFORMATION SCRIPT AGAIN

This time NO NEED to run regen

You just then run the normal script again without the switch
and then it works


There's no need to hardcode or change anything


so..
HAVE YOU DOWNLOADED THE CONTENT FROM THE URL IN POST 1

HAVE YOU FOLLOWED THE INSTRUCTIONS IN THE PDF
QUESTION EVERYTHING!!!
 

Offline BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #80 on: May 30, 2024, 02:08:00 am »
And i already tried to hardcode the serial number and Model number in the code to get it to run.... It runs trough completely but no matter what i do, the outcome is never ... activated but either unavailable or not activated...

I would be so happy if you could help to get it to work...
I wouldn't worry too much, at this point it has worked for many people that there isn't much risk.

you should just need to follow the instructions in the pdf

if you can't get it, i'm happy to jump on a zoom with you or something and help you out. but .... it cirrently seems like you are doing some weird and incorrect stuff.
let me know how it goes
QUESTION EVERYTHING!!!
 

Offline BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #81 on: May 30, 2024, 02:18:54 am »
Hi BTO,
today i got my 5072 and right away i tried to upgrade it. All the USB - Scripts ran fine and then i started with the Python script. I installed all the modules ran the script with -i and then: (see picture).

It throws an error and terminates the script. Has it something to do with that the LA modules are limited time activated? I tried deactivating them with the script but it shows the same screen and terminates with same error and at the same point.

I really hope that you or somebody else can help me.

Thanks a lot already.

Best regards!
Sorry i had to run out there for a second.
I was going to say 
RE :
TYPE ERROR : CANNOT UNPLACK NON ITERABLE NON TYPE OBJECT

Basically the script was not able to unpack an object because it encountered incorrect values

CHECK THE FOLLOWING
- Download and read the PDF
- Ensure you have installed ALL THE MODULES
- Use your backup that you created (Please tell me you created a backup before you did this................right ???)  to restore the scope it's original settings

- See.. when you mentioned you hardcoded the serial and the model number,   this error may be happening because you did that .

we need to start your scope from a factory state
all those scripts you say you ran, whatever you did, you need to bring it back to factory again

then download the PDF and just follow it , No need to do anything fancy here, Just follow the PDF
QUESTION EVERYTHING!!!
 

Offline BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #82 on: May 30, 2024, 04:09:15 pm »
Good evening BTO,

first of all, amazing work you are doing! I have an MSO5104 with all the options activated apart from the Memory and Bandwidth upgrade. Is this constellation possible?

Best regards!
Hi mate, what happened to your comments ? They disappeared, this you delete them ?

Look
WHAT OPERATING SYSTEM ARE YOU USING ?

so based on the message i got on my phone (that is no longer here on the forum)

- You're on 1.3.2.2 now    GOOD
- You've factory reset it    GOOD


- You said
Quote
I then tried the connection to the scope via pinging it
THEN.... NOTHING ?
so... What happened, When you send the ICMP Request (Communication Test) to the scope, What happened ?
Did the Scope ACK (Acknowledge) the request for more than 4 cycles or did it not ACK ?

then you said
Quote
Then i ran the script (rigol_kg2.py.) with -i
THAT'S INCORRECT !!

it's not
Code: [Select]
rigol_kg2.py.it's
Code: [Select]
rigol_kg2.py

it's very important that you followed PAGES 12 and 13 of the PDF and selected all those stated options during installation

also how are you running python ?
is it from Powershell
Windows Command Prompt
or
Python CLI

Now you're supposed to be doing this....

STEP 1.  (Assuming scope IP is 10.1.1.666)
Bring up INFORMATION
Code: [Select]
python rigol_kg2.py –i 10.1.1.666PRESS ENTER

STEP 2. REGENERATE THE PRIVATE KEY
Code: [Select]
python rigol_kg2.py –r 10.1.1.666PRESS ENTER

STEP 3. RUN THE SCRIPT
Code: [Select]
python rigol_kg2.py 10.1.1.666PRESS ENTER

now, Restart your scope
Reload 1.3.2.2 again via pre boot menu
Startup your scope

STEP 4.  (Assuming scope IP is 10.1.1.666)
Bring up INFORMATION
Code: [Select]
python rigol_kg2.py –i 10.1.1.666PRESS ENTER

STEP 5. RUN THE SCRIPT
Code: [Select]
python rigol_kg2.py 10.1.1.666PRESS ENTER

follow those steps and copy and paste my code in and see what happens
« Last Edit: May 30, 2024, 04:11:03 pm by BTO »
QUESTION EVERYTHING!!!
 

Offline Slats

  • Newbie
  • Posts: 5
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #83 on: May 31, 2024, 12:24:17 pm »
Please help.

I have Rigol MSO5074. I have followed the instructions exactly, but get an "AssertionError" when I do the -r step.
 

Offline BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #84 on: May 31, 2024, 12:32:05 pm »
Please help.

I have Rigol MSO5074. I have followed the instructions exactly, but get an "AssertionError" when I do the -r step.
Sure no problem, it's not the first time it's happened. Usually it happens when it's an MSO5000 with BND Options.
or when it's MSO5100 series.
In any case, instead of using the following script
Code: [Select]
rigol_kg2.pydownload and use this one...

Code: [Select]
rigo_kg2_3_000.pyRun it again, As per the response in my previous comment to Dorian_kaf

Try it again and let me know if it works.
QUESTION EVERYTHING!!!
 

Offline Slats

  • Newbie
  • Posts: 5
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #85 on: May 31, 2024, 12:58:29 pm »
Hey BTO, thanks for the quick responce. No luck, still didn't work. |O

Hardware version: 1.01.000. If that is of any use.

 

Offline BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #86 on: May 31, 2024, 01:12:02 pm »
Hey BTO, thanks for the quick responce. No luck, still didn't work. |O

Hardware version: 1.01.000. If that is of any use.

Quote
thanks for the quick responce.
No problem

HERE ARE MY THOUGHTS...
1. No, the hardware version isn't relevant,   You're on Version 1.3.2.2 According to the INFORMATION script.

2. Something fundamental isn't correct, Either
 - you got the wrong I.P. address for the scope
 - The Data stream is disconnecting
 - I doubt it's a python based issue
 - could be that there is an issue with your regen file

3. If you like and have some time we can jump on zoom now and sort this out a lot quicker than what it would be to go and forth with typing.
Would you like to do that ?

I feel, Just a few things need to be checked and i'm confident i'll find the issue and we'll have the scope licenced pretty quickly.

What are your thoughts ?

Also, Are you actually following the PDF or just the quick notes in the forum ?
QUESTION EVERYTHING!!!
 

Offline BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #87 on: May 31, 2024, 03:48:53 pm »
Hey BTO, thanks for the quick responce. No luck, still didn't work. |O

Hardware version: 1.01.000. If that is of any use.

Here is a bit of a checklist

don't just skip through this and say   yeah yeah... Actually confirm each step, ok

- When you installed Python did you  do a CUSTOM INSTALLATION ?
- Did you also check the box that says  PATH ?
- then after installing python, did you open cmd.exe or  powershell and typed in
Code: [Select]
python
then press ENTER  to get the compiler screen,
Did you successfully get the screen ?
You can then type
Code: [Select]
exit()  and ENTER   to get out of it

- did you connect your scope to your PC Correctly and with Non Faulty Cables ?
- did you go into the scopes LAN settings and confirm DHCP is on and that the I.P. Address range, Matches the I.P. Address range in your router
when you open cmd.exe and type in
Code: [Select]
ipconfig  then ENTER

- then...   Open cmd.exe   or Powershell, (whichever you like)  DID YOU NOTE THE WORKING DIRECTORY ?
Meaning  if you open it and the path is
Code: [Select]
C:\Users\UserDid you place the script in that location ?   IF NOT.......... DO THAT !

- then when you created the regen file
-- was there another regen file or script in that location ?   if there was.. DELETE IT !

both the script and the regen file need to be in the same location as the working directory path that shows up in Python.
You must also use ONLY
cmd.exe    OR
Powershell

Do not use the Python CLI that comes with the installation.

- After that , You are supposed to ensure that you remove the patch method,  this is done by dropping from version 1.3.3.0  to 1.3.2.2 (you've done this)

- it's then just a question of

Load the -i command
Load the -r command
Load the script without any switch
then shutdown and reinstall 1.3.2.2
then restart and again
Load the -i command
DO NOT DO THE -r again
then load the script without any switch again

At this point it will activate

You seem to be falling over at the regen priv.pem stage
Check the folder locations
and also when redoing all this,  i would use the first script again  not the _3_000.py  one

Let me know if you want to jump on zoom
I'm off to bed now
QUESTION EVERYTHING!!!
 

Offline Slats

  • Newbie
  • Posts: 5
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #88 on: May 31, 2024, 11:59:06 pm »
Hey BTO, thank you for trying. However, I have given up and just used the patch method, which worked perfectly.

I went through your checklist again on my and my wifes computers.

Quote
- When you installed Python did you  do a CUSTOM INSTALLATION ?
- Did you also check the box that says  PATH ?
Yes, uninstalled and reinstalled Python.

Quote
- then after installing python, did you open cmd.exe or  powershell and typed in "python"
then press ENTER  to get the compiler screen,
Did you successfully get the screen ?
Yes, the Python interpretor loaded.

Quote
You can then type "Exit()"   and ENTER   to get out of it
Yes.

Quote
- did you connect your scope to your PC Correctly and with Non Faulty Cables ?
Yes. Validated cable was good by coping large files between devices.

Quote
- did you go into the scopes LAN settings and confirm DHCP is on and that the I.P. Address range, Matches the I.P. Address range in your router
when you open cmd.exe and type in "ipconfig" then ENTER
Yes, checked the IP and pinged successfully.

Quote
- then...   Open cmd.exe   or Powershell, (whichever you like)  DID YOU NOTE THE WORKING DIRECTORY ?
Meaning  if you open it and the path is "C:\Users\User"
Did you place the script in that location ?   IF NOT.......... DO THAT !
Yes.

Quote
- then when you created the regen file
-- was there another regen file or script in that location ?   if there was.. DELETE IT !

both the script and the regen file need to be in the same location as the working directory path that shows up in Python.
Yes. Location is corect, with script file in that location. Tried with and without deleting the regen file. Made no difference.

Quote
You must also use ONLY
cmd.exe    OR
Powershell

Do not use the Python CLI that comes with the installation.
Used both CMD and PowerShell. Made no difference.

Quote
- After that , You are supposed to ensure that you remove the patch method,  this is done by dropping from version 1.3.3.0  to 1.3.2.2 (you've done this)
Yes, did that.

Quote
Load the -i command
Load the -r command
Load the script without any switch
then shutdown and reinstall 1.3.2.2
then restart and again
Load the -i command
DO NOT DO THE -r again
then load the script without any switch again

At this point it will activate
Same "AssertionError". Nothing activated.

Thanks for trying, appreciate the effort.

 

Offline BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #89 on: June 01, 2024, 04:17:03 am »
Hey BTO, thank you for trying. However, I have given up and just used the patch method, which worked perfectly.
Sure no problem, i mean , i'm happy to jump on zoom but if you don't want to , then,  ok
as for the patch method,   Yes it does work, the only thing is you'll have to upgrade and repatch manually when the time comes.

in saying that,  I have a DS2000A that when i bought it was on version 1.1.0.0  or something like that
and i literally didn't upgrade for 11 Firmware versions and EVERYTHING WAS FINE

so i reckon you'll be ok with the patch.
so.. You're Welcome for the effort.
QUESTION EVERYTHING!!!
 

Offline BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #90 on: June 22, 2024, 01:48:22 am »
UPDATE
ASSERTION ERROR SOLVED

The first thing i want to say here is this....
If you got this error while activating
- You're probably scared
- You're probably discouraged
- You probably don't want to risk bricking your scope
- You're probably saying "You know... JUST IN CASE"

DO ME A FAVOUR.........FORGET ALL THAT OK
Because it's not relevant

Now that being said
I've created another script , it's at the same location.

https://mega.nz/folder/A8cEgQRI#5FSoMrCurJi71T7VkRPgYQ

The script you need is named :   rigol_kg2_KEY2.py
The PDF File has been updated to include new information relating to the Assertion Error.

Follow the same process as you did before
and you should then find that you get 2 progress bars and no assertion error
and then the scope will be activated with all the options

WE HAVE PROVEN THIS WORKS

Also let me know which scope you have, as this worked on a MSO5072 with no bundles installed.
if you have a MS5100 i do still have another modification i can use on the script, but for now lets' try this one, i reckon it'll work.

NOW ....WHAT IS DIFFERENT IN THIS SCRIPT

An Assertion Error occurs
- When an Assertion is made
- And the Assertion returns FALSE
- Then an ASSERTION ERROR gets put up
- And the entire program HALTS

The reason it returns false is due to a "len" Statement.  which means... The program tested the LENGTH of the HEX Key
in your scope and compared it to the HEX key it was using.
Since the one the script is using is going to replace the one in your scope they need to be the same length.
In your case they were not and as such you get the error

The new script called  KEY2 (as the name suggests) Uses a different key or a different length
and when the challenge assertion is issued it returns  TRUE

SO.. GOOD NEWS GUYS,   WE HAVE A SOLUTION FOR YOU

Do let me know how it goes ok
« Last Edit: June 22, 2024, 05:15:15 pm by BTO »
QUESTION EVERYTHING!!!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf