一、下载安装wget
参考博客:https://www.cnblogs.com/huny/p/14341818.html
二、打开命令行,下载固件
三、下载安装binwalk
1.在启动或关闭windows功能中,勾选“适用于Linux的Windows子系统”
2.在win10自带的应用商店中搜索Linux,选择ubuntu进行安装
3.打开ubuntu窗口,更换国内源
输入以下命令
//进入要安装存放的文件夹
cd /mnt/d/渗透测试/漏洞复现/cve-2021-27249
//备份源
sudo mv /etc/apt/sources.list /etc/apt/sources.listbackup
sudo rm /etc/apt/sources.list
sudo touch /etc/apt/sources.list
//更换源
notepad.exe /etc/apt/sources.list
然后将以下内容复制到sources.list中进行保存
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
回到ubuntu窗口,输入命令:
sudo apt update
4.安装binwalk
继续在ubuntu窗口输入命令:
sudo apt install binwalk
四、使用binwalk提取文件系统
使用命令binwalk -e DAP-2020_RevA_Firmware_102rc002.bin,提取文件系统
提取后的根文件系统为squashfs-root文件目录下。