斐讯K2P开启Telnet和ssh刷uboot,净化固件

20,334 views次阅读
没有评论

提醒:本文最后更新于2025-06-19 10:40,文中所关联的信息可能已发生改变,请知悉!

斐讯K2P开启Telnet和ssh刷uboot,净化固件

刷机先关软件:

WinSCP_5.5 + Putty

http://code.taobao.org/svn/hopol-bak/RE6500/WinSCP_5.5.zip

 

K2P 不死 uboot(下载后解压)

mleaf-k2p-uboot-dhcpd-880mHZ

 

开启Telnet@abccba94

1、进入http://iytc.net/k2p.php

2、输入你的WAN口MAC地址,下载配置文件

斐讯K2P开启Telnet和ssh刷uboot,净化固件

3、用此配置文件恢复即可开启telnet

恢复此配置文件不会更改你的其他配置

斐讯K2P开启Telnet和ssh刷uboot,净化固件

恢复配置会重启路由器,重启完成后计算机即可通过telnet连接K2P

PS.我习惯了Xshell 5

斐讯K2P开启Telnet和ssh刷uboot,净化固件

斐讯K2P开启Telnet和ssh刷uboot,净化固件

 

Telnet下备份固件

可以在 Telnet下备份固件 也可以安装SSH 后再备份

计算机telnet连接K2P后,按如下操作输入命令

1、将固件保存到内存

dd if=/dev/mtd0 of=/tmp/all.bin

2、将内存固件映射到http目录

cd /www

touch all.bin

mount --bind /tmp/all.bin /www/all.bin

3、下载备份固件到计算机

计算机访问

http://192.168.2.1/all.bin

即可下载固件

192.168.2.1为K2P地址,如你已修改,则更改此地址

备份的固件大小为16M,为整个FLASH的备份,相当于编程器固件

 

安装并开启 SSH

1、安装SSH

opkg install http://downloads.openwrt.org/chaos_calmer/15.05/ramips/mt7621/packages/base/dropbear_2015.67-1_ramips_1004kc.ipk

斐讯K2P开启Telnet和ssh刷uboot,净化固件

可能会提示一些错误之类的,不用管它,依然能用。

2、设置ssh自启动,添加ssh账户

/etc/init.d/dropbear enable

passwd root

斐讯K2P开启Telnet和ssh刷uboot,净化固件

/etc/init.d/dropbear start

就可以连接SSH了。

 

备份K2P原始文件

cd /tmp 然后执行下面命令:

斐讯K2P开启Telnet和ssh刷uboot,净化固件

备份全部文件:dd if=/dev/mtd0 of=k2p-all.bin

备份最重要的wifi产测数据:dd if=/dev/mtd3 of=Factory.bin

备份不知道斐讯用来干嘛的文件:dd if=/dev/mtd4 of=permanent_config.bin

备份固件:dd if=/dev/mtd5 of=firmware.bin

备份uboot:dd if=/dev/mtd1 of=Bootloader.bin

PS.反正我每个mtd都备份。

 

使用 Winscp连接K2P,然后打开/tmp目录,导出之前备份的.bin文件。

 

刷不死 uboot@mleaf

下载 mleaf-k2p-uboot-dhcpd-880mHZ 文件解压并上传到/tmp目录下。

 

然后执行:

cd /tmp

mtd -r write mleaf-k2p-uboot-dhcpd-880mHZ.bin Bootloader

斐讯K2P开启Telnet和ssh刷uboot,净化固件

接着就是等待K2P重启,这样uboot就刷写完毕了。

斐讯K2P开启Telnet和ssh刷uboot,净化固件

 

手动净化的方法

Telnet 下

  1. 禁用广告推送
    /etc/init.d/adpush stop
    /etc/init.d/adpush disable
  2. 禁用可疑进程
    注:下面几个禁用后无法使用APP远程:
    /etc/init.d/lc stop
    /etc/init.d/lc disable
    /etc/init.d/tr069 stop
    /etc/init.d/tr069 disable
    /etc/init.d/collect stop
    /etc/init.d/collect disable
    /etc/init.d/capp stop
    /etc/init.d/capp disable

 

K2P官方固件的FLASH分区:

斐讯K2P开启Telnet和ssh刷uboot,净化固件

 


私人固件备份:

K2P 有解压密码。你们别下载~~~

正文完
 0
HopoL
版权声明:本站原创文章,由 HopoL 于2017-06-04发表,共计1558字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)

HopoL's Blog

文章搜索
最新评论
Metaldololity Metaldololity Whoa, that's really simple. You just save my time a lot. Thankyou!
HopoL HopoL Since you’ve got the backup, it’s actually pretty simple. Just restore the backup files to your new flash drive, then head over to the /config directory and edit the go file. Look for export UNRAID_GUID=xxxxxxxxxxxxxx and swap it with your new drive's GUID. That should do the trick!
Metaldololity Metaldololity Really apreciate for your fast respond, mate. I actually have the backup of the flashdrive (from regular unraid backup). The problem is, when i search on youtube tutorial about changing the failed flashdrive, the process need some sort of confirmation with an account in unraid (blacklist the old one -> whitelist the new one). Since i have a cracked unraid, i don't know how to register my new flashdrive as the correct one (and the system not asking me for the old failed flashdrive). Thanks in advance
HopoL HopoL Man, that's a tough spot to be in. Regularly backing up your /boot folder is super important for exactly this reason. If you don't have a backup and your flash drive is completely fried, your best bet is to Google some specific recovery guides or check the Unraid forums. There are ways to rebuild your config by identifying your parity and data drives, but it can be a bit of a process. Hope you can get it sorted!
Metaldololity Metaldololity Hi! Huge thanks for the update on 7.2.0. I have question here, my flashdrive corrupted. how do i install it on the new flashdrive without losing all my configuration?