mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-22 22:57:55 +03:00
Add support Xiaomi RA82 (AX3000 INT)
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
+1
-1
@@ -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 ...')
|
||||
|
||||
+2
-2
@@ -73,9 +73,9 @@ xqModelList = [
|
||||
"<unk40>", # 40
|
||||
"<unk41>",
|
||||
"<unk42>",
|
||||
"RA80", # AX3000
|
||||
"RA80", # AX3000 (CN)
|
||||
"RA81", # Redmi AX3000
|
||||
"RA82", # AX3000
|
||||
"RA82", # AX3000 (INT)
|
||||
"RA83",
|
||||
"RA74", # AX5400
|
||||
"<unk48>",
|
||||
|
||||
Reference in New Issue
Block a user