Skip to content

A simple mbr overriter written in C

License

Notifications You must be signed in to change notification settings

Jacoblightning/mbrOverriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

mbrOverriter

A simple MBR overriter (for windows) written in C

Building

If you changed boot.asm, remake main.c with get ready.py:

# 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:

qemu-system-x86_64.exe -hda bootpatched.bin

You can also test it on anyrun

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.

About

A simple mbr overriter written in C

Resources

License

Stars

Watchers

Forks

Packages

No packages published