Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:xiaomi:xiaomi_mi_router_4c [2022/06/05 21:14] – [Photos] add USB hardware mod pic mercygroundabysstoh:xiaomi:xiaomi_mi_router_4c [2023/02/03 13:21] – [Tags] fix tags danitool
Line 52: Line 52:
   - Install python3 and and to PATH if not installed.   - Install python3 and and to PATH if not installed.
   - Install requirements: <code>pip3 install -r requirements.txt</code>   - Install requirements: <code>pip3 install -r requirements.txt</code>
-  - Login to Web panel of your router and copy stok code from URL.+  - Login to Web panel of your router and copy the stok URL parameter out of the address field of your browser.
   - Execute the exploit: <code>python3 remote_command_execution_vulnerability.py</code>   - Execute the exploit: <code>python3 remote_command_execution_vulnerability.py</code>
   - Enter stok and router's IP to command line when it asks to.   - Enter stok and router's IP to command line when it asks to.
Line 137: Line 137:
 Using Mi Wifi Repair tool: Using Mi Wifi Repair tool:
 [[http://www1.miwifi.com/miwifi_download.html|Mi Wifi download]] [[http://www1.miwifi.com/miwifi_download.html|Mi Wifi download]]
-[[https://www.dropbox.com/s/bwkc11ntp2t8ryc/How%20to%20use%20MIWIFIRepairToolx86.pdf?dl=0|PDF guide]] (written for R4A gigabit edition)+[[https://www.dropbox.com/s/bwkc11ntp2t8ryc/How%20to%20use%20MIWIFIRepairToolx86.pdf?dl=0|PDF guide]] (written for R4A gigabit edition) \\ 
 +[[https://www.virustotal.com/gui/file/436e57a5e2daf1c5b4ece8851a7b7517c1fbc9e69acba8fac3806aa160f251b5/detection|Numerous antivirus tools report Mi Wifi Repair Tool (files date stamped January 2019) identify it as a 'Potentially Unwanted App' Unclear whether there is a genuine threat or it is a 'false positive'.]] 
 +\\ 
  
 +===== Hardware Mod - USB Port ====
  
 +See the photos for break down of where to solder etc.
 +On picture are shown all soldier points for desired pins with markings.
 +Also you must connect 15kOhm resistors to ground from D+ and D- lines.
 +
 +**Software mod**
 +
 +Simple hardware mod does not enable USB, you must enable OHCI and AHCI in board description file and compile appropriate firmware.
 +Board description file is on location <code>/{your openwrt source location}/openwrt/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4c.dts</code>
 +
 +In this file change:
 +<code>
 +&ehci {
 + status = "disabled";
 +};
 +&ohci {
 + status = "disabled";
 +};
 +</code>
 +to
 +
 +<code>
 +&ehci {
 +status = "okay";
 +};
 +&ohci {
 +status = "okay";
 +};
 +</code>
 +
 +Enable usb kernel module support in "make menuconfig", compile firmware file and flash it.
 +
 +<wrap warning> You can use 5V power supply from router for powering on USB, but take care because its only 1A of current charge if you connect some power hungry USB peripheral it will make router unstable.</wrap>
  
  
Line 145: Line 180:
  
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
-{{tag>MIPS ramips Mediatek MT7628 wlan 802.11abgn 802.11a 802.11bgn fastethernet 16flash 64ram 3port}}+{{tag>ramips MT7628 16flash 64ram 3port fastethernet USBmod wlan 802.11bgn MIPS}}
  • Last modified: 2024/02/12 11:13
  • by 127.0.0.1