poiu321 发表于 2024-8-21 10:40:43

像HG8010、HG8310M这些老光猫,如何补全shell

我用8310m试了一下,使能工具2.0,刷allshell2.bin,光猫有反应,重启后刷入失败。

有没有类似这种单网口老光猫能用的shell补全bin,谢谢


poiu321 发表于 2024-8-21 10:44:48

还有个问题,8310M这款单口千兆光猫,网上没有公开的固件,能够开启其添加更改vlan的功能,但是8010的V1R006C00S122_china_full_all固件却可以实现。有理由推断是huawei公司屏蔽了8310m的vlan添加功能,没有推出相应升级固件。

那么,如果想自己动手,将8010固件中的wap命令add port vlan等,移植到8310M现有固件中(目前有V300R015C00SPC100B104版的英文固件可刷),要怎么做呢,谁能指点下,谢谢。

邪恶海盗 发表于 2024-8-22 13:14:22

无图无真相...

-------------

poiu321 发表于 2024-8-22 19:27:27

邪恶海盗 发表于 2024-8-22 13:14
无图无真相...

-------------

想要什么图,命令?外观?

从之前来群里,学习基本功,最后搞掉了家里HS8546V的069和插件,到现在终于淘到1个8310m老光猫,原以为可以插路由器拨号上网了,结果发现,8310M这款,wap交互没有add port vlan命令,路由不能拨号上网

8310M图【图片上传失败】

WAP>display deviceInfo
*************** device information ***************
Manufacturer   = Huawei Technologies Co., Ltd
ManufacturerOUI= 00259E
ModelName      = HG8310M
Description      = EchoLife HG8310M GPON Terminal (CLASS B+/PRODUCT ID:2102311BVH6RFC364980/CHIP:00040220150724)
ManufactureInfo= 2102311BVH6RFC364980.C422
ProductClass   = HG8310M
SpecVersion      = 1.0
ProvisioningCode =
UpTime         = 965 seconds
ReleaseTime      = 2015-09-03_19:28:05
UpPort mode      = 1
*************************************************
【硬件版本: 6A5.A】
success!

WAP(Dopra Linux) # getcustominfo.sh
originalVersion   = V300R015C10SPC120A0009030161
customInfo      = CHINA

success!

poiu321 发表于 2024-8-24 22:04:19

功夫不负有心人,今天又淘了一只2013板HG8310M光猫,总算解决了问题:
================================
设备型号:        HG8310M
描述:        EchoLife HG8310M GPON Terminal (CLASS B+/PRODUCT ID:2102310PFL6REA079781)
SN:        48575443D9604532 (HWTCD9604532)
硬件版本:        3F2.A
软件版本:        V3R012C00S103
制造信息:        2102310PFL6REA079781.C402
ONT注册状态:        O1 (Initial state)
ONT ID:        255
CPU使用率:        1%
内存使用率:        42%
================================

WAP(Dopra Linux) # getcustominfo.sh
originalVersion   = V300R012C00B021
customInfo      = COMMON

success!

SU_WAP>?
acc add typelimit
acc del typelimit
acc get accesslimit
acc get typelimit
acc set accesslimit
acc set typelimit
acl show
acl statclear
add 8021x mac
add arping
add car
add cwmp monitorAlarm
add ethoam ma info
add ethoam md info
add ethoam mep info
add flow
add ipconn
add ipfilterinrule
add ipfilteroutrule
add ipif
add l2 mac
add macfilterrule
add policy route
add port vlan
add pppconn
add typeportal
add urlflt
add wan white list
add wanconn
add webuser
add wlan
amp clear
amp debug lswtable all
amp display efc
amp display l2act
。。。。。。

虽然进入su要输入随机密码,有论坛上的su解密工具,一切不是问题

总算可以尝试彻底摆脱hgu光猫的局端监控了!!!

明天做详细测试,待续……

poiu321 发表于 2024-8-24 22:08:23

su解密工具,用的是【欲断魂】出品的华为配置加解密工具

poiu321 发表于 2024-8-26 21:55:31

光猫HG8310M,固件,实测的一些设备默认启动后的参数信息:

BusyBox v1.18.4 (2013-12-25 21:35:41 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

profile close core dump, flag=
WAP(Dopra Linux) # getcustominfo.sh
originalVersion   = V300R012C00B021
customInfo      = COMMON

success!
WAP(Dopra Linux) # top
Mem: 48308K used, 63752K free, 0K shrd, 0K buff, 23916K cached
CPU:0.1% usr0.1% sys0.0% nic 99.6% idle0.0% io0.0% irq0.0% sirq
Load average: 3.05 3.01 2.91 1/106 756
PIDPPID USER   STAT   VSZ %MEM CPU %CPU COMMAND
756   737 root   R   12241.0   00.2 top
255   1 root   S    60000 53.4   00.1 amp
256   1 root   S   106m 96.9   00.0 omci
440   1 root   S    99448 88.6   00.0 clid
254   1 root   S    94056 83.8   00.0 bbsp
253   1 root   S    91212 81.2   00.0 ssmp
257   1 root   S    60988 54.3   00.0 igmp
529   1 root   S    50984 45.4   00.0 web
546   1 root   S    33156 29.5   00.0 mu
346   1 root   S    26480 23.6   00.0 procmonitor ssmp amp
542   1 root   S N16556 14.7   00.0 apm
251   1 root   S   99008.8   00.0 hw_ldsp_xpon_adpt
441   1 root   S   78847.0   00.0 ldspcli
737   440 root   S   12401.1   00.0 /bin/sh --login
324   1 root   S   12281.0   00.0 /bin/sh /bin/console.sh
    1   0 root   S   12201.0   00.0 init
526   324 root   S   12161.0   00.0 telnet 127.0.0.1 23
460   1 nobody   S      6760.6   00.0 dnsmasq --conf-file=/var/dnsmasq_
    8   2 root   SW       00.0   00.0
131   2 root   DW       00.0   00.0

WAP(Dopra Linux) # df -h
Filesystem                Size      Used Available Use% Mounted on
tmpfs                  54.7M         0   54.7M   0% /dev
tmpfs                   512.0M      8.0K    512.0M   0% /dev/shm
none                  512.0M         0    512.0M   0% /tmp
none                  512.0M    120.0K    511.9M   0% /var
none                  512.0M      4.0K    512.0M   0% /mnt
/dev/mtdblock10         1.5M    936.0K    600.0K61% /mnt/jffs2
WAP(Dopra Linux) #
WAP(Dopra Linux) # fdisk -l

Disk /dev/romblock0: 16 MB, 16777216 bytes
255 heads, 63 sectors/track, 2 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/romblock0 doesn't contain a valid partition table

Disk /dev/mtdblock0: 16 MB, 16777216 bytes
255 heads, 63 sectors/track, 2 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock0 doesn't contain a valid partition table

Disk /dev/romblock10: 1 MB, 1572864 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/romblock10 doesn't contain a valid partition table

Disk /dev/mtdblock10: 1 MB, 1572864 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock10 doesn't contain a valid partition table
WAP(Dopra Linux) #
WAP(Dopra Linux) # uname -a
Linux EchoLife_WAP 2.6.34.10_sd5115v100_wr4.3 #1 Thu Jan 9 06:09:35 CST 2014 armv7l GNU/Linux

poiu321 发表于 2024-9-24 15:26:16

本帖最后由 poiu321 于 2024-9-25 09:55 编辑

hg8310m光猫,hw_ctree.xml文件中,是否可以手动添加vlan id,实现自动设置,让后端拨号的路由成功上网呢?

搜了一下关键字,共有4处:

<SIP。。。
" UserAgentTransport="" VLANIDMark="" EthernetPriorityMark="-1" X_HW_802-1pMark="" DSCPMark="0"
。。。>

<RTP LocalPortMin="50000" LocalPortMax="50032" DSCPMark="0" TelephoneEventPayloadType="97" X_HW_2833FaxEventFlag="NoInitiativeStart" X_HW_PortName="" VLANIDMark="" X_HW_802-1pMark="" X_HW_2833FlashHook="0" X_HW_EmergencyDSCPMark="-1">

<RingCheck EponRingCheckSwitch="1" GponRingCheckSwitch="0" DefaultSpecifidVlan="" EthType="0x8300" PkgPerSec="5" RingPortReCheckInterval="300"/>

<X_HW_Spec X_HW_HGDetectEnable="0" X_HW_HGVlan="3999" X_HW_EthTrapEnable="1" X_HW_ForbidUploadOtherOLT="" X_HW_GemCarEnable="0">

poiu321 发表于 2024-9-24 22:17:35

算了,我用手头的几个huawei光猫ctree文件,比对下看看,到底修改哪里的vlanid起作用了
页: [1]
查看完整版本: 像HG8010、HG8310M这些老光猫,如何补全shell