Tenda固件:AC18.15.03.05.05、A15.03.05.19、A15.03.05.20都需要patch其中的httpd才可以正常模拟。
首先搜索字符串"welcome"找到对应位置:
搜索函数check_network:
交叉引用:
按空格查看graph,找到对应的函数sub_2E6B8
(sub_2E420
,版本不同函数名字不同),patch其中的关键代码check_network:
<img src="https://raw.githubusercontent.com/abcdefg-png/images/main/image-20240123141508364.png" alt="image-20240123141508364" style="zoom:50%;" />
patch后继续报错,发现还要修改一处:
将原本的指令MOV R3, R0
改为MOV R3, #1
patch的逻辑如下: