使用binwalk提取固件中的Uboot

方法一:使用 dd 命令手动分割

root@3865u:/home/sunliguo# binwalk RG-S2928G.bin

DECIMAL HEXADECIMAL DESCRIPTION
——————————————————————————–
11141120 0xAA0000 JFFS2 filesystem, big endian

方法二:使用 binwalk 自动化分析提取

binwalk -Me firmware_dump.bin

root@3865u:/home/sunliguo# binwalk -Me RG-S2928G.bin

Scan Time: 2026-05-04 12:31:53
Target File: /home/sunliguo/RG-S2928G.bin
MD5 Checksum: 98ea4c34d0750081efa4f95a9fbb4ba7
Signatures: 411

DECIMAL HEXADECIMAL DESCRIPTION
——————————————————————————–

WARNING: Extractor.execute failed to run external extractor ‘jefferson -d ‘jffs2-root’ ‘%e”: [Errno 2] No such file or directory: ‘jefferson’, ‘jefferson -d ‘jffs2-root’ ‘%e” might not be installed correctly
11141120 0xAA0000 JFFS2 filesystem, big endian

# bs: 块大小,skip: 跳过字节数,if: 原始固件,of: 输出文件
dd if=RG-S2928G.bin of=RG-S2928G.jffs2 bs=1 skip=11141120
# 推荐使用 --user 参数,为当前用户安装
pip install --user jefferson
# -d 参数指定了输出文件夹,这里命名为 jffs2_root
jefferson RG-S2928G.jffs2 -d jffs2_root

	
		
	 
	
	

随机文章:

发表评论