星络智能路由器OpenWrt后台web管理报错
星络智能路由器OpenWrt后台web管理报错
前言:
接上一篇文章,星络智能路由器openwrt密码破解操作流程
破解完密码之后发现后台web还是进不去,下面开始进行修复luci
首先修改软件源,先备份一下原来的,备份是个好习惯
root@OpenWrt:~# cp /etc/opkg/distfeeds.conf /etc/opkg/distfeeds.conf.bak root@OpenWrt:~# ls -la /etc/opkg drwxr-xr-x 1 root root 240 Mar 9 00:12 . drwxr-xr-x 1 root root 1176 Mar 8 23:48 .. -rw-r--r-- 1 root root 103 Dec 16 2019 customfeeds.conf -rw-r--r-- 1 root root 5516 Dec 16 2019 distfeeds.conf -rw-r--r-- 1 root root 5516 Mar 9 00:12 distfeeds.conf.bak drwxr-xr-x 2 root root 87 Dec 16 2019 keys然后替换软件源里的地址,此处192.168.50.82:8080地址需要换成自己的
root@OpenWrt:~# sed -i 's/downloads.openwrt.org/192.168.50.82:8080/g' /etc/opkg/distfeeds.conf root@OpenWrt:~# cat /etc/opkg/distfeeds.conf src/gz chaos_calmer_base http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/base src/gz chaos_calmer_alljoyn http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/alljoyn src/gz chaos_calmer_qca_lib http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/qca_lib src/gz chaos_calmer_athdiag http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/athdiag src/gz chaos_calmer_qca_mcs http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/qca_mcs src/gz chaos_calmer_packages http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/packages src/gz chaos_calmer_wlan_open http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/wlan_open src/gz chaos_calmer_networking http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/networking src/gz chaos_calmer_qca http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/qca src/gz chaos_calmer_hyfi http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/hyfi src/gz chaos_calmer_nss_host http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/nss_host src/gz chaos_calmer_whc http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/whc src/gz chaos_calmer_ieee1905_security http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/ieee1905_security src/gz chaos_calmer_routing http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/routing src/gz chaos_calmer_shortcut_fe http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/shortcut_fe src/gz chaos_calmer_bluetopia http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/bluetopia src/gz chaos_calmer_luci http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/luci src/gz chaos_calmer_weave http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/weave src/gz chaos_calmer_sigma_dut http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/sigma_dut src/gz chaos_calmer_ssdk http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/ssdk输入 vi /etc/opkg.conf
vi /etc/opkg.conf按 i 进入插入模式,并移动光标到最后一行,再最前面添加一个 # 然后再按 ESC 键 并 输入 :wq 保存并退出
dest root / dest ram /tmp lists_dir ext /var/opkg-lists option overlay_root /overlay # option check_signature 1再 opkg update
输入 opkg remove luci --force-depends
root@OpenWrt:~# opkg remove luci --force-depends Removing package luci from root...输入 pkg remove uhttpd --force-depends
root@OpenWrt:~# opkg remove uhttpd --force-depends Removing package uhttpd from root... Not deleting modified conffile /etc/config/uhttpd.root@OpenWrt:~# opkg install uhttpd Installing uhttpd (2015-11-08-fe01ef3f52adae9da38ef47926cd50974af5d6b7) to root... Downloading http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/base/uhttpd_2015-11-08-fe01ef3f52adae9da38ef47926cd50974af5d6b7_ipq806x.ipk. Configuring uhttpd. Collected errors: * resolve_conffiles: Existing conffile /etc/config/uhttpd is different from the conffile in the new package. The new conffile will be placed at /etc/config/uhttpd-opkg.root@OpenWrt:~# opkg install luci Installing luci (git-18.218.23369-6bfb8bc20-1) to root... Downloading http://192.168.50.82:8080/chaos_calmer/15.05.1/ipq806x/generic/packages/luci/luci_git-18.218.23369-6bfb8bc20-1_all.ipk. Configuring luci.root@OpenWrt:~# cp /etc/config/uhttpd-opkg /etc/config/opkg root@OpenWrt:~# cat /etc/config/opkg # Server configuration config uhttpd main # HTTP listen addresses, multiple allowed list listen_http 0.0.0.0:80 list listen_http [::]:80 # HTTPS listen addresses, multiple allowed list listen_https 0.0.0.0:443 list listen_https [::]:443 # Redirect HTTP requests to HTTPS if possible option redirect_https 1 # Server document root option home /www # Reject requests from RFC1918 IP addresses # directed to the servers public IP(s). # This is a DNS rebinding countermeasure. option rfc1918_filter 1
星络智能路由器OpenWrt后台web管理报错
https://www.tab6.site/archives/1678293238259