https://github.com/jacoblightning/mbroverriter
A simple mbr overriter written in C
https://github.com/jacoblightning/mbroverriter
Last synced: 18 days ago
JSON representation
A simple mbr overriter written in C
- Host: GitHub
- URL: https://github.com/jacoblightning/mbroverriter
- Owner: Jacoblightning
- License: unlicense
- Created: 2024-02-10T18:44:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-11T16:42:38.000Z (over 2 years ago)
- Last Synced: 2025-02-24T15:35:38.753Z (over 1 year ago)
- Language: C
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mbrOverriter
A simple MBR overriter (for windows) written in C
# Building
If you changed boot.asm, remake main.c with get ready.py:
```shell
# Edit boot.asm
nano boot.asm
# Remake main.c
python "get ready.py"
# Compile
cl main.c
```
#### You can also compile with tcc
# Testing Safely
## You can use qemu to test it:
```shell
qemu-system-x86_64.exe -hda bootpatched.bin
```
## You can also test it on [anyrun](https://any.run)
https://app.any.run/tasks/794acb0f-ce84-47d6-8af9-bca9c8c69f33/
# What is does:
## 1.
### If debug mode is on, it will display a warning.
## 2.
### It will check if it was run as administrator.
## 3.
### Open `\\\\.\\PhysicalDrive0` (where the mbr is stored)
## 4.
### Write the boot file to the mbr
#### (The boot file is inlined with `get ready.py`. It is not needed to run.)
## 5.
### Bluescreen the computer
# For the future
## Nothing right non but I will try to fix any issues.