From 94a8b5c54fcb5936759fb513a85b4491317680ef Mon Sep 17 00:00:00 2001 From: Oleg S Date: Mon, 17 Oct 2022 15:42:02 +0300 Subject: [PATCH] Add support Xiaomi RA82 (AX3000 INT) --- connect.py | 2 +- connect4.py | 2 +- xqimage.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/connect.py b/connect.py index b0b5c94..f2e4e67 100644 --- a/connect.py +++ b/connect.py @@ -43,7 +43,7 @@ if dn in 'R3600 RA69 RA70 RA72': import connect3 sys.exit(0) -if dn in 'RB01 RB03 RB06 RB08': +if dn in 'RA80 RA82 RB01 RB03 RB06 RB08': import connect4 sys.exit(0) diff --git a/connect4.py b/connect4.py index 31be16d..dd8f913 100644 --- a/connect4.py +++ b/connect4.py @@ -54,7 +54,7 @@ res = exec_cmd("sed -i 's/release/XXXXXX/g' /etc/init.d/dropbear") if '"code":0' not in res: die('Exploit not working!!!') #res = exec_cmd("sed -i 's/`nvram get ssh_en`/1/g' /etc/init.d/dropbear") -res = exec_cmd("nvram set ssh_en=1; nvram commit") +res = exec_cmd("nvram set ssh_en=1; nvram set boot_wait=on; nvram set bootdelay=3; nvram commit") res = exec_cmd("(echo root; sleep 1; echo root) | passwd root") res = exec_cmd("/etc/init.d/dropbear enable") print('Run SSH server on port 22 ...') diff --git a/xqimage.py b/xqimage.py index fb6d667..312aace 100644 --- a/xqimage.py +++ b/xqimage.py @@ -73,9 +73,9 @@ xqModelList = [ "", # 40 "", "", - "RA80", # AX3000 + "RA80", # AX3000 (CN) "RA81", # Redmi AX3000 - "RA82", # AX3000 + "RA82", # AX3000 (INT) "RA83", "RA74", # AX5400 "",