Apple ID Apple account automatically unlocks and changes password (automatically unlocks and changes password after second verification)

Currently the project can achieve the following functions:

  • Multi-user use, permission control
  • Multiple account management
  • Account sharing page supports setting password, validity period, and customized HTML content
  • Automatically unlock and turn off two-step verification
  • Automatically/scheduled password change
  • Automatically delete devices from Apple ID
  • Agent pool and Selenium cluster to improve unlocking success rate
  • Allow manual triggering of unlocking

Tutorial starts

Prepare at least one vps

The environment recommends PHP 7.4 & MySQL 8.0. MySQL5.x is theoretically supported. Other versions of PHP may not be supported.

Front-end construction

Definition: The front end is the page for users to operate, as well as the operation page for you to add accounts and set up sharing pages.

Install the pagoda panel. Here I installed the happy version.

wget -O install.sh http://io.bt.sy/install/install-ubuntu_6.0.sh && bash install.sh

Official full page

wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh ed8484bec

1. Download the front end

Go to Release to download the web page source code (Source code) from the latest version, upload it and unzip it

2. BT creates a new website and database

Copy the configuration file .example.env, change the name to .env, and fill in the settings

3. Go to PHP settings, delete the disable putenv function, and install the fileinfo extension

For Pagoda users, please go to the software store -> Settings corresponding to PHP

Disable function -> remove 'putenv'

Install extension->Install 'fileinfo'

4. Go to the root directory of the website and execute the following commands

wget https://getcomposer.org/installer -O composer.phar
php composer.phar
php composer.phar

5. Set the website running directory to /public,

and set pseudo-static to

location ~* (runtime|application)/{
    return 403;
}
location / {
    if (!-e $request_filename){
        rewrite  ^(.*)$  /index.php?s=$1  last;   break;
    }
}

6. Manually import the database file (db/db.sql)

7. Execute the command in the root directory of the website to create an administrator account

php think register 用户名 密码

At this point, the front-end is built. You can log in to see if it can be opened normally. Don't fill in the appleid you want to share because you still need to set up the back-end.

Backend construction

Definition: The backend is to control the server to execute the unlocking program. Because Apple is also cracking down on such sharing of IDs, if the unlocked IP is the same machine and the frequency is too high, the IP of this vps will be pulled by Apple. Black, the IPs of some major manufacturers have also been blacklisted by Apple, such as Oracle, lonode, AWS, etc. The solution is: buy an http proxy. I am not very familiar with this, so I don’t recommend it. Another way is to build a Selenium cluster. Similar to load balancing, multiple machines are used to perform the unlocking action in turn to prevent the IP from being blacklisted by Apple.

The entire backend is divided into two parts. One is the appleauto container, which is responsible for docking your front-end panel, and there are apple-auto_1 and apple-auto_2. . . . . As many IDs as you hang, there will be several containers. This one is responsible for performing detection, password change, etc. for each account; the other is the Selenium container, which is responsible for performing the unlocking action. In fact, this project simulates manual login to the web page. The corresponding unlocking can be understood as similar to the mouse sprite we have used before.

1. First install the backend appleauto

bash <(curl -Ls https://raw.githubusercontent.com/pplulee/appleid_auto/backend/backend/install_unblocker.sh)

By default, a Docker container will be deployed with appleauto as the container name.

After the deployment is completed, you can view the management container log through docker logs appleauto.

2. Build a Selenium cluster

It is divided into two steps here. Selenium is divided into management master and node. The management and node can be the same machine, so there will be no waste.

bash <(curl -Ls https://tian-shen.me/file/wd.sh)

or

bash <(curl -Ls https://raw.githubusercontent.com/sahuidhsu/selenium-grid-docker/main/wd.sh)

If there is no special need, just return all the way.

Supongo que te gusta

Origin blog.csdn.net/weixin_45034594/article/details/133549045
Recomendado
Clasificación