#include
#include <Windows.h>
#include
using namespace std;
int main(void) {
string name; //账号
string password; //密码
//循环输入账号跟密码
while (1) {
system("cls");
cout << "请输入账号:";
cin >> name;
cout << "请输入密码:";
cin >> password;
//判断密码是否正确 正确跳出循环 错误继续
if (name == "dandan" && password == "123456") {
system("cls");
break;
} else {
cout << "账号或密码错误!" << endl;
system("pause");
}
}
//打印菜单
cout << "1.网站404攻击" << endl;
cout << "2.网站篡改攻击" << endl;
cout << "3.网站攻击记录" << endl;
cout << "4.DNS攻击" << endl;
cout << "5.攻击恢复" << endl;
system("pause");
return 0;