从蒲公英路由器上备份了好些文件下来,但是都不知道什么用途.因为他的ssh已经封了,每次从串口获取又不实际,所以想想别的办法吧.涉及底层操作用Windows自带的Bash是不行的.
root@tater-VirtualBox:~/tmp# ls mtd0.bin mtd2.bin mtd4.bin mtd6.bin mtd8.bin mtd1.bin mtd3.bin mtd5.bin mtd7.bin root@tater-VirtualBox:~/tmp# file mtd* mtd0.bin: data mtd1.bin: ISO-8859 text, with very long lines, with overstriking mtd2.bin: data mtd3.bin: data mtd4.bin: ISO-8859 text, with very long lines, with no line terminators mtd5.bin: u-boot legacy uImage, HCMT7621-S512, Linux/MIPS, OS Kernel Image (lzma), 1376964 bytes, Wed Mar 22 07:58:06 2017, Load Address: 0x80001000, Entry Point: 0x80001000, Header CRC: 0xC81EFC92, Data CRC: 0x698FC067 mtd6.bin: u-boot legacy uImage, HCMT7621-S512, Linux/MIPS, OS Kernel Image (lzma), 1376964 bytes, Wed Mar 22 07:58:06 2017, Load Address: 0x80001000, Entry Point: 0x80001000, Header CRC: 0xC81EFC92, Data CRC: 0x698FC067 mtd7.bin: Squashfs filesystem, little endian, version 4.0, 9720204 bytes, 1886 inodes, blocksize: 262144 bytes, created: Wed Mar 22 07:58:00 2017 mtd8.bin: Linux jffs2 filesystem data little endian root@tater-VirtualBox:~/tmp#
可见系统只出现在mtd7.bin和mtd8.bin,而根据大小mtd7大于mtd8,所以mtd7才是路由的系统.
那mtd8是什么呢,挂载看看.
root@tater-VirtualBox:~/tmp# cat /proc/filesystems | grep jffs2 root@tater-VirtualBox:~/tmp# modprobe jffs2 root@tater-VirtualBox:~/tmp# modprobe mtdblock root@tater-VirtualBox:~/tmp# modprobe mtdram total_size=122880 root@tater-VirtualBox:~/tmp# ls /dev/mtdblock? /dev/mtdblock0 root@tater-VirtualBox:~/tmp# dd if=mtd8.bin of=/dev/mtdblock0 9984+0 records in 9984+0 records out 5111808 bytes (5.1 MB, 4.9 MiB) copied, 0.0123768 s, 413 MB/s root@tater-VirtualBox:~/tmp# mkdir mtd8_mnt root@tater-VirtualBox:~/tmp# mount -t jffs2 /dev/mtdblock0 mtd8_mnt/ root@tater-VirtualBox:~/tmp# ls mtd8_mnt/ etc www root@tater-VirtualBox:~/tmp#
看来只是一些配置.
内部文件列表:tree