找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: achaoge

唤醒华为智能网关光猫隐藏的小宇宙:OpenWRT

 火.. [复制链接]
发表于 2019-10-12 18:02 | 显示全部楼层
有时间看怎么玩
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-10-31 13:25 来自手机 | 显示全部楼层
优秀教程收藏
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-5 19:32 | 显示全部楼层
强贴留名!!!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-25 12:58 | 显示全部楼层
榨干光猫身上的资源
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-4 18:32 | 显示全部楼层
大佬 我第一步就是这个样子 是怎么回事啊

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

看起来你都不是华为的光猫啊,当然不能套用了。  详情 回复 发表于 2019-12-9 09:09
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-12-9 09:09 | 显示全部楼层
云外星河 发表于 2019-12-4 18:32
大佬 我第一步就是这个样子 是怎么回事啊

看起来你都不是华为的光猫啊,当然不能套用了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-23 14:26 | 显示全部楼层
本帖最后由 bl5c 于 2019-12-23 14:32 编辑
achaoge 发表于 2019-5-5 16:48
如果有原生光猫的 telnet,有天翼网关的功能的话,最简单的进入OP的操作,应该是创建文件 /opt/upt/apps/ap ...

大佬你好,我是联通华为HN8346Q
ls没有opt
还有办法吗?

WAP(Dopra Linux) # ls
bin      etc      libexec  proc     share    uer
boot     html     linuxrc  root     sys      usr
dev      lib      mnt      sbin     tmp      var

WAP(Dopra Linux) # df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                40320     40320         0 100% /
tmpfs                   239692         4    239688   0% /dev
tmpfs                   524288         4    524284   0% /dev/shm
none                     10240        32     10208   0% /tmp
none                    524288       936    523352   0% /var
none                         4         0         4   0% /mnt
none                      4096         0      4096   0% /var/g.hn
none                     16384       148     16236   1% /var/osgi
none                       120         0       120   0% /tmp/cert
none                     30720         4     30716   0% /var/felix-temp
none                      2048         0      2048   0% /tmp/QoE
/dev/ubi0_13             17088      1228     15860   7% /mnt/jffs2
none                      8192         0      8192   0% /var/spool/cups
/dev/ubi0_14            119388      5076    109476   4% /mnt/jffs2/app
cgroup_root             239692         0    239692   0% /sys/fs/cgroup



WAP(Dopra Linux) # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "startcode"
mtd1: 0ff00000 00020000 "ubifs"
mtd2: 00000000 00000000 "reserved"
mtd3: 0009b000 0001f000 "ubootA"
mtd4: 0009b000 0001f000 "ubootB"
mtd5: 0003e000 0001f000 "flash_configA"
mtd6: 0003e000 0001f000 "flash_configB"
mtd7: 0003e000 0001f000 "slave_paramA"
mtd8: 0003e000 0001f000 "slave_paramB"
mtd9: 00307000 0001f000 "kernelA"
mtd10: 00307000 0001f000 "kernelB"
mtd11: 02815000 0001f000 "rootfsA"
mtd12: 02815000 0001f000 "rootfsB"
mtd13: 0003e000 0001f000 "wifi_paramA"
mtd14: 0003e000 0001f000 "wifi_paramB"
mtd15: 0003e000 0001f000 "system_param"
mtd16: 0141a000 0001f000 "file_system"
mtd17: 0801e000 0001f000 "app"


WAP(Dopra Linux) # ps -w
  PID USER       VSZ STAT COMMAND
    1 root      1356 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW<  [kworker/0:0H]
    6 root         0 SW   [kworker/u8:0]
    7 root         0 SW   [migration/0]
    8 root         0 SW   [rcu_bh]
    9 root         0 SW   [rcu_sched]
   12 root         0 SW   [migration/1]
   13 root         0 SW   [ksoftirqd/1]
   14 root         0 SW   [kworker/1:0]
   15 root         0 SW<  [kworker/1:0H]
   17 root         0 SW   [migration/2]
   18 root         0 SW   [ksoftirqd/2]
   20 root         0 SW<  [kworker/2:0H]
   22 root         0 SW   [migration/3]
   23 root         0 SW   [ksoftirqd/3]
   24 root         0 SW   [kworker/3:0]
   25 root         0 SW<  [kworker/3:0H]
   26 root         0 SW<  [khelper]
   27 root         0 SW<  [netns]
   28 root         0 SW   [kworker/u8:1]
  102 root         0 SW<  [writeback]
  105 root         0 SW<  [bioset]
  106 root         0 SW<  [crypto]
  108 root         0 SW<  [kblockd]
  120 root         0 SW<  [cfg80211]
  141 root         0 SW   [khungtaskd]
  142 root         0 SW   [kswapd0]
  192 root         0 SW   [fsnotify_mark]
  307 root         0 SW   [kboxd]
  311 root         0 SW<  [deferwq]
  315 root         0 SW   [kworker/3:1]
  316 root         0 SW   [kworker/2:1]
  334 root         0 SW   [ubi_bgt0d]
  425 root         0 SW<  [kworker/0:1H]
  426 root         0 SW<  [kworker/3:1H]
  455 root         0 SW<  [kworker/1:1H]
  476 root         0 SW<  [kworker/2:1H]
  610 root      1680 S    collect_pipe
  622 root         0 SW   [wap_wq]
  646 root         0 SW   [ubifs_bgt0_13]
  689 root         0 DW   [phy_manager]
  861 root         0 SW   [ubifs_bgt0_14]
  944 root         0 SW   [khubd]
1037 root         0 SW<  [mirror_wq]
1066 root         0 SW   [sniffer_thread]
1089 root         0 SW   [kTimerTask]
1256 root         0 SW<  [dev_workqueue]
1269 root         0 SW<  [firmware_load_w]
1270 root         0 SW   [kworker/2:2]
1277 root         0 SW   [watchdog/0]
1278 root         0 SW   [watchdog/1]
1279 root         0 SW   [watchdog/2]
1280 root         0 SW   [watchdog/3]
1363 root     77092 S    comm -l bbsp ethoam cwmp usb_mngt dlna usb_ftp sftp uplinkqos tr098qos video_diag smartont_bbsp ssmp tr14
1364 root      134m S    bbsp
1373 srv_igmp 60652 S    igmp
1375 srv_ssmp  103m S    ssmp
1376 srv_amp  55156 S    amp
1377 srv_etho 44160 S    ethoam
1379 cfg_oam  62256 S    oam
1382 srv_wifi 92888 S    wifi -d 5 -n 60
1386 cfg_cwmp 56400 S    cwmp
1543 root      1360 S    sh -c ip6tables-restore -n
1544 root      1960 S    ip6tables-restore -n
1546 root     51156 S    procmonitor ssmp amp voice_h248sip
1667 root         0 SW   [mpcp]
1699 root      1360 S    sh -c iptables-restore -n
1700 root      1988 S    iptables-restore -n
1855 root      9960 S    dhcpc -i wan2 -s /etc/dhcpc/dhcpc.script -y 4 -x 0
1898 root     26452 S    dhcpd
1974 root      1092 S    radvd -d 1 -n -m stderr
1995 srv_voic 86380 S    voice_h248sip -d 3 -n 10
2005 root      1220 S    dhcp6s -f -c /var/ipv6/dhcp6s/dhcp6s.conf br0
2014 root      121m S    upnpdmain !br+ br0 49652
2028 srv_ssmp  1024 S    dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22 -j -k
2104 root         0 SW   [TraceSendMsgTas]
2105 root         0 SW   [SDPktSend]
2106 root         0 SW   [SDPktRecv]
2107 root         0 SW   [SDPktRtcp]
2108 root         0 SW   [SDRecv]
2109 root         0 SW   [SDMsgTimeout]
2110 root         0 SW   [SDMsgProc]
2111 root         0 SW   [SDTDMTrace0]
2112 root         0 SW   [SDTDMTrace1]
2116 root     26844 S    wificli
2180 root      1364 S    {exe} ash /bin/console.sh
2192 root         0 SW<  [codec_workqueue]
2248 root         0 SW<  [alloc_task_wque]
2269 root         0 DW   [kAthRxDelayTask]
2524 root         0 SW   [kworker/1:1]
2902 root     69084 S    osgi_proxy
2907 root     44668 S N  apm
2979 root      1492 S    {lxc-start} [lxc monitor] /var/lib/lxc jvm
2983 root      1356 S    init
2987 osgi_pro  1364 S    sh -c   ulimit -S -n 512 ;  LD_LIBRARY_PATH=/usr/osgi/lib:/usr/osgi/lib/aarch32:/usr/osgi/lib/aarch32/jli
2988 osgi_pro  195m S    java -Djava.security.policy=secure.policy -Dorg.osgi.framework.security=osgi -XX:ErrorFile=/mnt/jffs2/app
3000 srv_appm 66512 S    app_m -s 10 -c 1
3014 srv_web  79684 S    web -s 16 -c 16
3422 srv_ssmp 85160 S    clid
3429 srv_ssmp  1364 S    /bin/sh --wap
3434 root     26440 S    ldspcli
6061 nobody    9340 S    dnsmasq --conf-file=/var/dnsmasqwan1.2.ip1.conf
6084 srv_wifi  2640 S    hostapd_qca -B /var/hostapd-ath0.conf
6097 nobody    9332 S    dnsmasq --conf-file=/var/dnsv6/dnsmasq_wan2.conf
6101 srv_ssmp 18508 S    sntp
6207 srv_wifi  2640 S    hostapd_qca -B /var/hostapd-ath1.conf
9238 nobody    9332 S    dnsmasq --conf-file=/var/dnsmasq_br0.conf
9244 nobody    9332 S    dnsmasq --conf-file=/var/dnsv6/dnsmasq_br0.conf
11422 srv_ssmp  1092 R    dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22 -j -k
11425 srv_ssmp  1364 S    /bin/sh --wap
11426 srv_ssmp  1092 S    dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22 -j -k
11428 srv_ssmp  1376 S    /bin/sh --login
11485 srv_ssmp  1356 R    ps -w
15016 root         0 SW   [kworker/0:2]

点评

万兆猫?联通的猫没有隐藏的OP,所以没有这个玩法。  详情 回复 发表于 2019-12-24 08:36
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-12-24 08:36 | 显示全部楼层
bl5c 发表于 2019-12-23 14:26
大佬你好,我是联通华为HN8346Q
ls没有opt
还有办法吗?

万兆猫?联通的猫没有隐藏的OP,所以没有这个玩法。

点评

感谢回复,这猫可惜了  详情 回复 发表于 2019-12-24 21:16
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-24 21:16 | 显示全部楼层
achaoge 发表于 2019-12-24 08:36
万兆猫?联通的猫没有隐藏的OP,所以没有这个玩法。


感谢回复,这猫可惜了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-1-8 16:48 来自手机 | 显示全部楼层
这个帖子从头看到尾,受益良多
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-1-10 00:10 | 显示全部楼层
8145c5可以吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-1-14 03:31 | 显示全部楼层

楼主,安装完luci-base,luci-mod-admin-full浏览器出BadGateway

本帖最后由 没尾巴的牛 于 2020-1-16 03:13 编辑

楼主,麻烦看下
安装完opkg install luci-base,opkg install luci-mod-admin-full,打不开openwrt的web界面怎么解?现在提示BadGateway
开始安装的时候,老是报错,类似下面这样,像是依赖库没有
  1. root@SAF:/etc# opkg install luci-mod-admin-full
  2. Installing luci-mod-admin-full (git-16.018.33482-3201903-1) to root...
  3. Downloading http://archive.openwrt.org/chaos_calmer/15.05.1/omap/generic/packages/luci/luci-mod-admin-full_git-16.018.33482-3201903-1_omap.ipk.
  4. Collected errors:
  5. * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-mod-admin-full:
  6. *         libc *         libc *         libc *         libc *         libc *         libc *         libc *         libc *         libc *         libc *         libc *         libc *         libc *         libc *         libc *
  7. * opkg_install_cmd: Cannot install package luci-mod-admin-full.
复制代码
然后我上网找,找到解决办法,首先,下载libc,安装,安装的过程中,又自动安装了另一个不知道干什么的依赖包。。。
如下
  1. root@SAF:~# wget https://archive.openwrt.org/chaos_calmer/15.05.1/omap/generic/packages/base/libc_0.9.33.2-
  2. 1_omap.ipk
  3. Connecting to archive.openwrt.org (81.0.124.218:443)
  4. libc_0.9.33.2-1_omap 100% |**********************************************************|   191k  0:00:00 ETA
  5. root@SAF:~# opkg install libc_0.9.33.2-1_omap.ipk
  6. Installing libc (0.9.33.2-1) to root...
  7. Installing libgcc (4.8-linaro-1) to root...
  8. Downloading http://archive.openwrt.org/chaos_calmer/15.05.1/omap/generic/packages/base/libgcc_4.8-linaro-1_omap.ipk.
  9. Configuring libgcc.
  10. Configuring libc.
复制代码
库装上了,然后我迫不及待的安装了luci-mod-admin-full,安装过程中下载了好多依赖,包括luci-base。
  1. root@SAF:~# opkg install luci-mod-admin-full
  2. Installing luci-mod-admin-full (git-16.018.33482-3201903-1) to root...
  3. Downloading http://archive.openwrt.org/chaos_calmer/15.05.1/omap/generic/packages/luci/luci-mod-admin-full_git-16.018.33482-3201903-1_omap.ipk.
  4. Installing luci-base (git-16.018.33482-3201903-1) to root...
  5. Downloading http://archive.openwrt.org/chaos_calmer/15.05.1/omap/generic/packages/luci/luci-base_git-16.018.33482-3201903-1_omap.ipk.
  6. 略过N行
  7. Configuring libubox.
  8. Configuring libuci.
  9. Configuring liblua.
  10. Configuring libuci-lua.
  11. Configuring libubus.
  12. Configuring libjson-c.
  13. Configuring libblobmsg-json.
  14. Configuring rpcd.
  15. Failed to connect to ubus
  16. Configuring libnl-tiny.
  17. Configuring luci-lib-ip.
  18. Configuring libubus-lua.
  19. Configuring lua.
  20. Configuring luci-lib-nixio.
  21. Configuring luci-base.
  22. Configuring luci-mod-admin-full.
复制代码
然后我马上打开浏览器
http://192.168.1.1:80
BadGateway
The process did not produce any response
我猜测是uhttpd,没启动。
  1. root@SAF:~# /etc/init.d/uhttpd start
  2. Failed to connect to ubus
复制代码
不管用,赶紧试试华为系统有没有崩,
http://192.168.1.1:8080,顺利打开,安心了,这个没问题。
然后各种网上找,找了个命令,据说十分灵
  1. rm -r /tmp/luci-indexcache
复制代码
说是清理缓存的,弄完,还不如从前。/哭
现在http://192.168.1.1:80是
NotFound
File not found.
现在我又重装了,不敢执行那个清缓存命令。



------------------------------------------------------------------以下是傻傻的经验教训,重装ssh,可以略过-----------------------------------------------------------
输完那个命令,op系统的ssh上不去了。
登陆的时候老是提示,需要密钥文件,而且不支持用户名密码登录,网上找了一圈,没找到怎么弄,
估计是op的ssh掉了,需要重装,并配置。

想根据楼主的教程重走一遍

卡在了解包这一步。(我今天看,可能不需要这一步,因为文件都在,可能只需要配置下)
  1. WAP(Dopra Linux) #tar xzf /tmp/data.tar.gz
  2. tar: can't createdirectory './usr': File exists
  3. tar: can't make dir./usr/lib: Not a directory
  4. tar: can't createdirectory './usr/': Not a directory
  5. tar: can't createdirectory './usr/': Not a directory
  6. tar: can't createdirectory './usr': File exists
  7. tar: can't make dir./usr/bin: Not a directory
  8. tar: can't createdirectory './usr/': Not a directory
  9. tar: can't remove oldfile ./usr/: Not a directory
  10. WAP(Dopra Linux) #tar: write: Broken pipe
复制代码

我尝试了好几种方法,都不行。放弃,把光猫恢复出厂,重头在再来一遍
第一步,开启进猫的安全界面开启telnet


第二步用shell工具,不用也行,直接cmd
telnet 192.168.1.1

第三步,看shell是否是全的
我这个是全的

第4步
按照楼主教程走一遍
看看不会卡住吧。。。
结果第一步就报错了
  1. WAP(Dopra Linux) # cd/tmp && rm hw_ctree*
  2. rm: can't remove'hw_ctree*': No such file or directory
复制代码

我有不详的预感,还得卡在相同的位置(其实rm hw_ctree*是为了删掉以前编辑的配置文件,防止搞混

太好了,没卡在解包那一步

但是下面这一步报错了,提示文件夹已存在
  1. WAP(Dopra Linux) #mkdir etc/rc.d && cd etc/rc.d
  2. mkdir: can't createdirectory 'etc/rc.d': File exists
复制代码

然后下面这一步报错,提示无此文件或目录。
  1. WAP(Dopra Linux) #sed -i "s/root:/root:$rootpw/" ../shadow
  2. /bin/sh: sed: notfound
  3. WAP(Dopra Linux) #sed -i "s/root:/root:$rootpw/" ../shadow
  4. sed: ../shadow: Nosuch file or directory
复制代码

因为上面的
  1. mkdir etc/rc.d && cd etc/rc.d
复制代码

前半部分mkdir etc/rc.d没有执行成功,所以,后面的cdetc/rc.d就不会执行,所以,后面的
  1. ln -s ../init.d/dropbear S50dropbear
复制代码
生成软连接可定就在/opt/upt/apps/apps/目录下了,刚才cd /opt/upt/apps/apps/过去,ls,果然在这里,然后rm S50dropbear,删除了S50dropbear这个软链接。
然后手动cd /etc/rc.d(这是最大的错误)
  1. WAP(Dopra Linux) #cd /opt/upt/apps/apps/
  2. WAP(Dopra Linux) #ls
  3. S50dropbear etc          opt         uds          usr          var
  4. WAP(Dopra Linux) #rm S50dropbear
  5. WAP(Dopra Linux) #ls
  6. etc  opt uds  usr  var
  7. WAP(Dopra Linux) #cd /etc/rc.d
  8. WAP(Dopra Linux) #ls
  9. init.d      rc.shutdown  rc.start     rc.stop     rc.sysinit   rc.ttyini
复制代码

随着我对linux各个指令的熟悉,刚才有些地方不懂的,现在一点一点懂了。(我的自以为是害死我了,/汗

继续,接着就报错了。。系统文件只读。。。
  1. WAP(Dopra Linux) ln -s ../init.d/dropbear S50dropbear
  2. ln: S50dropbear: Read-only file system
  3. WAP(Dopra Linux)cd /etc/rc.d
  4. WAP(Dopra Linux)# ls
  5. init.d      rc.shutdown  rc.start     rc.stop     rc.sysinit   rc.ttyinit
  6. WAP(Dopra Linux)# ln -s /opt/upt/apps/apps/etc/init.d/dropbear S50dropbear
  7. ln: S50dropbear:Read-only file system
复制代码


还是报错
提示只读,看来我需要把这个文件夹改下权限(回过头看,当时是钻牛角尖了。
drwxr-xr-x    5 root     root          115 Nov 16  2017 rc.d
  1. WAP(Dopra Linux) # chmod -R 777 /etc/rc.d
  2. chmod: /etc/rc.d: Read-only file system
  3. chmod: /etc/rc.d: Read-only file system
复制代码

奇怪,还不能改权限。

在网上找了一条指令
  1. mount -o remount -rw  /
复制代码
不顶事

再来
  1. cp -d /opt/upt/apps/apps/etc/init.d/S50dropbear /etc/rc.d/
复制代码

-d的意思是,如果源文件是软链接,那么复制过去还是软链接
还是不行。服了。。

网上又找:
  1. mount -o remount,rw /
复制代码
还是不行

以下是我的分区
  1. WAP(Dopra Linux) # vi /etc/fstab
  2. proc                   /proc           proc    defaults               0 0
  3. sysfs                  /sys            sysfs  defaults                0 0
  4. tmpfs           /dev       tmpfs       defaults               0 0
  5. devpts                 /dev/pts        devpts  mode=620               0 0
  6. tmpfs           /dev/shm       tmpfs   nodev,size=512m              0 0
  7. tmpfs           /tmp           tmpfs   nodev,size=512m              0 0
复制代码

重启,没用
明天再说,这一步卡死了。
直接下一步试试
  1. sed -i"s/root:/root:$rootpw/" /opt/upt/apps/apps/etc/shadow
复制代码

明天再来
刷机也失败

经历了两天,重新回到起点,我找来我的另一台新猫。重新梳理,重新配置,找到了原因
知道为什么报错,只读了,因为
这条命令的误解
  1. cd /opt/upt/apps/apps/
  2. tar xzf /tmp/data.tar.gz
  3. mkdir etc/rc.d && cd etc/rc.d
复制代码

其中,这里的cd etc/rc.d
这个etc前面没“/”
绝对路径命令是,cd /opt/upt/apps/apps/etc/rc.d,而不是/etc/rc.d

就因为这一句的误解,前天晚上,昨天晚上白搭2个晚上,还把猫差点搞砖。
现在这个猫还有点问题,因为固件恢复,是用其他猫,所以,什么标识,wifi,都是那个猫的名字。
------------------------------------------------------------------以上是傻傻的经验教训,重装ssh-----------------------------------------------------------




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-1-14 03:54 | 显示全部楼层
感谢大佬  很详细
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-1-16 03:35 | 显示全部楼层
本帖最后由 没尾巴的牛 于 2020-1-18 00:32 编辑
aini50563 发表于 2019-2-13 20:51
再次更新语言包,看着就大有可玩的了,只是可惜,网络接口配置没有配套接口,跳转不了,
第三阶段,择日再 ...

大神,能整理一篇教程吗,尝试了一次,失败,不敢在尝试了。

看了您所有的回复,就是安装luci-base和luci-mod-admin-full后报错,然后你又安装了luci-theme-bootstrap
就好了?


又重头装了一遍luci-mod-admin-full这次跟我上面那个一样,中间有个Failed to connect to ubus

打开网页还是
Bad GatewayThe process did not produce any response


uhttpd无法启动

提示
  1. root@SAF:~# /etc/init.d/uhttpd restart
  2. Failed to connect to ubus
  3. Failed to connect to ubus
复制代码




查询ubus,开启来没什么问题
  1. root@SAF:/etc/init.d# ps | grep ubusd
  2.    24 root       904 S    /sbin/ubusd
  3. 1344 root      1132 S    grep ubusd
复制代码



杀掉ubusd 在重启
  1. root@SAF:/var# killall -9 ubusd ; /sbin/ubusd &
  2. root@SAF:/var# ps | grep ubusd
  3. 1348 root       948 S    /sbin/ubusd
  4. 1349 root       948 S    /sbin/ubusd
  5. 1351 root      1132 S    grep ubusd
复制代码




多了个ubusd。不懂

vi /etc/config/uhttpd

这个看起来也没问题啊。或者我不会看?还是光猫原始的那个。
vi /etc/init.d/uhttpd

这个也看不懂。



然后究极一点,我直接把www下面的index.htm编辑了下
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>hello word</title>
  6. </head>
  7. <body>
  8. hello word
  9. </body>
  10. </html>
复制代码




事实证明这个uhttpd已经生效了,可以正确显示这个网页
hello word


这个是原来的网页源码
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Cache-Control" content="no-cache" />
  6. <meta http-equiv="refresh" content="0; URL=/cgi-bin/luci" />
  7. </head>
  8. <body style="background-color: white">
  9. <a style="color: black; font-family: arial, helvetica, sans-serif;" href="/cgi-bin/luci">LuCI - Lua Configuration Interface</a>
  10. </body>
  11. </html>
复制代码


很显然他指向了/cgi-bin/luci
而这个luci的内容是
  1. #!/usr/bin/lua
  2. require "luci.cacheloader"
  3. require "luci.sgi.cgi"
  4. luci.dispatcher.indexcache = "/tmp/luci-indexcache"
  5. luci.sgi.cgi.run()
复制代码



不太懂啊








我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-2-9 18:52 | 显示全部楼层
能够telnet到openwrt  安装luci无法登录  最后没办法删除所有乱七八糟的  刷了2遍机,替换jffs2才恢复原始状态  建议小白不要胡乱搞了,坐等出最全面的教程再说
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-20 13:43

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表