An open API service indexing awesome lists of open source software.

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

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)