https://github.com/brosck/mbroverwrite
「💽」MBR Overwrite malware for linux
https://github.com/brosck/mbroverwrite
assembly c harddisk hardware malware mbr overwrite virus
Last synced: 4 months ago
JSON representation
「💽」MBR Overwrite malware for linux
- Host: GitHub
- URL: https://github.com/brosck/mbroverwrite
- Owner: brosck
- License: gpl-3.0
- Created: 2022-03-31T16:47:19.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-22T16:33:50.000Z (almost 3 years ago)
- Last Synced: 2024-11-01T13:52:29.942Z (over 1 year ago)
- Topics: assembly, c, harddisk, hardware, malware, mbr, overwrite, virus
- Language: C
- Homepage:
- Size: 1.99 MB
- Stars: 24
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
「💽」MBR Overwrite malware for linux

The MBR virus has the function of staying in the Master Boot Record (MBR) causing the system to load the sector infected by the virus after being initialized. This type of virus causes an infection in the Basic Input/Output System (BIOS) using Disk Operating System (DOS) commands to infect the disk.
This repository was created with the intention of demonstrating the attack of this virus from the execution of it in a Linux system.
**Note**: **DO NOT RUN** on your personal machine, use a virtual machine to do the experiment.
## Demonstration:

## Requirements:
* GCC
* NASM
## Build:
In the file ```mbroverwrite.c``` in ```#define DISK "/dev/sda"``` is indicating the disk where will be replaced by the payload.
In the file ```mbroverwrite.c``` in ```unsigned char payload[]``` is storing the compiled file ```message.asm```, where the values are in HEX.
```
$ git clone https://github.com/Brosck/MBROverwrite.git
$ cd MBROverwrite
$ make
$ sudo ./mbroverwrite
```
## Buy me a coffee?

[LivePix](https://livepix.gg/mrempy)

[Buy me a coffe](https://www.buymeacoffee.com/mrempy)