Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extract file from fat image in python

Tags:

python

fat32

I have a fat32 partition image file dump, for example created with dd. how i can parse this file with python and extract the desired file inside this partition.

like image 421
David A Avatar asked Jul 21 '26 07:07

David A


1 Answers

As far as reading a FAT32 filesystem image in Python goes, the Wikipedia page has all the detail you need to write a read-only implementation.

Construct may be of some use. Looks like they have an example for FAT16 (https://github.com/construct/construct/blob/master/construct/formats/filesystem/fat16.py) which you could try extending.

like image 137
davidg Avatar answered Jul 23 '26 23:07

davidg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!