pymbr 1.0.3

Last updated:

0 purchases

pymbr 1.0.3 Image
pymbr 1.0.3 Images
Add to Cart

Description:

pymbr 1.0.3

PyMBR is a simple module that allows the user to parse, manipulate or
create MBR/Bootsectors easily.

Parse full MBR dump
Parse parts of the MBR such as the partition table.
Change the bootcode or the artition table values.
Compose the changes made into a a new MBR binary string.


Installation
python setup.py install
or
pip install pymbr


Sample usage - Creating a simple MBR
import pymbr
mbr = pymbr.MBR()
mbr.bootcode = pymbr.Bootcode.ZOIDBERG
mbr.partitionTable = pymbr.PartitionTable.parse('\x00' * 64)
mbr.signature = 0xaa55
bin = mbr.compose()
with open('mbr.bin', 'wb') as file:
file.write(bin)


TODOs:

Add more common filesystems to the Filesystem class
Add common MBR bootcode to he Bootcode class
Add LBA to CHS converion
Add overlapping partition prevention
Tests?

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.