| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A Python tool that parses raw disk images without mounting them — reads MBR partition tables, FAT32 boot sectors, and EXT superblocks directly from binary data.
Written as a learning project to understand how filesystems are structured at the byte level.
Reads the 512-byte Master Boot Record and extracts all 4 partition entries:
Reads the FAT32 BIOS Parameter Block (BPB) from the partition's boot sector and extracts all relevant fields:
Reads the EXT superblock (handles both cases: first block empty or not) and extracts:
python FSParser.py -i <disk_image> [-m] [-f] [-a]| Flag | Description |
|---|---|
| -i <image> | Path to disk image (required) |
| -m | Parse MBR partition table only |
| -f | Parse filesystem only |
| -a | Parse both MBR and filesystem |
| -h | Show help |
Parse just the partition table:
python FSParser.py -i disk.img -mParse just the filesystem:
python FSParser.py -i disk.img -fParse everything:
python FSParser.py -i disk.img -aOn Linux:
# Create a blank image
dd if=/dev/zero of=test.img bs=1M count=100
# Or dump a real disk (careful)
dd if=/dev/sda of=disk.img bs=512On Windows, tools like FTK Imager or dd for Windows can produce .img files.
| Type | Support |
|---|---|
| FAT32 (CHS) | ✅ |
| FAT32 (LBA) | ✅ |
| Hidden FAT32 (CHS/LBA) | ✅ |
| EXT (Linux) | ✅ |
| FAT12, FAT16, NTFS, others | ❌ detected but not parsed |
The parser reads raw bytes from the image file using binascii.hexlify and interprets them based on fixed offsets defined in the filesystem specs:
All multi-byte values are read in little-endian and converted accordingly.
The tool parses the first non-empty, supported filesystem it finds in the partition table. If the first partition is unsupported (e.g. NTFS), it reports it and stops — it does not fall through to the next partition.
FSParser/ ├── FSParser.py # Main parser ├── banner.py # ASCII banner └── LICENSE
MIT — see LICENSE.
| Back | FazBrowse Home | New Git URL |