彻底玩转e-140w-p,包括插件卸载,所有配置文件和管理页面
本帖最后由 naffan 于 2017-2-19 14:41 编辑上周买了个贝尔e-140w-p,准备替换华为8240,通过几天的研究,已经探索出了很多此猫内部软件结构,在此与各位朋友分享一二。
首先,我买的这个猫软件是1.2S版
设备型号:E-140W-P
设备标识号:
硬件版本:E140WV1B1
软件版本:ASB_E140WV1.2S
PON注册状态未注册未认证
OSGI版本号1.0
JVM版本号1.0
首先列一下猫内部存储的所有配置文件(在/usr/S304/etc/ct路径下,必须在TTL终端下进linuxshell可见):asb-anhui-sip huaqin-jiangxi-gpon-h248
asb-anhui-sip-2f1 huaqin-jiangxi-gpon-h248-2f1
asb-fujian-epon-sip huasan-epon-sip-4f2
asb-fujian-epon-sip-2f1 iscom-epon-2f1
asb-fujian-epon-sip-4f1 iscom-gpon-2f1
asb-fujian-epon-sip-sgw iscom-ningxia-gpon-h248-2f1
asb-fujian-gpon-sip-sgw iscom-ningxia-gpon-h248-4f1
asb-fujian-sip iscom-ningxia-gpon-sip-2f1
asb-fujian-sip-2f1 iscom-ningxia-gpon-sip-4f1
asb-guangdong-epon-sip-sgw jyt-hunan-epon-sip-2f1
asb-guangdong-gpon-sip-sgw lg-anhui-sip-2f1
asb-guangxi-epon-sip ly-guangdong-epon-sip
asb-guangxi-epon-sip-2f1 ly-guangdong-epon-sip-2f1
asb-guangxi-epon-sip-sgw ly-guangdong-gpon-sip
asb-guangxi-gpon-sip-sgw ly-guangdong-gpon-sip-2f1
asb-h248-2f1 novoip
asb-h248-sgw novoip-2f
asb-h248-sgwepon nt
asb-hebei-gpon-h248-sgw nt-2f1
asb-hunan-epon-sip-2f1 nt-anhui-epon-sip
asb-jiangsu-2f0 nt-anhui-epon-sip-2f1
asb-jiangsu-epon-sip-sgw nt-anhui-gpon-sip
asb-jiangsu-sip nt-anhui-gpon-sip-2f1
asb-jiangsu-sip-2f1 nt-epon-sip-4f1
asb-jiangxi-epon-h248-sgw nt-fujian-epon-sip
asb-jiangxi-gpon-h248-sgw nt-fujian-epon-sip-2f1
asb-jiangxi-h248 nt-fujian-epon-sip-4f1
asb-jiangxi-h248-2f1 nt-gpon
asb-jiangxi-h248-sgw nt-gpon-sip-4f1
asb-jiangxi-h248-sgwepon nt-guangdong-epon-sip
asb-shaanxi-gpon-sip-sgw nt-guangdong-epon-sip-2f1
asb-shanghai-epon-sip nt-guangdong-gpon-sip
asb-shanghai-epon-sip-sgw nt-guangdong-gpon-sip-2f1
asb-shanghai-gpon-sip-2f1 nt-guangxi-epon-sip
asb-shanghai-gpon-sip-4f2 nt-guangxi-epon-sip-2f1
asb-shanxi-epon-sip-2f1 nt-guangxi-gpon-sip
asb-sichuan-epon-sip-sgw nt-guangxi-gpon-sip-2f1
asb-sichuan-sip nt-hunan-epon-sip
asb-sichuan-sip-2f1 nt-hunan-epon-sip-2f1
asb-sip nt-hunan-gpon-sip
asb-sip-2f1 nt-hunan-gpon-sip-2f1
asb-sip-sgw nt-liaoning-gpon-h248-2f1
asb-sip-sgwepon nt-liaoning-gpon-sip-2f1
asb-suzhou-2f0 nt-ln-dalian-gpon-h248-2f1
asb-suzhou-epon-sip-sgw nt-ln-daqing-epon-h248-4f2
asb-suzhou-sip-2f1 nt-ln-daqing-gpon-h248-4f2
asb-xinjiang-epon-sip-2f1 nt-sip-2f1
asb-xinjiang-epon-sip-4f2 oversea
asb-xinjiang-epon-sip-sgw shangyanyuan-bellmann-epon-h248-2f1
asb-xinjiang-gpon-sip-sgw shangyanyuan-bellmann-epon-sip-2f1
ballman-shanghai-epon-sip-4f1 shangyanyuan-bellmann-gpon-h248-2f1
bellmann shangyanyuan-bellmann-gpon-sip-2f1
bellmann-2f1-h248 shangyanyuan-boda-epon-h248-2f1
bellmann-2f1-sip shangyanyuan-boda-epon-sip-2f1
bellmann-4f2-h248 shangyanyuan-boda-gpon-h248-2f1
bellmann-4f2-sip shangyanyuan-boda-gpon-sip-2f1
bellmann-fujian-epon-h248 sip
bellmann-fujian-epon-h248-2f1 sip-2f1
bellmann-fujian-epon-sip sip-sgw
bellmann-fujian-epon-sip-2f1 sip-sgwepon
bellmann-fujian-epon-sip-4f1 soft_feature.cfg
bellmann-hunan-epon-h248-2f1 taiye-anhui-sip-2f1
bellmann-hunan-epon-sip tengda-guangdong-epon-sip
bellmann-hunan-epon-sip-2f1 tengda-guangdong-epon-sip-2f1
bellmann-hunan-gpon-h248-2f1 tengda-guangdong-gpon-sip
bellmann-hunan-gpon-sip tengda-guangdong-gpon-sip-2f1
bellmann-hunan-gpon-sip-2f1 tengda-hunan-epon-sip
bellmann-jiangsu tengda-hunan-gpon-sip
bellmann-ningxia-gpon-sip-2f1 xuanhui-hebei-epon-sip
bellmann-ningxia-gpon-sip-4f1 xunte-guangxi-epon-sip
bellmann-sichuan-sip xunte-guangxi-epon-sip-2f1
bellmann-sichuan-sip-2f1 xunte-guangxi-gpon-sip
bellmann-yunnan xunte-guangxi-gpon-sip-2f1
bellmann-zhejiang youhua-sichuan-sip
changhong-chongqing-gpon-sip youhua-sichuan-sip-2f1
changhong-jiangxi-gpon-h248-2f1 zhuozhou-sichuan-sip-2f1
changhong-jiangxi-h248 zte-fujian-epon-sip-sgw
changhong-jiangxi-h248-2f1 zte-fujian-gpon-sip-sgw
daoxun-gpon-2f1 zte-guangxi-epon-sip-sgw
daoxun-sip-1f0 zte-guangxi-gpon-sip-sgw
default.cfg zte-h248-sgw
dlink-anhui-sip-2f1 zte-h248-sgwepon
dongbei-hunan-epon-sip-2f1 zte-hebei-gpon-h248-sgw
english zte-jiangsu-epon-sip-sgw
fiberhome zte-jiangxi-epon-h248-sgw
fiberhome-jiangsu-2f0 zte-jiangxi-gpon-h248-sgw
fiberhome-suzhou-2f0 zte-jiangxi-h248-sgw
fujian-ruihen-gpon-sip-4f2 zte-jiangxi-h248-sgwepon
h248 zte-shaanxi-gpon-sip-sgw
h248-2f1 zte-shanghai-epon-sip-sgw
h248-sgw zte-shanghai-gpon-sip-sgw
h248-sgwepon zte-sip-sgw
h3c-sgwepon-epon-4f0 zte-sip-sgwepon
huaqin-anhui-epon-sip-2f1 zte-suzhou-epon-sip-sgw
huaqin-anhui-gpon-sip-2f1 zte-xinjiang-epon-sip-sgw
huaqin-fujian-epon-sip-2f1 zte-xinjiang-gpon-sip-sgw
huaqin-fujian-epon-sip-4f1
通过以上配置文件,可见此猫的“孪生兄弟”还有不少,包括贝曼、华勤、烽火、腾达、长虹、中兴(F450G 1.0)等等。
以上配置文件的应用大家自行搜索论坛,已有不少帖子中有介绍。
下面是猫的全部配置页面(在猫的/usr/S304/cpk/httpd/MyPlugin/webs路径下):
WLANConfigration.html iptv_setup.html
account_setup.html itms.html
alg_setup.html itms_setup.html
avalanche_test.html l2tp_setup.html
backupsettings.html lan_dhcp.html
cctupload_tw2012.html lan_dhcpv6.html
certcaimport.html lan_status.html
certcaview.html lanvlancfg.html
certlocalview.html lasercontrol.html
certshow.html led_setup.html
common lib
coredump.html lockerror.html
cpm_setup.html log_flash.html
ct log_level_setup.html
ctStaticIpAdd.html log_setup.html
ctadminerror.html log_system.html
ctctcp.html login.html
ctdhcpdevice.html loid_reginfo.html
ctdiag.html loid_register.html
ctdiagbr.html loid_setup.html
ctdiagipow.html loopback_setup.html
ctdiagmer.html macf_setup.html
ctdiagmng.html main.html
ctdiagpppoa.html main_tw.html
ctdiagpppoe.html mld_proxy.html
ctdms.html mld_snooping.html
ctlanbind.html mwband_info.html
ctmacpolicy.html nas_usbxdown.html
ctmgtinfo.html notifyMsg.html
ctpswdrelogin.html pic
ctpswdsuccess.html platform_status.html
ctsn.html pluginCfg_status.html
ctstatsadsl.html pluginManage.html
ctstatsadsl_user.html plugin_status.html
ctstatslan_user.html portalcfg.html
cttr69cfgenable.html qos_setup.html
ctusererror.html rebootinfo.html
ctuserpswd.html redirectLogin.html
ctv2white.html register_upgradeinfo.html
ctwan_ethinfo.html resetdefault.html
ctwancfg1.html restoreinfo.html
ctwancfgenable.html route_rip_setup.html
ctwaninfo6_user.html route_static_v4_setup.html
ctwaninfo_user.html route_static_v6_setup.html
ctwlanInfo.html routeadd.html
ctwlanInfo_user.html scsrvcntr.html
ctwlcfg.html scvrtsrv.html
ctwlsecurity.html show_version.html
ddns_setup.html signalStatus.html
ddos_setup.html skipreg.html
dhcpOptionAdd.html smart_router
diag_automonitor.html sntp_setup.html
diag_inform.html soft_feature.html
diag_lan.html switchmode.html
diag_ping.html test_version.html
diag_tracert.html tr69_cert.html
diag_voip.html tr69_cfg_status.html
diaglan.html tr69_connect_status.html
dlna_setup.html tr69_setup.html
dm_dev_status.html tr69_setup_debug.html
dm_monitor.html tr69clog.html
dm_reboot.html updata_ftp.html
dm_restorefactory.html updatedefaultconfig.html
dm_usbbackup.html updatesettings.html
dmz_setup.html updatesoftfeature.html
dosprotect.html upgradeLater.html
ehomelogin.html upload.html
enableipv6.html uploadinfo.html
engdebug.html upnp_setup.html
example.html upnpblockip_add.html
factorymode.html urlf_setup.html
factoryswitch.html usbbackuphandle.html
firewall_setup.html usbbackupresult.html
flowcache_setup.html usbinfo.html
ftpcfg.html userManagement.html
help_diag.html virtual_server_setup.html
help_manage_device.html voicecfg.html
help_manage_file.html voiceh248_advanced.html
help_manage_keep.html voiceh248_basic.html
help_manage_user.html voiceh248_debug.html
help_net_QOS.html voiceh248_h248.html
help_net_WLAN.html voiceh248_status.html
help_net_dhcp.html voiceh248_voicemedia.html
help_net_network.html voicemgcp_basic.html
help_net_remote.html voicesip_basic.html
help_net_route.html voicesip_basic_debug.html
help_net_time.html voicesip_debug.html
help_net_voip.html voicesip_digitmap.html
help_safe_firewall.html voicesip_ims.html
help_safe_mac.html voicesip_sip.html
help_safe_port.html voicesip_status.html
help_safe_wan.html voicesip_userstatus.html
help_status_device.html voicesip_voicemedia.html
help_status_lan.html voicestatus.html
help_status_wan.html vtplog.html
help_use_DDNS.html wan_epon.html
help_use_IGMP.html wan_flow.html
help_use_UPNP.html wan_gpon.html
help_use_VOIP.html wan_rate.html
help_use_device.html wan_setup.html
help_use_nat.html wan_setup_debug.html
help_use_usual.html wan_status.html
help_user_net_remote.html wan_status_v6.html
hlpethconn.html wan_terminal.html
hlpusbconn.html wifidog_setup.html
hlpwlconn.html wlan_Info_user.html
igmp_proxy.html wlan_info.html
igmp_snooping.html wlan_sec.html
ipflt_setup.html wlan_setup.html
ipp_setup.html
这些页面里面很多都是未在用户界面显示的,大家比较关心的插件管理页面就是pluginManage.html,用telecomadmin登陆管理页面后,在浏览器输入http://你猫的IP/pluginManage.html打开(我已经把迅雷卸载了,因此看不到迅雷):
其他页面大家自行探索。
再提供一个TTL卸载插件的方法,在TTL下用admin/admin登录光猫,
1、首先用cpm {"RPCMethod":"Show"}命令列出光猫所有安装的组件
在S304#处输入 cpm {"RPCMethod":"Show"}
S304# cpm {"RPCMethod":"Show"}
smd_cmpExecCmd:Enterd>>
PluginName:ipv6mon.
PluginName:nas.
PluginName:jniApp.
PluginName:openl2tpd.
PluginName:samba.
PluginName:klogd.
PluginName:pppd.
PluginName:cmc.
PluginName:wget.
PluginName:vodsl.
PluginName:hal.
PluginName:timerDeal.
PluginName:jis.
PluginName:dnsproxy.
PluginName:dhcp6s.
PluginName:mcpd.
PluginName:radvd.
PluginName:dhcp6c.
PluginName:upnp.
PluginName:sntp.
PluginName:dhcpc.
PluginName:ftp.
PluginName:traceroute6.
PluginName:dlna.
PluginName:speedTest.
PluginName:mmc.
PluginName:ctjis.
PluginName:traceroute.
PluginName:httpd.
PluginName:ddns.
PluginName:hotplug.
PluginName:zebra.
PluginName:dhcpd.
PluginName:ping.
PluginName:urlfilterd.
PluginName:tr69c.
PluginName:rastatus6.
PluginName:loopdetect.
PluginName:ripd.
PluginName:siproxd.
PluginName:cpmcl.
PluginName:ping6.
PluginName:redirect.
PluginName:pppoe-server.
PluginName:telnetd.
PluginName:monitorcollector.
PluginName:ssk.
PluginName:pwrctl.
PluginName:crond.
PluginName:bftpd.
PluginName:syslogd.
PluginName:smd.
PluginName:cpulimit.
PluginName:pluginProxy.
PluginName:eponapp.
PluginName:consoled.
PluginName:wifidog.
PluginName:com.chinatelecom.tongwei.smartgateway.b01.
PluginName:osgid.
2、卸载插件,用cpm {"RPCMethod":"UnInstall","Plugin_Name":"xxxx"}命令卸载插件,"xxxx"里面的xxxx就是上面列出来的PluginName:后面的插件名,譬如要卸载com.chinatelecom.tongwei.smartgateway.b01,就输入cpm {"RPCMethod":"UnInstall","Plugin_Name":"com.chinatelecom.tongwei.smartgateway.b01"}
最后,验证插件是否完全卸载,发帖前我已在TTL下卸载了迅雷,现在来看看迅雷原来的安装路径还存不存在:在liunxshell下面进/usr/plugin/cpk目录,
# cd /usr/plugin/cpk
# ls -a
.
..
com.chinatelecom.tongwei.smartgateway.b01
lib
osgid
可以发现已经没有com.chinatelecom.tongwei.smartgateway.thunder目录了,代表迅雷的安装文件已经完全卸除干净。
ps查下进程,也完全没有发现thunder进程了,说明迅雷插件已经完全卸除。
这里抛砖引玉,其他功能,大家一起探索共享。
看看我能做什么 大神,辛苦了!
本帖最后由 周生生 于 2017-2-26 17:06 编辑
还有三个插件不能删除啊!
nas、Dlna、samba我都没用,白占内存和CPU,没TTL线,不知还有什么方法删除??
本帖最后由 leep4 于 2017-2-21 08:42 编辑
shanghai-epon模式,telnet下不插光口使用cpm命令回车没有任何反应,插件管理页面可以关闭4个插件,此时内存占用为23******.悦me界面内存占用数为30%.再改guangdong-epon,恢复出厂后4个插件任然为关闭状态,此时内存占用为25*****.悦me界面内存占用数为30%.时间关系,未长时间采取数值进行比对.
综上,chongqing-epon内存占用数为15-17****,是测试中内存占用略小的方案.
没有TTL线啊,谁能搞一个干净的刷机ROM? leep4 发表于 2017-2-21 00:39
shanghai-epon模式,telnet下不插光口使用cpm命令回车没有任何反应,插件管理页面可以关闭4个插件,此时内存占 ...
用cpm {"RPCMethod":"Show"}命令,不是list naffan 发表于 2017-2-21 12:38
用cpm {"RPCMethod":"Show"}命令,不是list
2个都试过了,应该只能在ttl下执行. 新版固件好像已经没有迅雷了 Linuxshell下面输入什么命令能 看到这些地区表啊,能不能详细一点啊 蒙托亚 发表于 2017-2-26 08:26
Linuxshell下面输入什么命令能 看到这些地区表啊,能不能详细一点啊
在/usr/S304/etc/ct路径下,ls命令列目录 楼主很赞的样子,隐藏设置网页什么的,大家最喜欢了。。。。