openwrt-xiaomi / xmir-patcher

Firmware patcher for Xiaomi routers
583 stars 82 forks source link

ax3200 int model 1.0.83 firmware cannot execute exploit #21

Open AlexanderKgr opened 6 months ago

AlexanderKgr commented 6 months ago

Here is the output

Xiaomi MiR Patcher

1 - Set IP-address (current value: 192.168.31.1) 2 - Connect to device (install exploit) 3 - Read full device info 4 - Create full backup 5 - Install EN/RU languages 6 - Install Breed bootloader 7 - Install firmware (from directory "firmware") 8 - {{{ Other functions }}} 9 - [[ Reboot device ]] 0 - Exit

Select: 2

device_name = RB01 rom_version = 1.0.83 release mac address = 40:c2:ba:dd:85:7d Enter device WEB password: test1234 Enable smartcontroller scene executor ... Wait smartcontroller activation ... Unlock dropbear service ... Traceback (most recent call last): File "d:\python\python38\Lib\site-packages\urllib3/connectionpool.py", line 699, in urlopen File "d:\python\python38\Lib\site-packages\urllib3/connectionpool.py", line 445, in _make_request File "", line 3, in raise_from File "d:\python\python38\Lib\site-packages\urllib3/connectionpool.py", line 440, in _make_request File "http\client.py", line 1344, in getresponse File "http\client.py", line 307, in begin File "http\client.py", line 276, in _read_status http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "d:\python\python38\Lib\site-packages\requests/adapters.py", line 439, in send File "d:\python\python38\Lib\site-packages\urllib3/connectionpool.py", line 755, in urlopen File "d:\python\python38\Lib\site-packages\urllib3/util/retry.py", line 532, in increment File "d:\python\python38\Lib\site-packages\urllib3/packages/six.py", line 769, in reraise File "d:\python\python38\Lib\site-packages\urllib3/connectionpool.py", line 699, in urlopen File "d:\python\python38\Lib\site-packages\urllib3/connectionpool.py", line 445, in _make_request File "", line 3, in raise_from File "d:\python\python38\Lib\site-packages\urllib3/connectionpool.py", line 440, in _make_request File "http\client.py", line 1344, in getresponse File "http\client.py", line 307, in begin File "http\client.py", line 276, in _read_status urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\Downloads\xmir-patcher-main\connect5.py", line 77, in exec_smart_cmd res = requests.post(gw.apiurl + api, data = { "payload": payload }, timeout = timeout) File "d:\python\python38\Lib\site-packages\requests/api.py", line 117, in post File "d:\python\python38\Lib\site-packages\requests/api.py", line 61, in request File "d:\python\python38\Lib\site-packages\requests/sessions.py", line 542, in request File "d:\python\python38\Lib\site-packages\requests/sessions.py", line 655, in send File "d:\python\python38\Lib\site-packages\requests/adapters.py", line 498, in send requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "connect.py", line 59, in import connect5 File "D:\Downloads\xmir-patcher-main\connect5.py", line 329, in exec_cmd("sed -i 's/release/XXXXXX/g' /etc/init.d/dropbear") File "D:\Downloads\xmir-patcher-main\connect5.py", line 220, in exec_cmd exec_tiny_cmd(cmd) File "D:\Downloads\xmir-patcher-main\connect5.py", line 137, in exec_tiny_cmd res = exec_smart_cmd(pdata) File "D:\Downloads\xmir-patcher-main\connect5.py", line 80, in exec_smart_cmd raise ExploitError(f'Cannot send POST-request "{sc_command}" to SmartController service. {msg}') connect5.ExploitError: Cannot send POST-request "scene_setting" to SmartController service. ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

==========================================================

Xiaomi MiR Patcher

1 - Set IP-address (current value: 192.168.31.1) 2 - Connect to device (install exploit) 3 - Read full device info 4 - Create full backup 5 - Install EN/RU languages 6 - Install Breed bootloader 7 - Install firmware (from directory "firmware") 8 - {{{ Other functions }}} 9 - [[ Reboot device ]] 0 - Exit

Select:

can you help me?

ngarafol commented 5 months ago

This is strange, for me it worked from first try (rb01 straight from the box, never used). Literally did it like a blonde, connected to rb01 wifi, cloned repo and added latest openwrt in firmware dir and ran run.sh

  Version info:
  UBoot: None
  OpenWrt: unknown
  Firmware: 1.0.83
  Channel: release
  BuildTime: Fri, 20 May 2022 10:18:01 +0000
  Hardware: RB01
  UBoot(2): 6.0.4
Python 3.8.10
Ubuntu 20.04.6 LTS