>> EXT2/EXT4 file system mount
$ sudo mount -t ext2 -o loop FIRMWARE_EXT2_FILE MOUNT_DIR
>> CPIO
$ file 0x19300.bin
0x19300.bin: ASCII cpio archive (SVR4 with no CRC)
$ cpio -idmv --no-absolute-filenames < 0x19300.bin
>> JFFS2 file system mount
$ file work_snp6201.dm365
work_snp6201.dm365: Linux jffs2 filesystem data little endian
>> Ramdisk mount
$ file ramdisk.img
ramdisk.img: u-boot legacy uImage, ramdisk, Linux/ARM,
RAMDisk Image (gzip), 3147278 bytes, Mon Apr 18 06:43:34 2016,
Load Address: 0x20800000, Entry Point: 0x20800000, Header CRC: 0x477630A3, Data CRC: 0xA72C71D0
$ binwalk ramdisk.img
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
0 0x0 uImage header, header size: 64 bytes, header CRC: 0x477630A3, created: 2016-04-17 21:43:34, image size: 3147278 bytes,
Data Address: 0x20800000, Entry Point: 0x20800000, data CRC: 0xA72C71D0, OS: Linux, CPU: ARM, image type: RAMDisk Image, compression type: gzip, image name: "ramdisk"
64 0x40 gzip compressed data, maximum compression, has original file name: "ramdisk.img", from Unix, last modified: 2016-04-17 21:43:24
$ dd bs=1 skip=64 if=ramdisk.img of=ramdisk-no-header.img
3147278+0 레코드 들어옴
3147278+0 레코드 나감
3147278 바이트 (3.1 MB) 복사됨, 13.8761 초, 227 kB/초
$ file ramdisk-no-header.img
ramdisk-no-header.img: gzip compressed data, was "ramdisk.img", from Unix,
last modified: Mon Apr 18 06:43:24 2016, max compression
$ zcat ramdisk-no-header.img > ramdisk-uncompressed.img
$ file ramdisk-uncompressed.img
ramdisk-uncompressed.img: Linux rev 1.0 ext2 filesystem data,
UUID=5dff5e17-a762-4976-9bbb-f74c51e54d8d
$ sudo mount -t ext2 -o loop ramdisk-uncompressed.img mntFolder
>> Yaffs2
Mac용 다운로드 :
$ brew install qt #install qt version 4.x
$ git clone https://github.com/danielkutik/yaffey.git
$ cd yaffey
$ qmake
$ make
$ mv yaffey.app /Applications/
'Mobile' 카테고리의 다른 글
Janus(CVE-2017-13156) 취약점 PoC (0) | 2018.04.24 |
---|---|
Netbeans를 통한 Android App 동적 디버깅 (0) | 2015.04.13 |