Skip to content

devscan02/mbrextractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MBR Extractor

MBR Extractor is a simple command-line tool for extracting the Master Boot Record (MBR) from a physical device (such as a hard drive) and saving it to a file. It supports both Windows and GNU/Linux platforms.

⚪ Features

  • Extracts the first 512 bytes of the MBR from a specified device.
  • Supports Windows device paths (e.g., \\.PhysicalDrive0).
  • Supports Linux device paths (e.g., /dev/sda).
  • Provides informative error messages for common issues.
  • Simple and lightweight implementation in C.

🛠️ Build Instructions

To build the executable, use the provided Makefile:

make build
  • On Windows, this will produce mbrextractor.exe.
  • On Linux and other systems, this will produce mbrextractor.

Make sure you have gcc installed and available in your system PATH.

ℹ️ Usage

Run the executable with the device path and output file path as arguments.

🪟 Windows Example

mbrextractor.exe \\.PhysicalDrive0 mbr.bin

🐧 Linux Example

./mbrextractor /dev/sda mbr.bin

If you run the program without arguments or with incorrect arguments, it will display usage instructions.

The program will prompt for confirmation before extracting the MBR.

✍️ Author

Created by devscan02

⚠️ Disclaimer

Run this tool with administrator or root privileges to access the device. Use with caution as improper use may affect system stability.

About

A simple MBR extractor in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages