robomaster icon indicating copy to clipboard operation
robomaster copied to clipboard

the code used to root didn't work anymore

Open UserName-wang opened this issue 2 years ago • 13 comments
trafficstars

the code used to root didn't work anymore. I tried the two versions. Is there someone have newer version which works? thank you!

UserName-wang avatar Nov 18 '23 09:11 UserName-wang

The exploit has been patched in the most recent firmware update. Dusted off my robomaster today and made the mistake of updating the firmware without thinking.

DefenderVex avatar Nov 21 '23 09:11 DefenderVex

Thank you for your reply!

I agree with you. Then latest version blocked the root functionality. I should not update my robot. What a pity! Can someone have time to find a new way to root?

在 2023年11月21日,17:03,DefenderVex @.***> 写道:

The exploit has been patched in the most recent firmware update. Dusted off my robomaster today and made the mistake of updating the firmware without thinking.

UserName-wang avatar Nov 21 '23 09:11 UserName-wang

Their string matching. So splitting up the string like: ('sub'+'process) will get around it.

DefenderVex avatar Nov 25 '23 08:11 DefenderVex

Dear  DefenderVex,Thank you a lot for your suggestion!Can you please make more clear about: 'sub'+'process ?在 2023年11月25日,16:05,DefenderVex @.***> 写道: Their string matching. So splitting up the string like: ('sub'+'process) will get around it.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

UserName-wang avatar Nov 25 '23 16:11 UserName-wang

They are matching for the string "subprocess' anywhere in the code so you need to replace any reference to it.

DefenderVex avatar Nov 25 '23 18:11 DefenderVex

The code I used still didn’t work:def root_me(module):    import=rm_define.dict['builtins']['import']    return import(module,globals(),locals(),[],0)builtins=root_me('builtins')subprocess=root_me('sub’+’process')proc=subprocess.Popen('/system/bin/adb_en.sh',shell=True,executable='/system/bin/sh',stdout=subprocess.PIPE,stderr=subprocess.PIPE)Are there any more changes needed?Thank you!在 2023年11月26日,02:29,DefenderVex @.***> 写道: They are matching for the string "subprocess' anywhere in the code so you need to replace any reference to it.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

UserName-wang avatar Nov 26 '23 01:11 UserName-wang

root not work image but repace subprocess to sub_process exec success image image

Ero-Cat avatar Dec 09 '23 18:12 Ero-Cat

adb devices no device

Ero-Cat avatar Dec 09 '23 18:12 Ero-Cat

image

Ero-Cat avatar Dec 09 '23 18:12 Ero-Cat

solved ...I thought it was the serial port mirco usb on the motherboard, but it turned out to be the mirco usb next to the sd card.

Ero-Cat avatar Dec 09 '23 19:12 Ero-Cat

That’s a very good news! Thank you a lot! And glad to see more people are still playing with robomaster!在 2023年12月10日,03:32,Ghost @.***> 写道: solved ...I thought it was the serial port mirco usb on the motherboard, but it turned out to be the mirco usb next to the sd card.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

UserName-wang avatar Dec 10 '23 12:12 UserName-wang

adb devices no device

I'm finding this right now; but I only see one micro-usb, is the other hidden?

ukd1 avatar Dec 12 '24 21:12 ukd1

No its the micro usb next to the canbus port and the connection switch. This method also worked for me, thanks for the help! I also had to restart my adb server to get the upload.sh script to work as well.

destroyer5656 avatar Dec 23 '24 20:12 destroyer5656