c++ make games

Someone asked me recently if I can hack the anti-addiction system?

I didn't know what the anti-addiction system was at the time. I only knew that it seemed to be a measure to restrict minors from playing games.

So I went to Baidu to check it out, and see for yourself.

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAWVJfVA==,size_20,color_FFFFFF,t_70,g_se,x_16

It is absolutely impossible to crack this system. Although there are many videos on the Internet, these are definitely fake. This system

Once introduced, the inspection is very strict, and it is impossible to crack

However, if you can't crack it, can't you make one yourself?

1. The first thing to solve is the age problem. This is relatively simple. You can get it from the ID number.

2. Next is the name. This can be done, but you need to log in and register a website. Because the author is lazy , the author knows that everyone doesn't want to make it so troublesome, so he doesn't name it.

3. The most important thing is time. The system I made is not so strict. You can enter the game from 20:00 to 21:00 every day. So just get the time. First get the total number of seconds from January 1, 1970 to the present, and then convert it into a time similar to 9019 through a series of simple and complex codes, which is equivalent to 9:19, and 0 is used as a placeholder, because 9, 1, and 9 are three distinct numbers here. We need to subtract the character 0 (converted into int) * 10 and add the one digit to the ten place, which is the time formatted at 24. Then judge whether the hour is 20, because 20 is after 8 pm.

4. Write another check: check whether the time has exceeded 20, that is! =20

Code on!

#include <iostream>
#include <string>
#include <iomanip>
#include <time.h>
#include<stdlib.h>
#include<windows.h>
#include<cstring>
#include<conio.h>
using namespace std;
 
 
int sfz()
{
    int a[18],i,n,b;          
    printf("当前未进行认证\n");
    printf("请输入身份证号:");
    for(i=0;i<18;i++)
    scanf("%1d",&a[i]);
    n=a[6]*1000+a[7]*100+a[8]*10+a[9];
    b=2022-n;
    if(b<18)
        return 0;
    else
        return 1;
}

int huoqu()
{
 	time_t now_time;
	now_time = time(NULL);
	struct tm *local;
	local=localtime(&now_time); //获取当前系统时间
	char buf[80];
	strftime(buf,80,"%H0%M",local);
	if ((buf[0]-'0')*10+(buf[2]-'0')==20)
	{
		return 1;
	}
	else
	{
		return 0;
	}
}

int jiancha()
{
	time_t now_time;
	now_time = time(NULL);
	struct tm *local;
	local=localtime(&now_time); //获取当前系统时间
	char buf[80];
	strftime(buf,80,"%H0%M",local);
	if ((buf[0]-'0')*10+(buf[2]-'0')!=20)
	{
		return 0;
	}
}

int main()
{
	system("color F0");
	if (sfz()==0)
	{
		if (huoqu()==1)
		{
			start:
				cout<<"        21点"<<endl;
				cout<<"----------------------"<<endl;
				cout<<"输入1开始"<<endl;
				int n;
				cin>>n;
				if (n==1)
				{
					system("cls");
					cout<<"开始"<<endl;
					//输入昵称 
					string name1,name2;
					cout<<"请输入玩家1昵称"<<endl;
					cin>>name1;
					cout<<"请输入玩家2昵称"<<endl;
					cin>>name2;
					/**/
					string op1,op2;
					int n1=0,n2=0;
					int s1=0,s2=0;
					//玩家1 
					cout<<"请玩家1拿牌"<<endl;
					while (true)
					{
						cout<<"是否继续拿?(y/n)"<<endl;
						cin>>op1;
						if (op1=="y")
						{
							srand(time(NULL));
							s1 += (rand()%(7-1+1)+1);
							cout<<"你的牌一共有"<<s1<<endl; 
							n1++;
							if (jiancha()==0)
							{
								cout<<"\n腾讯成长守护提醒您:\n根据国家防沉迷通知的相关要求和腾讯最新强化的防沉迷策略,由于您是未成年玩家,仅能在\n周五、周六、和法定节假日每日20时至21时登录游戏,在上述时间段外无法游戏,请注\n意休息。\n";
								Sleep(1000);
								exit(0);
							}
						}
						else if (op1=="n")
						{
							cout<<"你一共拿了"<<n1<<"张牌";
							if (jiancha()==0)
							{
								cout<<"\n腾讯成长守护提醒您:\n根据国家防沉迷通知的相关要求和腾讯最新强化的防沉迷策略,由于您是未成年玩家,仅能在\n周五、周六、和法定节假日每日20时至21时登录游戏,在上述时间段外无法游戏,请注\n意休息。\n";
								Sleep(1000);
								exit(0);
							}
							break;
						}
						else
						{
							cout<<"请不要乱输!"; 
							if (jiancha()==0)
							{
								cout<<"\n腾讯成长守护提醒您:\n根据国家防沉迷通知的相关要求和腾讯最新强化的防沉迷策略,由于您是未成年玩家,仅能在\n周五、周六、和法定节假日每日20时至21时登录游戏,在上述时间段外无法游戏,请注\n意休息。\n";
								Sleep(1000);
								exit(0);
							}
						}
						if (jiancha()==0)
						{
							cout<<"\n腾讯成长守护提醒您:\n根据国家防沉迷通知的相关要求和腾讯最新强化的防沉迷策略,由于您是未成年玩家,仅能在\n周五、周六、和法定节假日每日20时至21时登录游戏,在上述时间段外无法游戏,请注\n意休息。\n";
							Sleep(1000);
							exit(0);
						}
					}
					Sleep(3000);
					system("cls");
					//玩家2 
					cout<<"请玩家2拿牌"<<endl;
					while (true)
					{
						cout<<"是否继续拿?(y/n)"<<endl;
						cin>>op2;
						if (op2=="y")
						{
							srand(time(NULL));
							s2 += (rand()%(7-1+1)+1);
							cout<<"你的牌一共有"<<s2<<endl;
							n2++;
							if (jiancha()==0)
							{
								cout<<"\n腾讯成长守护提醒您:\n根据国家防沉迷通知的相关要求和腾讯最新强化的防沉迷策略,由于您是未成年玩家,仅能在\n周五、周六、和法定节假日每日20时至21时登录游戏,在上述时间段外无法游戏,请注\n意休息。\n";
								Sleep(1000);
								exit(0);
							}
						}
						else if (op1=="n")
						{
							cout<<"你一共拿了"<<n2<<"张牌";
							if (jiancha()==0)
							{
								cout<<"\n腾讯成长守护提醒您:\n根据国家防沉迷通知的相关要求和腾讯最新强化的防沉迷策略,由于您是未成年玩家,仅能在\n周五、周六、和法定节假日每日20时至21时登录游戏,在上述时间段外无法游戏,请注\n意休息。\n";
								Sleep(1000);
								exit(0);
							}
							break;
						}
						else
						{
							cout<<"请不要乱输!"; 
							if (jiancha()==0)
							{
								cout<<"\n腾讯成长守护提醒您:\n根据国家防沉迷通知的相关要求和腾讯最新强化的防沉迷策略,由于您是未成年玩家,仅能在\n周五、周六、和法定节假日每日20时至21时登录游戏,在上述时间段外无法游戏,请注\n意休息。\n";
								Sleep(1000);
								exit(0);
							}
						}
						if (jiancha()==0)
						{
							cout<<"\n腾讯成长守护提醒您:\n根据国家防沉迷通知的相关要求和腾讯最新强化的防沉迷策略,由于您是未成年玩家,仅能在\n周五、周六、和法定节假日每日20时至21时登录游戏,在上述时间段外无法游戏,请注\n意休息。\n";
							Sleep(1000);
							exit(0);
						}
					}
					Sleep(3000);
					system("cls");
					cout<<"正在统计....."<<endl;
					Sleep(1000);
					cout<<"玩家1总分数:"<<s1<<endl;
					cout<<"玩家2总分数:"<<s2<<endl;
					if (s1<=21 && s2<=21)
					{
						if (s1>s2)    {
							cout<<"【"<<name1<<"】"<<"is the winner!!!";
							cout<<"\n按a重来";
							int chch = _getch();
							if (chch==97) goto start;
						}
						if (s1==s2)  {
							cout<<"【"<<name1<<"】"<<"and"<<"【"<<name2<<"】"<<"come out even!!!";
							cout<<"\n按a重来";
							int chch = _getch();
							if (chch==97) goto start;
						}  
						if (s1<s2)  {
							cout<<"【"<<name2<<"】"<<"is the winner!!!";
							cout<<"\n按a重来";
							int chch = _getch();
							if (chch==97) goto start;
						}  
					}
					if(s1>21 && s2>21)
					{
						cout<<"两方都超过21分,"<<"【"<<name1<<"】"<<"and"<<"【"<<name2<<"】"<<"come out even!!!";
						cout<<"\n按a重来";
						int chch = _getch();
						if (chch==97) goto start;
					}
					if (s1>21 && s2<=21)	{
						cout<<"【"<<name2<<"】"<<"is the winner!!!";
						cout<<"\n按a重来\n";
						int chch = _getch();
						if (chch==97) goto start;
					}
					if (s2>21 && s1<=21)	{
						cout<<"【"<<name1<<"】"<<"is the winner!!!";
						cout<<"\n按a重来";
						int chch = _getch();
						if (chch==97) goto start;
					}
					}
		}
		if (huoqu()==0)
		{
			cout<<"\n腾讯成长守护提醒您:\n根据国家防沉迷通知的相关要求和腾讯最新强化的防沉迷策略,由于您是未成年玩家,仅能在\n周五、周六、和法定节假日每日20时至21时登录游戏,在上述时间段外无法游戏,请注\n意休息。\n";
			Sleep(3000);
			exit(0);
		}
	}
	if (sfz()==1)
	{
		start1:
			cout<<"        21点"<<endl;
			cout<<"----------------------"<<endl;
			cout<<"		 输入1开始"<<endl;
			int n;
			cin>>n;
			if (n==1)
			{
				system("cls");
				cout<<"开始"<<endl;
				//输入昵称 
				string name1,name2;
				cout<<"请输入玩家1昵称"<<endl;
				cin>>name1;
				cout<<"请输入玩家2昵称"<<endl;
				cin>>name2;
				/**/
				string op1,op2;
				int n1=0,n2=0;
				int s1=0,s2=0;
				//玩家1 
				cout<<"请玩家1拿牌"<<endl;
				while (true)
				{
					cout<<"是否继续拿?(y/n)"<<endl;
					cin>>op1;
					if (op1=="y")
					{
						srand(time(NULL));
						s1 += (rand()%(7-1+1)+1);
						cout<<"你的牌一共有"<<s1<<endl; 
						n1++;
					}
					else if (op1=="n")
					{
						cout<<"你一共拿了"<<n1<<"张牌";
						break;
					}
					else
					{
						cout<<"请不要乱输!"; 
					}
				}
				Sleep(3000);
				system("cls");
				//玩家2 
				cout<<"请玩家2拿牌"<<endl;
				while (true)
				{
					cout<<"是否继续拿?(y/n)"<<endl;
					cin>>op2;
					if (op2=="y")
					{
						srand(time(NULL));
						s2 += (rand()%(7-1+1)+1);
						cout<<"你的牌一共有"<<s2<<endl;
						n2++;
					}
					else if (op1=="n")
					{
						cout<<"你一共拿了"<<n2<<"张牌";
						break;
					}
					else
					{
						cout<<"请不要乱输!"; 
					}
				}
				Sleep(3000);
				system("cls");
				cout<<"正在统计....."<<endl;
				Sleep(1000);
				cout<<"玩家1总分数:"<<s1<<endl;
				cout<<"玩家2总分数:"<<s2<<endl;
				if (s1<=21 && s2<=21)
				{
					if (s1>s2) {
						cout<<"【"<<name1<<"】"<<"is the winner!!!";
						cout<<"\n按a重来\n";
						int chch = _getch();
						if (chch==97) goto start1;
					}   
					if (s1==s2){
						cout<<"【"<<name1<<"】"<<"and"<<"【"<<name2<<"】"<<"come out even!!!";
						cout<<"\n按a重来\n";
						int chch = _getch();
						if (chch==97) goto start1;
					}    
					if (s1<s2){
						cout<<"【"<<name2<<"】"<<"is the winner!!!";
						cout<<"\n按a重来\n";
						int chch = _getch();
						if (chch==97) goto start1;
					}   
				}
				if(s1>21 && s2>21)
				{
					cout<<"两方都超过21分,"<<"【"<<name1<<"】"<<"and"<<"【"<<name2<<"】"<<"come out even!!!";
					cout<<"\n按a重来\n";
					int chch = _getch();
					if (chch==97) goto start1;
				}
				if (s1>21 && s2<=21)	{
					cout<<"【"<<name2<<"】"<<"is the winner!!!";
					cout<<"\n按a重来\n";
					int chch = _getch();
					if (chch==97) goto start1;
				}
				if (s2>21 && s1<=21)	{
					cout<<"【"<<name1<<"】"<<"is the winner!!!";
					cout<<"\n按a重来\n";
					int chch = _getch();
					if (chch==97) goto start1;
				}
			}
	}
	return 0;
 } 

There are surprises below!

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETkBZUl9U,size_20,color_FFFFFF,t_70,g_se,x_16

Prize quiz: Finally, guess what game this is, leave a message in the comment area

Guess you like

Origin blog.csdn.net/m0_64036070/article/details/122767771