客户端
#include<iostream>
#include<Windows.h>
#include<string>
using namespace std;
int main()
{
string pwd;
while(1){
cout << "please input your password:";
cin>>pwd;
if(pwd == "000123"){
break;
}else{
cout<<"pass word error!"<<endl;
}
}
cout<<"1.注册"<<endl;
cout<<"2.管理"<<endl;
cout<<"3.查询"<<endl;
cout<<"4,删除"<<endl;
system("pause");
return 0;
}
暴力破解器
#include<iostream>
#include<Windows.h>
#include<string>
using namespace std;
int main()
{
char c[10]={'0','1','2','3','4','5','6','7','8','9'};
char p[10];
int i,j,k,l,m,n;
for(i=0;i<10;i++)
for(j=0;j<10;j++)
for(k=0;k<10;k++)
for(l=0;l<10;l++)
for(m=0;m<10;m++)
for(n=0;n<10;n++){
p[0]=c[i];
p[1]=c[j];
p[2]=c[k];
p[3]=c[l];
p[4]=c[m];
p[5]=c[n];
p[6]='\0';
cout<<p<<endl;
}
return 0;
}