/Unbootable

Simple MBR wiper that overwrites the first 512 bytes of the root drive, and thus, preventing the computer from booting.

Primary LanguageCMIT LicenseMIT

Unbootable

Simple MBR wiper that overwrites the first 512 bytes of the root drive, and thus, preventing the computer from booting.

Compilation

To compile the project into a single executable, do the following:

# Compile manifest into object file
i686-w64-mingw32-windres --input manifest.rc --output manifest.o

# Compile to 32-bit exe
i686-w64-mingw32-gcc -std=c++11 main.c manifest.o -o unbootable.exe -s -lws2_32 -Wno-write-strings -fno-exceptions -fmerge-all-constants -static-libstdc++ -static-libgcc

Features

As of now, the program is really simple, which also means that it can be easily detected by AVs/EDRs. Though, maybe I'll test out some obfuscation techniques in the future.

Known Issues

  • Program crashes on Win 7 x86, though will still overwrite MBR

Disclaimer

This is purely for educational purposes. The software is provided "as is" and the authors are not responsible for any damage or mishaps that may occur during its use. Misuse of the provided software and information may result in criminal charges.

Credits

The following resources were of great help to me:
Python and Malware: Writing a simple wiper malware
Malware Development – Welcome to the Dark Side: Part 2-1