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

0 Members and 1 Guest are viewing this topic.

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #25 on: May 01, 2024, 01:04:10 pm »
What Model do you have anyway ?
MSO5074
Oh well then.. it's 100% compatible with your scope as i also have a MSO5074.

Mate, my gut is saying things like....

something blocking the script from reading the Priv.pem file

This could include things like this

- Folder Permissions
THIS TOOL CAN HELP YOU
https://www.majorgeeks.com/mg/getmirror/take_full_ownership_of_files_folders_registry_hack,1.html
After you extract the file you'll have 2 registry files. click on the one that says
"Add Take Ownership to Context menu" and run it, Accept both options

then go over to the folder that the script is in and right click ON THE FOLDER and select TAKE OWNERSHIP.
You'll see a command shell open and do some stuff, don't worry about it, it's just setting permissions globally so you own the folder.

- You're not using an account that is Admin
(i imagine you likely are Admin but it's good to check)

- Your PC MIGHT be having a problem
this can be weeded out by opening cmd.exe and running
Code: [Select]
sfc/scannowThis takes a while

- Perhaps Python is having trouble with the folder or you selected INSTALL when you installed it instead of CUSTOMIZE INSTALLATION.

- it's unlikely the folder itself is having issues as the script was able to write to the folder and that same folder has both the script
and Priv.pem, the problem is about or has something to do with python reading the Priv.pem file

this isn't a scope issue, this is a computer software issue, permissions or firewall related

Run the Takeownership registry patch on the file and try it again.




QUESTION EVERYTHING!!!
 
The following users thanked this post: RemB

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #26 on: May 01, 2024, 01:11:39 pm »
Directions and script worked perfectly on my MSO5074.  Thanks.

It might be useful to add a reminder to use a USB stick at least 2GB in size when doing the backups.  I have a little old 64MB stick I use for updates, and that was not big enough.

1 GREAT TO HEAR - I'm curious  which directions did you use
- The one's in this topic
- The PDF
???

2. Now.. A quick check
YOU LICENCED SUCCESSFULLY -  CHECK

Did you
- Upgrade after the licensing to 1.3.3.0   (you can do this from the operating system or from PRE BOOT menu)

- DO YOUR BACKUPS (by going into STEP 1. of the 1.3.3.0 file that i attached)     Do not forget to do your backups.
  in all the excitement of activation you can be forgiven for forgetting.. but don't !

- DO SELF CHECK - 3 Tests

- DO SELF CAL

Lastly Re the USB STICK.... Interesting.
I was telling people not to exceed 16GB as it's what i used and it is a reasonable size to use.  But You reckon 2GB min huh,  OK
I'll add that step.

WELL DONE CONGRATULATIONS
« Last Edit: May 01, 2024, 01:24:12 pm by BTO »
QUESTION EVERYTHING!!!
 

Offline Sergey_21

  • Contributor
  • Posts: 12
  • Country: tr
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #27 on: May 01, 2024, 01:50:01 pm »
I think firewall, access, etc. things have nothing to do with it. The script reads the contents of memory and tries to change it. But the script cannot do this, since it does not receive what it expects.
I have unlocked some debugging information, but it may only be useful to the developer of this script.
That is, the stage of transferring the changed information (key) to the oscilloscope does not occur, since a new key has not been created, access is not needed here.
« Last Edit: May 01, 2024, 01:55:05 pm by Sergey_21 »
 

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #28 on: May 01, 2024, 02:11:14 pm »
I think firewall, access, etc. things have nothing to do with it. The script reads the contents of memory and tries to change it. But the script cannot do this, since it does not receive what it expects.
I have unlocked some debugging information, but it may only be useful to the developer of this script.
That is, the stage of transferring the changed information (key) to the oscilloscope does not occur, since a new key has not been created, access is not needed here.

HOLD ON.. !!
1. So are you still getting the Assertion Error ?

2. Why are you using the regenerate command , My understanding is, you already generated the key
Now, you need to run the sript at
Code: [Select]
python rigo_kg2.py [Your I.P. Address here]there is no switch here.

if you keep running the script as
Code: [Select]
python rigo_kg2.py -r [Your I.P. Address here]it's never going to activate, You need to delete the -r

so what's the last thing that you tried , Did you try the Take Ownership thing that i suggested ?

Also, do you want me to jump on zoom with you or something, i feel we are really close to getting it.
QUESTION EVERYTHING!!!
 

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #29 on: May 01, 2024, 02:16:52 pm »
I think firewall, access, etc. things have nothing to do with it. The script reads the contents of memory and tries to change it. But the script cannot do this, since it does not receive what it expects.
I have unlocked some debugging information, but it may only be useful to the developer of this script.
That is, the stage of transferring the changed information (key) to the oscilloscope does not occur, since a new key has not been created, access is not needed here.

Quote
I think firewall, access, etc. things have nothing to do with it.
But.. Given the situation you are in, WE NEED TO TEST IT AND PROVE IT
Something is stopping it from reading the Priv.pem file,   Now if you were running the command each time with the -r in there.
THAT WOULD BE THE CAUSE.

Quote
The script reads the contents of memory and tries to change it. But the script cannot do this, since it does not receive what it expects.
Correct , it does read the FRAM and it does then write to it,  but re "it doesn't receive what it expects" , The script asks the scope to provide
it the information, Now there are commands like "len" for example where the Hex key needs to be the exact length that is expected (this is true)
but.. THAT WOULD MEAN THAT YOUR SCOPE IS DIFFERENT TO ALL OF OUR SCOPES in some foundational way,  I can't see that happening
if you have an MSO5074

Quote
That is, the stage of transferring the changed information (key) to the oscilloscope does not occur, since a new key has not been created,
but... By running the regenerate command, You did create it .

and after that, You run the script (without switches)

DO THIS...
RUN THE SCRIPT without switches, and shoot me a screenshot if you could
or........ZOOM
QUESTION EVERYTHING!!!
 

Offline RemB

  • Newbie
  • Posts: 1
  • Country: ru
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #30 on: May 01, 2024, 03:14:06 pm »
Hi! I have an MSO5074 and had installed options (MSO5000-BND). I did everything according to the instructions and now I have all installed licenses. The method is working. I suggest adding a description of installing modules for python. Thanks!
« Last Edit: May 01, 2024, 03:23:28 pm by RemB »
 
The following users thanked this post: BTO

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #31 on: May 01, 2024, 03:47:36 pm »
Hi! I have an MSO5074 and had installed options (MSO5000-BND). I did everything according to the instructions and now I have all installed licenses. The method is working. I suggest adding a description of installing modules for python. Thanks!

THAT'S AWESOME.. GOOD WORK

Now,
1. Don't forget to upgrade to 1.3.3.0

2. DON'T FORGET TO DO YOUR BACKUPS (By going to STEP1 ) of the 1.3.3.0 download and running the 2 backups

3. Then Do your SELF TEST

4. Then do your SELF CAL

then you're good to go.


RE THE MODULES....
Ahhh Yes, You are correct, i meant to do that, My wife interrupted me to give me dinner and when i returned it slipped my mind.
it is in the video that i have not finished editing, but i will edit the PDF
QUESTION EVERYTHING!!!
 

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #32 on: May 01, 2024, 03:57:36 pm »
ModuleNotFoundError

Hi Guys, a bit of an oversight on my part but keep this in mind

1. After you install Python

2. The first thing you want to do is INSTALL THE REQUIRED MODULES, if you don't have them you will get an error like   
Code: [Select]
ModuleNotFoundErrorand it will have something on the end... Like this
Code: [Select]
ModuleNotFoundError: No Module named 'requests'This means that you do not have the "REQUESTS" Module installed,   to install the module you do this...

Quote
pip intstall requests
Press ENTER
I personally had to install the following modules but if you get any others , just go ahead and install them, Just alter the name between the parenthesis.

Quote
pip intstall tqdm

Quote
pip intstall tabulate

Quote
pip intstall xxtea

Quote
pip intstall ecdsa

When you have all options installed and you run
Quote
python rigol_kg2.py -i 00.00.00.00
[/color]
where 00.00.00.00  is your I.P. Address, You will a table of installed options
« Last Edit: May 01, 2024, 04:59:21 pm by BTO »
QUESTION EVERYTHING!!!
 
The following users thanked this post: RemB

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #33 on: May 01, 2024, 04:04:20 pm »
I think firewall, access, etc. things have nothing to do with it. The script reads the contents of memory and tries to change it. But the script cannot do this, since it does not receive what it expects.
I have unlocked some debugging information, but it may only be useful to the developer of this script.
That is, the stage of transferring the changed information (key) to the oscilloscope does not occur, since a new key has not been created, access is not needed here.

Hey Sergey, Read my recent post on MODULE ERRORS, Perhaps this is as simple as you didn't install all the modules.

The entire list of modules is

Code: [Select]
pip intstall argparse
Code: [Select]
pip intstall base64
Code: [Select]
pip intstall binascii
Code: [Select]
pip intstall os.path
Code: [Select]
pip intstall re
Code: [Select]
pip intstall socket
Code: [Select]
pip intstall struct
Code: [Select]
pip intstall time
Code: [Select]
pip intstall zlib
Code: [Select]
pip intstall requests
Code: [Select]
pip intstall tqdm
Code: [Select]
pip intstall hashlib
Code: [Select]
pip intstall tabulate
Code: [Select]
pip intstall xxtea
Code: [Select]
pip intstall struct import pack
Code: [Select]
pip intstall ecdsa
YOU CAN RUN THIS COMMAND TO SEE THE INSTALLED MODULES

Code: [Select]
pip list
« Last Edit: May 01, 2024, 04:18:51 pm by BTO »
QUESTION EVERYTHING!!!
 

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #34 on: May 01, 2024, 04:42:05 pm »
Hi! I have an MSO5074 and had installed options (MSO5000-BND). I did everything according to the instructions and now I have all installed licenses. The method is working. I suggest adding a description of installing modules for python. Thanks!

PDF has been updated, thanks for letting me know that,  That was KINDA An important step huh ?  :P
QUESTION EVERYTHING!!!
 
The following users thanked this post: RemB

Offline Michal Mytnik

  • Newbie
  • Posts: 8
  • Country: pl
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #35 on: May 01, 2024, 09:30:31 pm »
Hi,

for me all have worked very well. Job well done with PDF @BTO :-+
The only small misalignment I have had was at point 16, where it says that script without parameters will run same way, meaning two progress bar should appear. In my case I have just got info that CFRAM is OK and then got the activation list screen, no progress bars. I have just went down the PDF file and at the end all worked super good.

But it's true that I have had to import some libraries via pip

All in all it works, and excelent work with providing all the details @BTO
 
The following users thanked this post: BTO

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #36 on: May 02, 2024, 04:00:12 am »
Hi,

for me all have worked very well. Job well done with PDF @BTO :-+
The only small misalignment I have had was at point 16, where it says that script without parameters will run same way, meaning two progress bar should appear. In my case I have just got info that CFRAM is OK and then got the activation list screen, no progress bars. I have just went down the PDF file and at the end all worked super good.

But it's true that I have had to import some libraries via pip

All in all it works, and excelent work with providing all the details @BTO

Quote
for me all have worked very well. Job well done with PDF @BTO :-+
Thankyou and Excellent work WELL DONE

Quote
The only small misalignment I have had was at point 16, where it says that script without parameters will run same way, meaning two progress bar should appear. In my case I have just got info that CFRAM is OK and then got the activation list screen, no progress bars. I have just went down the PDF file and at the end all worked super good.

Hmmm???  well what i would say to that is...
1. At step 16 THERE ARE PARAMETERS, Step 16 is where you REGENERATE THE PRIVATE KEY and use the -r switch .
This is where the progress bars should happen

2. STEP 17 is where you take away the switch (aka Parameters) and you run the script

3. I would say .. if you were at Step 16 and the progress bars didn't start,  it means you already had the Priv.pem file generated
and as such it didn't generate it anymore.
then when you got to Step 17, without the switch, it just worked.
Well , it wouldn't have worked if you didn't have the priv.pem file in place so you must have had it there and attempted to regenerated again.

but all in all Good work.

Now.. .GO AND READ POST #31  (So i don't have to keep retyping it) :P
and follow those steps and then you're all good
QUESTION EVERYTHING!!!
 

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #37 on: May 02, 2024, 04:10:32 am »
I think firewall, access, etc. things have nothing to do with it. The script reads the contents of memory and tries to change it. But the script cannot do this, since it does not receive what it expects.
I have unlocked some debugging information, but it may only be useful to the developer of this script.
That is, the stage of transferring the changed information (key) to the oscilloscope does not occur, since a new key has not been created, access is not needed here.

Surgey, Just so i know, What's the deal with you mate ?
- I'm happy to get on a zoom chat with you and get you over the line, But
- Are you still proceeding with this ?
- have you given up
- have you reverted to just patching the scope,

Where are you at ?
QUESTION EVERYTHING!!!
 

Offline Sergey_21

  • Contributor
  • Posts: 12
  • Country: tr
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #38 on: May 02, 2024, 04:13:12 pm »
Surgey, Just so i know, What's the deal with you mate ?
- I'm happy to get on a zoom chat with you and get you over the line, But
- Are you still proceeding with this ?
- have you given up
- have you reverted to just patching the scope,

Hello!
I tried it, but the result is the same.
2158966-0

As I said earlier, or rather wrote, my script gives an error (and I tried to continue as you advised, but it didn’t give anything) and until I can sort this out, I don’t think anything will work out.
I think it’s worth writing to the script developer or to the main forum thread.
« Last Edit: May 02, 2024, 04:15:00 pm by Sergey_21 »
 

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #39 on: May 03, 2024, 05:51:24 pm »
Surgey, Just so i know, What's the deal with you mate ?
- I'm happy to get on a zoom chat with you and get you over the line, But
- Are you still proceeding with this ?
- have you given up
- have you reverted to just patching the scope,

Hello!
I tried it, but the result is the same.
(Attachment Link)

As I said earlier, or rather wrote, my script gives an error (and I tried to continue as you advised, but it didn’t give anything) and until I can sort this out, I don’t think anything will work out.
I think it’s worth writing to the script developer or to the main forum thread.

ATTENTION SERGEY
THIS POST IS DUPLICATED HERE FROM THE MAIN THREAD FOR THE BENEFIT OF THOSE THAT DON'T SEE THE MAIN THREAD

Mate, You may be in some luck here.
Recently i had a member who had your exact same problem

- After following the standard procedure and then re applying the update and then running the script, it still didn't work.
- We did a bit of troubleshooting and we got there and activated and licensed

CREDIT GOES TO SEPPLETRONICS

I have attached  A NEW PYTHON SCRIPT

I would like you to do the following (No need for screenshots, Just do this)

STEP 1- Download the script called
Code: [Select]
rigol_kg2_3_000 in the attachment

Ensure your scope is on 1.3.2.2

STEP 1 - Delete your priv.pem key from it's location
STEP 2 - Delete the old script from it's location
STEP 3 - Open your command prompt or Powershell and copy the NEW SCRIPT into the location of the directory that the shell opens in
             (I'm assuming here that you still have python correctly installed with all the modules)

STEP 4 - Run the -i command like this
Code: [Select]
python rigol_kg2_3_000 -i 10.1.1.666   replace 10.1.1.666 for your I.P. Address

STEP 5 - Run the -r command
Code: [Select]
python rigol_kg2_3_000 -r 10.1.1.666

STEP 6 - CONFIRM THAT YOU DON'T HAVE ANY ERRORS
             CONFIRM THAT THE priv.pem FILE IS IN THE SAME LOCATION AS THE SCRIPT
             CONFIRM THAT YOU GOT 2 PROGRESS BARS INSTEAD OF ONE
STEP 7 - Run the script without the switch
Code: [Select]
python rigol_kg2_3_000 10.1.1.666
             CONFIRM THAT YOU GOT 2 PROGRESS BARS INSTEAD OF ONE
When this completes, it will NOT have activated Options

STEP 8 - SHUTDOWN YOUR SCOPE

STEP 9 - Put the 1.3.2.2 GEL File on USB and as before , go to PRE BOOT and select Upgrade Firmware , to load over 1.3.2.2 again
Take the USB Stick out and Restart your Scope

STEP 10 -  Run the -i command like this
Code: [Select]
python rigol_kg2_3_000 -i 10.1.1.666 

STEP 11 - Run the script without the switch
Code: [Select]
python rigol_kg2_3_000 10.1.1.666

NOW ..... PLEASE TELL ME THAT YOU ARE SUCCESSFULLY ACTIVATED AND LICENCED WITH "FOREVER"


Give that a go.

If it works.... Do not forget

Step 12 - Upgrade to 1.3.3.0
Step 13 - DO YOUR BACKUP from the 1.3.3.0 Backup files
then..
Step 14- Do Self Check - 3 Tests
Step 15 - Do Self Cal

Mate if this works,  Also do me a favour, can you please send me a list of WHICH OPTIONS YOU HAD INSTALLED AT THE TIME OF PURCHASE.
« Last Edit: May 03, 2024, 05:56:59 pm by BTO »
QUESTION EVERYTHING!!!
 

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #40 on: May 03, 2024, 06:57:52 pm »
Directions and script worked perfectly on my MSO5074.  Thanks.

It might be useful to add a reminder to use a USB stick at least 2GB in size when doing the backups.  I have a little old 64MB stick I use for updates, and that was not big enough.

Hi mate,
First, Hope your scope is going well for you .

Secondly, Want to ask you a favour about your scope, (i'm gathering some information for the sake of helping others)

Now.. You mentioned your scope was a MSO5074
However... DID YOU BUY IT STANDARD or  DID YOU HAVE OTHER OPTIONS INSTALLED FROM THE TIME OF PURCHASE ?

FYI - This is a new script file called rigol_kg2_3_00.py 
For the record, this file will not apply to you , you just keep the one that you activated with if you need to do anything.
But the original file has been modified and other users have successfully activated that couldn't before, so now i need to gather
some information to see which models are effected by this change and to find the common factor between them and this will
help me understand if i need to modify the script further.

thanks mate
QUESTION EVERYTHING!!!
 

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #41 on: May 04, 2024, 08:51:25 am »
Hi,

for me all have worked very well. Job well done with PDF @BTO :-+
The only small misalignment I have had was at point 16, where it says that script without parameters will run same way, meaning two progress bar should appear. In my case I have just got info that CFRAM is OK and then got the activation list screen, no progress bars. I have just went down the PDF file and at the end all worked super good.

But it's true that I have had to import some libraries via pip

All in all it works, and excelent work with providing all the details @BTO
Hi Michal, Hope your scope is going well.
Can i ask something  PRIOR TO FULL ACTIVATION
What Model was your scope ?
Did it have any installed options from the factory ?

I'm making a record of who activated and the specifics of the meters, i'm trying to find a correlation between a few things
in the script as i feel i can edit the script to activate more scopes
QUESTION EVERYTHING!!!
 

Offline dxl

  • Regular Contributor
  • *
  • Posts: 190
  • Country: de
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #42 on: May 13, 2024, 07:57:56 pm »
Thanks BTO,

that worked like a charm. I had an old Firmware version several years old on my MSO5072, i disassembled the scope binary at that time and patched the option code to get all the options. Now i thought it's time to update the Firmware. All what's required was:

- flash DS5000Update.GEL via USB (from MSO5000(ARM)Update_v00.01.03.03.00.zip)
- python rigol_kg2_3_000.py -r 192.168.0.158
- powercycle DSO
- python rigol_kg2_3_000.py 192.168.0.158

voila, all options there - awesome, thanks!
 

Online BTOTopic starter

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: au
Re: Hacking the Rigol MSO5000 - Dr Mefisto Licensing Method
« Reply #43 on: Yesterday at 01:16:32 am »
Thanks BTO,

that worked like a charm. I had an old Firmware version several years old on my MSO5072, i disassembled the scope binary at that time and patched the option code to get all the options. Now i thought it's time to update the Firmware. All what's required was:

- flash DS5000Update.GEL via USB (from MSO5000(ARM)Update_v00.01.03.03.00.zip)
- python rigol_kg2_3_000.py -r 192.168.0.158
- powercycle DSO
- python rigol_kg2_3_000.py 192.168.0.158

voila, all options there - awesome, thanks!
THAT'S AWESOME.. Well Done
You're Welcome

it is interesting however that , You have an MSO5074 and yet you used the
Code: [Select]
python rigol_kg2_3_000.py script
and it worked. Generally this is used only if you have a MS5100 series or.. in rare cases when you have a MSO5074 with MSO5000BND Options.

I haven't worked out why yet, but when they load options into a MSO5074 it seems to somehow recognize it as an MSO5100.

Oh Well.. NOTED,
In any case, You're all good, so well done
QUESTION EVERYTHING!!!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf