Server host address obtaining method and device, computer equipment and storage medium

By automatically collecting and analyzing the startup, registering and logging in to network data packets of applications, identifying page types and obtaining network intersection data, the problems of low efficiency and limited accuracy in traditional technology are solved, and efficient and accurate server host address recognition is achieved. .

CN119030757APending Publication Date: 2024-11-26GUANGZHOU GONETT NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411058969.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The network behavior analysis technology of traditional applications relies on manual operations, is inefficient and cannot be automated, resulting in low analysis efficiency and limited accuracy, and the server host address cannot be accurately identified.

Method used

By starting the application, collecting startup, registering and logging in to network data packets, identifying page types and performing corresponding operations, obtaining network intersection data to determine the server host address, and implementing automated analysis.

Benefits of technology

It improves the accuracy and efficiency of server host address recognition, reduces manual intervention, and achieves efficient and accurate analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030757A_ABST
    Figure CN119030757A_ABST
Patent Text Reader

Abstract

The invention relates to a server host address obtaining method and device of an application program, computer equipment and a storage medium. The method comprises the steps that a starting network data packet of the application program is collected; identifying whether a starting page of the application program is a registration page or a login page; if not, executing page jumping operation on the application program, collecting a registration network data packet after each registration operation when jumping to a registration page, and collecting a login network data packet after each login operation when jumping to a login page; if the page is the registration page, collecting a registration network data packet after each registration operation, and if the page is the login page, collecting a login network data packet after each login operation; and determining the address of the server host through network intersection data of the starting network data packet, the registration network data packet and the login network data packet. According to the method, the server address of the application program can be efficiently and accurately analyzed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, computer equipment and storage medium for obtaining a server host address of an application. Background Art

[0002] Traditional application network behavior analysis technology mainly relies on manual operation and analysis, which has the following limitations:

[0003] 1. Inefficient and non-automatable: It requires manual operation and operation of the application, as well as monitoring and capturing of network data packets. The analysis process is cumbersome and difficult to automate.

[0004] 2. Low analysis efficiency: Analyzing all network data packets based on personal experience has the problem of low analysis efficiency, and may even fail to accurately analyze the network behavior of the application.

[0005] 3. Limited analysis accuracy: Due to the limitations of manual analysis capabilities, it may not be possible to fully and accurately identify the server host of the application.

[0006] Therefore, traditional application network behavior analysis technology cannot efficiently and accurately analyze the server address of the application. Summary of the invention

[0007] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for obtaining the server host address of an application program in order to address the above technical problems, so as to efficiently and accurately analyze the server address of the application program.

[0008] A method for acquiring the server host address of an application comprises: starting the application and collecting a startup network data packet of the application, the startup network data packet comprising a startup data packet sent to a server and a network data packet of a server host responding to the startup operation, and displaying the startup page of the application after the application is started; identifying whether the startup page of the application is a registration page or a login page; if not, performing a page jump operation on the application, and when the page jumps to the registration page, performing a registration operation through different account information and collecting a registration network data packet after each registration operation, the registration network data packet comprising a registration data packet sent to a server and a network data packet of a server host responding to the registration operation, and when the page jumps to the login page, performing a login operation through different account information and collecting a login network data packet after each login operation, the login network data packet comprising a login data packet sent to a server and a network data packet of a server host responding to the login operation; if it is a registration page, performing a registration operation through different account information and collecting a registration network data packet after each registration operation, and if it is a login page, performing a login operation through different account information and collecting a login network data packet after each login operation; obtaining network intersection data of the startup network data packet, the registration network data packet and the login network data packet, and determining the address of the server host through the network intersection data.

[0009] In one embodiment, collecting startup network data packets of an application includes: identifying whether a page closest to the startup time point of the application contains a non-blank image or animation, or whether the web page style loaded by the web page view fills the screen; if so, determining that the closest page is the startup page of the application; collecting network data packets between the startup time point and the time point when the startup page is displayed, and using the collected network data packets as startup network data packets.

[0010] In one embodiment, identifying whether the startup page of an application is a registration page or a login page includes: identifying whether the startup page of the application contains a registration button; if so, determining that the startup page is a registration page when identifying that the startup page contains characteristic elements of a registration page; if not, determining that the startup page is a non-registration page containing a registration button; and / or, identifying whether the startup page of the application contains a login button; if so, determining that the startup page is a login page when identifying that the startup page contains characteristic elements of a login page; if not, determining that the startup page is a non-login page containing a login button.

[0011] In one of the embodiments, a page jump operation is performed on an application, including: identifying each page of the application and each page to be jumped based on multiple page features collected in advance; if the identified page has a dialog box that hinders the continued execution of the application, identifying the type of the dialog box, and performing corresponding node operations on the dialog box based on the type of the dialog box to remove the hindering factor; identifying and triggering the jump button of each page to make the application jump to the next page.

[0012] In one of the embodiments, a corresponding node operation is performed on the dialog box based on the type of the dialog box, including: if the type of the dialog box is a protocol reading type or a message notification type, a clickable button for confirmation is identified, and a node operation of clicking is performed on the clickable button for confirmation; if the type of the dialog box is a permission type, a clickable button for approval is identified, and a node operation of clicking is performed on the clickable button for approval.

[0013] In one of the embodiments, a page jump operation is performed on an application, including: when the startup page is the main page of the application, randomly clicking on each clickable element in the main page, and collecting page response information of the application after clicking on each clickable element; when it is identified that the page response information corresponding to the first clickable element includes response information that the page jumps to a registration page, marking the first clickable element as a registration element, so that when the page jumps to the main page, the registration element can be clicked to jump to the registration page; when it is identified that the page response information corresponding to the second clickable element includes response information that the page jumps to a login page, marking the second clickable element as a login element, so that when the page jumps to the main page, the login element can be clicked to jump to the login page; marking non-registration elements and clickable elements of non-login elements with identification information that no longer attempts to click, so that when the page jumps to the main page, the non-registration elements and clickable elements of non-login elements are no longer clicked.

[0014] In one embodiment, there are multiple registration network data packets and multiple login network data packets, and a method for obtaining the server host address of an application further includes: filtering out a first data segment with the same characteristics from multiple registration network data packets based on different account information; filtering out a second data segment with the same characteristics from multiple login network data packets based on different account information; determining the address of the server host through network intersection data, including: if the first data segment is the same as the second data segment, determining the address of the server host according to the second data segment; if the first data segment is different from the second data segment, comparing the first data segment with the startup network data packet, and if the startup network data packet contains the first data segment, then The address of the server host is determined based on the first data segment. If the startup network data packet does not contain the first data segment, the second data segment is compared with the startup network data packet. If the startup network data packet contains the second data segment, the address of the server host is determined based on the second data segment; or, if the first data segment is different from the second data segment, the second data segment is compared with the startup network data packet. If the startup network data packet contains the second data segment, the address of the server host is determined based on the second data segment. If the startup network data packet does not contain the second data segment, the first data segment is compared with the startup network data packet. If the startup network data packet contains the first data segment, the address of the server host is determined based on the first data segment.

[0015] A device for acquiring a server host address of an application comprises: a startup module, which is used to start the application and collect startup network data packets of the application, the startup network data packets include the startup data packets sent to the server and the network data packets of the server host in response to the startup operation, and the startup page of the application is displayed after the application is started; an identification module, which is used to identify whether the startup page of the application is a registration page or a login page; a first acquisition module, which is used to perform a page jump operation on the application if not, and when the page jumps to the registration page, perform a registration operation through different account information and collect registration network data packets after each registration operation, the registration network data packets include the registration data packets sent to the server and the network data packets of the server host in response to the registration operation The network data packets for registration operation are collected by the server host through different account information when the page jumps to the login page, and the login network data packets after each login operation are collected. The login network data packets include the login data packets sent to the server and the network data packets of the server host in response to the login operation; the second collection module is used to, if it is a registration page, perform the registration operation through different account information and collect the registration network data packets after each registration operation; if it is a login page, perform the login operation through different account information and collect the login network data packets after each login operation; the determination module is used to obtain the network intersection data of the startup network data packet, the registration network data packet and the login network data packet, and determine the address of the server host through the network intersection data.

[0016] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of any of the above-mentioned embodiments are implemented.

[0017] A computer-readable storage medium stores a computer program, which implements the steps of any of the above-mentioned method embodiments when the computer program is executed by a processor.

[0018] The above-mentioned method, device, computer equipment and storage medium for obtaining the server host address of an application program start the target application program and collect the startup network data packet of the target application program, after the target application program is started, the startup page of the target application program is displayed; whether the startup page of the target application program is a registration page or a login page is identified; if not, a page jump operation is performed on the target application program, and when the page jumps to the registration page, a registration operation is performed through different account information and the registration network data packet after each registration operation is collected, when the page jumps to the login page, a login operation is performed through different account information and the login network data packet after each login operation is collected; if it is a registration page, a registration operation is performed through different account information and the registration network data packet after each registration operation is collected, if it is a login page, a login operation is performed through different account information and the login network data packet after each login operation is collected; the network intersection data of the startup network data packet, the registration network data packet and the login network data packet is obtained, and the address of the server host program is determined through the network intersection data. Therefore, the server host address of the application program can be extracted by automatically analyzing the startup network data packet, the registration network data packet and the login network data packet, without the need for manual analysis, thereby improving the accuracy and efficiency of the recognition of the server host address. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 An application environment diagram of a method for obtaining a server host address of an application program in one embodiment;

[0020] Figure 2 A schematic diagram of a flow chart of a method for obtaining a server host address of an application program in one embodiment;

[0021] Figure 3 A structural block diagram of a device for obtaining a server host address of an application program in one embodiment;

[0022] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0024] The present application provides a method for obtaining the server host address of an application program, which is applied to Figure 1 In the application environment shown. Figure 1 As shown, the network behavior analysis device 100 is used to perform a method for obtaining the server host address of an application of the present application. Specifically, the network behavior analysis device 100 starts the application. After the application is started, it interacts with the server host 200 to identify network information, and the network behavior analysis device 100 collects the startup network data packet. At the same time, after the application is started, the startup page of the application is displayed. The network behavior analysis device 100 identifies whether the startup page of the application is a registration page or a login page; if not, the application is jumped to the page, and when the page jumps to the registration page, the registration operation is performed through different account information and the registration network data packet after each registration operation is collected; when the page jumps to the login page, the login operation is performed through different account information and the login network data packet after each login operation is collected; if it is a registration page, the registration operation is performed through different account information and the registration network data packet after each registration operation is collected; if it is a login page, the login operation is performed through different account information and the login network data packet after each login operation is collected. Then, the network intersection data of the startup network data packet, the registration network data packet and the login network data packet are obtained, and the address of the server host 200 is determined by the network intersection data. Therefore, the server host address of the application is automatically obtained.

[0025] In one embodiment, Figure 2 As shown, a method for obtaining the server host address of an application is provided, and the method is applied to Figure 1 The network behavior analysis device 100 in FIG. 1 is used as an example to illustrate the method, which includes the following steps:

[0026] S202, start the application and collect the startup network data packets of the application, the startup network data packets include the startup data packets sent to the server and the network data packets of the server host responding to the startup operation, and the startup page of the application is displayed after the application is started.

[0027] In one embodiment, before the above-mentioned step of starting the target application, it also includes: obtaining one or more installed application package names in the current installation list and one or more installed application package names in the last installation list, and the applications corresponding to each application package name in the last installation list have all confirmed the address of the server host; comparing the application package names in the current installation list and the last installation list, identifying the application package name included in the current installation list but not included in the last installation list, and determining the application to be started by using the application package name.

[0028] Specifically, start the network monitoring of the network behavior analysis device 100 and use netstat to capture network data packets. The network behavior analysis device 100 uses the adb install apk path to install the APK package of the application and the APK package of the automatic click tool. Use adb shell am start-n apk package name / apk package name.activity name to start the APK package of the automatic click tool.

[0029] After the APK package of the automatic click tool is started, the application package name that needs to be started is identified according to the changes in the installation list. Among them, the installation list records the application package name of each server host that needs to be analyzed. By comparing and analyzing the application package name in the current installation list and the application package name in the previous installation list, the newly added application package name can be obtained, that is, the application that needs to be started is determined. For example, in the original state, the simulator of the network behavior analysis device 100 has only 3 installed application package names, A, B, and C. When it is found that there are 4 application package names, A, B, C, and D in the current installation list, D is the application to be started.

[0030] When the application is started, the application tries to communicate with its server host and collects the startup network data packets fed back by the server host. In addition, after the application is started, the application startup page is displayed in the simulator. Generally, the application startup page is the main page, registration page, or login page.

[0031] In one embodiment, the above-mentioned collection of startup network data packets of the application includes: identifying whether the page closest to the startup time point of the application contains a non-blank picture or animation, or whether the web page style loaded by the web view is full of the screen; if so, determining that the closest page is the startup page of the application; collecting network data packets between the startup time point and the time point when the startup page is displayed, and using the collected network data packets as the startup network data packets.

[0032] In this embodiment, the current page contains a non-blank picture or animation, or the web page style loaded by WebView fills the entire screen, and the page closest to the startup time of the application is determined to be the startup page. Record the start time and end time of the page change of the startup page, and record the network data packets during this period. Specifically, the monitoring system log records the startup behavior of the application, and obtains the start time and end time of the startup behavior. Collect the network data flow of the content during this period, and after multiple collections, form multiple groups of startup network data packets. Such as [startup data packet 1, startup data packet 2, startup data packet 3...].

[0033] S204, identifying whether the startup page of the application is a registration page or a login page.

[0034] In this embodiment, both the registration page and the login page include their corresponding page features. For example, the registration page includes the page feature of the registration element, and the login page includes the page feature of the login element. The page features can be used to identify whether the startup page is a registration page or a login page.

[0035] In one embodiment, the above-mentioned identification of whether the startup page of the application is a registration page or a login page includes: identifying whether the startup page of the application contains a registration button; if so, determining that the startup page is a registration page when identifying that the startup page contains characteristic elements of the registration page; if not, determining that the startup page is a non-registration page containing a registration button; and / or, identifying whether the startup page of the application contains a login button; if so, determining that the startup page is a login page when identifying that the startup page contains characteristic elements of the login page; if not, determining that the startup page is a non-login page containing a login button.

[0036] Specifically, identify whether the startup page contains a page element of a clickable registration button. If so, the current page may be a registration page or a page containing a button to enter the registration. Therefore, further identify whether the current page has other features of the registration page. If it contains two or more characteristic elements of the registration page, the current startup page is determined to be a registration page. For example, whether it contains characteristic elements of the registration page such as "account", "password", "invitation code", and 2 or more pairings are required. For example, "account" + "password", or "mobile phone" + "password". For example, the current page contains a clickable "register" button, has "account", "account", "mobile phone", "user name", "phone", "password" tags, or contains "invitation code", "verification code" tags, and is determined to be a registration page.

[0037] Specifically, the current page is composed of various page elements. If a page element returns clickable information and its name is "Login", it is considered to be a "Login" button. If it contains characteristic elements of two or more login pages, the current startup page is determined to be the login page. For example, conventional situations also require "account" characteristic elements and "password" characteristic elements. Some special logins require characteristic elements such as "account", "password", "verification code" or "invitation code". For example, the current page contains a clickable "Login" button, with "Account", "Account", "Mobile Phone", "User Name", "Phone", "Password" labels, and 2-3 edit boxes can be entered, it is determined to be a login page.

[0038] S206, if not, execute a page jump operation on the application, and when the page jumps to the registration page, perform the registration operation through different account information and collect the registration network data packets after each registration operation, the registration network data packets include the registration data packets sent to the server and the network data packets of the server host responding to the registration operation, when the page jumps to the login page, perform the login operation through different account information and collect the login network data packets after each login operation, the login network data packets include the login data packets sent to the server and the network data packets of the server host responding to the login operation.

[0039] In this embodiment, if the startup page is neither the registration page nor the login page, an automatic page jump operation is performed until the page jumped to is the registration page or the login page. When jumping to the registration page, the registration operation is performed through different account information. Different account information includes a pre-set mobile phone number. For example, a random mobile phone number 13XXXXXXXXX. Among them, the letter at the beginning contains 6 digits of the random account number, and the letter at the beginning contains 8 digits of the random account number. After performing the registration operation multiple times using different account information, the registration network data packet fed back by the server host during each registration operation can be collected to obtain multiple registration network data packets.

[0040] When jumping to the login page, the login operation is performed through different account information. Different account information includes a pre-set mobile phone number and password. The password is: a random 6-digit number of pure numbers, a random 8-digit number of pure numbers, a random 6-digit number containing letters and numbers, a random 8-digit number containing letters and numbers, a random 6-digit number containing alphanumeric special characters, and a random 8-digit number containing alphanumeric special characters. After performing the login operation multiple times using different account information, the login network data packet fed back by the server host during each login operation can be collected to obtain multiple login network data packets.

[0041] In one embodiment, the above-mentioned page jump operation on the application includes: identifying each page of the application and each page to be jumped based on multiple page features collected in advance; if the identified page has a dialog box that hinders the continued execution of the application, identifying the type of the dialog box, and performing corresponding node operations on the dialog box based on the type of the dialog box to remove the hindering factor; identifying and triggering the jump button of each page to make the application jump to the next page.

[0042] In one example, the above-mentioned corresponding node operation is performed on the dialog box based on the type of the dialog box, including: if the type of the dialog box is a protocol reading type or a message notification type, a clickable button for confirmation is identified, and a node operation of clicking is performed on the clickable button for confirmation; if the type of the dialog box is a permission type, a clickable button for approval is identified, and a node operation of clicking is performed on the clickable button for approval.

[0043] In this embodiment, the automatic clicking tool automatically clicks to skip system dialog boxes that block the application from continuing to run, such as home screen selection and permission authorization. For example, the permission application is automatically agreed to, and the page element of the pop-up dialog box contains the prompt information "xxx needs to apply for xxx permissions", and there is a clickable button "Agree". The permission system prompts have a roughly unified style of this type. Only these page features need to be collected to complete automatic identification and automatic clicking. In addition, the application will apply for permissions when it is run for the first time, and a dialog box for the system to apply for permissions will pop up. In addition, the application may also pop up some notice-type dialog boxes every time it runs. These pop-up boxes will block the application from continuing to execute automatically. By automatically clicking the button that can enter the main page, key pages, such as the login page, can be further discovered.

[0044] Specifically, when the application is started, a dialog box for reading the agreement pops up, and after reading, a clickable button of "Agree and Continue" is clicked. For other dialog boxes such as message notifications, after reading, a clickable button of "OK" or "Close" is clicked. Therefore, the obstacles to the continued execution of the application can be eliminated, and page jumps can be achieved.

[0045] In one embodiment, the above-mentioned page jump operation for the application includes: when the startup page is the main page of the application, randomly clicking on each clickable element in the main page, and collecting page response information of the application after clicking on each clickable element; when it is identified that the page response information corresponding to the first clickable element includes response information of the page jumping to the registration page, marking the first clickable element as a registration element, so that when the page jumps to the main page, the registration element can be clicked to jump to the registration page; when it is identified that the page response information corresponding to the second clickable element includes response information of the page jumping to the login page, marking the second clickable element as a login element, so that when the page jumps to the main page, the login element can be clicked to jump to the login page; marking non-registration elements and clickable elements of non-login elements with identification information that no longer attempts to click, so that when the page jumps to the main page, the non-registration elements and clickable elements of non-login elements are no longer clicked.

[0046] Specifically, when a toolbar is included at the bottom of the startup page and the toolbar has keyword buttons such as "Home", "My", and "Discover", the startup page is determined to be the main page. After the user enters the main page as an unregistered user, he needs to click on various functions on the main page to trigger the registration page or the login page. For the main page, randomly click on the clickable elements on the page, and based on the page response information after the click, determine whether the clickable element is a registration element or a login element. If not, record the non-registration elements and non-login elements and mark them not to try to click them next time. If so, directly click on the registration element or login element next time to try to trigger the "registration" page or the "login" page.

[0047] S208, if it is a registration page, the registration operation is performed through different account information and the registration network data packet after each registration operation is collected; if it is a login page, the login operation is performed through different account information and the login network data packet after each login operation is collected.

[0048] In this embodiment, if the startup page is a registration page, the registration operation mentioned in step S206 is performed and the registration network data packet after each registration operation is collected. If the startup page is a login page, the login operation mentioned in step S206 is performed and the login network data packet after each login operation is collected.

[0049] S210, obtaining network intersection data of a startup network data packet, a registration network data packet, and a login network data packet, and determining the address of the server host through the network intersection data.

[0050] In this embodiment, the startup network data packet, the registration network data packet and the login network data packet are compared and analyzed to determine the network data with intersections, and then the address of the server host of the application is determined based on the network data with intersections.

[0051] The above-mentioned method for obtaining the server host address of an application program includes starting the target application program and collecting the startup network data packet of the target application program, and displaying the startup page of the target application program after the target application program is started; identifying whether the startup page of the target application program is a registration page or a login page; if not, performing a page jump operation on the target application program, and when the page jumps to the registration page, performing a registration operation through different account information and collecting the registration network data packet after each registration operation, and when the page jumps to the login page, performing a login operation through different account information and collecting the login network data packet after each login operation; if it is a registration page, performing a registration operation through different account information and collecting the registration network data packet after each registration operation, and if it is a login page, performing a login operation through different account information and collecting the login network data packet after each login operation; obtaining the network intersection data of the startup network data packet, the registration network data packet and the login network data packet, and determining the address of the server host program through the network intersection data. Therefore, the server host address of the application program can be extracted by automatically analyzing the startup network data packet, the registration network data packet and the login network data packet, without the need for manual analysis, thereby improving the accuracy and efficiency of identifying the server host address.

[0052] In one embodiment, there are multiple registration network data packets and multiple login network data packets. Before the above step S210, it also includes: based on different account information, a first data segment with the same characteristics is screened out from multiple registration network data packets; based on different account information, a second data segment with the same characteristics is screened out from multiple login network data packets; in the above step S210, the address of the server host is determined through the network intersection data, including: if the first data segment is the same as the second data segment, the address of the server host is determined according to the second data segment; if the first data segment is different from the second data segment, the first data segment is compared with the startup network data packet, and if the startup network data packet contains the first data segment, the server host is determined according to the first data segment. If the startup network data packet does not contain the first data segment, the second data segment is compared with the startup network data packet. If the startup network data packet contains the second data segment, the address of the server host is determined according to the second data segment; or, if the first data segment is different from the second data segment, the second data segment is compared with the startup network data packet. If the startup network data packet contains the second data segment, the address of the server host is determined according to the second data segment. If the startup network data packet does not contain the second data segment, the first data segment is compared with the startup network data packet. If the startup network data packet contains the first data segment, the address of the server host is determined according to the first data segment.

[0053] Specifically, when performing registration and login operations, try to register and log in using the following 18 combinations of account + password with different account information:

[0054] (1) Random mobile phone number 13XXXXXXXXX, which includes 6 digits of random account number at the beginning of letters and 8 digits of random account number at the beginning of letters.

[0055] (2) A pure numeric random password of 6 digits, a pure numeric random password of 8 digits, a pure alphanumeric random password of 6 digits, a pure alphanu ....

[0056] Through the above method, the monitoring system log records the registration behavior and obtains the start time and end time of the registration behavior. The network data flow corresponding to the time period is recorded, and after multiple acquisitions, a group of registration network data packets is formed. For example, [Registration Data Packet 1, Registration Data Packet 2, Registration Data Packet 3...]. The monitoring system log records the login behavior and obtains the start time and end time of the login behavior. The network data flow corresponding to the time period is recorded, and after multiple acquisitions, a group of login network data packets is formed. For example, [Login Data Packet 1, Login Data Packet 2, Login Data Packet 3...].

[0057] The purpose of trying to register and log in with different account information is to capture network messages and analyze them to find similarities and differences. For example, if you log in by sending {user:abc,pwd:123} to https: / / abc.xyz / login and log in 10 times, the feature https: / / abc.xyyz / login will not change. {user:xxx,pwd:xxx} here changes according to the account information. Analyzing these similarities and differences can better determine that this is a network login behavior. Therefore, through multiple registration operations and using different account information to register each time, the first data segment with the same feature can be screened out, and the address information of the server host of the application during the registration process can be accurately identified. Through multiple login operations and using different account information to log in each time, the second data segment with the same feature can be screened out, and the address information of the server host of the application during the login process can be accurately identified.

[0058] Among them, if the login network data packet and the registration network data packet both contain the same data segment, the address of the server host is identified based on the same data segment. It can also be that the login network data packet, the registration network data packet and the startup network data packet all contain the same data segment, and the address of the server host is identified based on the same data segment. At this time, the address of the identified server host is more accurate. Specifically, the address information of the remote server host after deduplication in the startup time period, the address information of the remote server host after deduplication in the registration time period, and the address information of the remote server host after deduplication in the login time period are obtained. Calculate the intersection of the three to obtain the address of the remote server host. For example, the network data packet at login is https: / / abc.xyz / login, the network data packet at registration is https: / / abc.xyz / register, and there is no network data packet at startup, then abc.xyz is the address of the server host of the application. If the network data packet at startup is https: / / abc.xyz / logo, the three are consistent, and the accuracy is higher at this time.

[0059] If the login network data packet and the registration network data packet do not contain the same data segment, it is possible that the registration operation failed, resulting in the failure to collect the registration network data packet, or the login operation failed, resulting in the failure to collect the login network data packet. At this time, the registration network data packet can be compared with the startup network data packet. If the same data segment exists, it means that the registration operation successfully collected the address of the server host. At this time, the address of the server host can be identified based on the same data segment. If there is no identical data segment, it means that the registration operation failed to collect the address of the server host. At this time, the login network data packet is compared with the startup network data packet. If the same data segment exists, it means that the login operation successfully collected the address of the server host. At this time, the address of the server host can be identified based on the same data segment. Alternatively, the login network data packet is first compared with the startup network data packet. When there is no identical data segment between the two, the registration network data packet is then compared and analyzed with the startup network data packet. Therefore, in the scenario where the registration operation fails or the login operation fails, the address of the server host can be obtained by using the startup network data packet.

[0060] The present application discloses a method for obtaining the server host address of an application program, which automatically analyzes the server host address based on the interaction between the application program and its server host. The method can effectively overcome the problems of manual operation, inefficiency and limited analysis accuracy in traditional technologies, and provides a more automated, efficient and accurate solution for analyzing the server host address of the application program. The technical solution of the method is as follows:

[0061] 1. Implement application automation and click tools, support identification of application homepage, registration and login pages, support input of at least 18 types of account information to simulate click registration and login actions, support retry of registration and login actions after random delay, support notification of host simulation click time and page response time after click.

[0062] 2. Simulate registration and login behaviors multiple times by automatically running and clicking on the application.

[0063] 3. Through the click time and post-click page response time returned by the automatic click tool, filter out network data packets in multiple time periods of application registration and login.

[0064] 4. Evaluate the calculation accuracy by calculating the intersection and registration and login features.

[0065] 5. Through multiple attempts, common feature analysis is performed to determine the server host of the application. The method for obtaining the server host address of an application in this application has the following advantages:

[0066] 1. Automation: Use automation tools to minimize manual intervention and improve analysis efficiency and consistency.

[0067] 2. Efficiency: Improve analysis speed and accuracy by optimizing automatic click scripts and network analysis algorithms.

[0068] 3. Accurate: By analyzing the captured network traffic data, it automatically identifies the data packets communicating with the server, extracts the server host address, and improves the analysis accuracy.

[0069] It should be understood that, although the steps in the flowchart are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0070] The present application also provides a device for obtaining the server host address of an application. Figure 3As shown, a device for acquiring the server host address of an application includes a startup module 302, an identification module 304, a first acquisition module 306, a second acquisition module 308, and a determination module 310. The startup module 302 is used to start the application and collect the startup network data packet of the application. The startup network data packet includes the startup data packet sent to the server and the network data packet of the server host responding to the startup operation. After the application is started, the startup page of the application is displayed; the identification module 304 is used to identify whether the startup page of the application is a registration page or a login page; the first acquisition module 306 is used to perform a page jump operation on the application if not, and when the page jumps to the registration page, perform the registration operation through different account information and collect the registration network data packet after each registration operation. The registration network data packet includes the registration data packet sent to the server and the network data packet of the server host responding to the registration operation When the page jumps to the login page, the login operation is performed through different account information and the login network data packet after each login operation is collected. The login network data packet includes the login data packet sent to the server and the network data packet of the server host in response to the login operation; the second collection module 308 is used to perform the registration operation through different account information and collect the registration network data packet after each registration operation if it is a registration page, and perform the login operation through different account information and collect the login network data packet after each login operation if it is a login page; the determination module 310 is used to obtain the network intersection data of the startup network data packet, the registration network data packet and the login network data packet, and determine the address of the server host through the network intersection data.

[0071] In one embodiment, collecting startup network data packets of an application includes: identifying whether a page closest to the startup time point of the application contains a non-blank image or animation, or whether the web page style loaded by the web page view fills the screen; if so, determining that the closest page is the startup page of the application; collecting network data packets between the startup time point and the time point when the startup page is displayed, and using the collected network data packets as startup network data packets.

[0072] In one embodiment, identifying whether the startup page of an application is a registration page or a login page includes: identifying whether the startup page of the application contains a registration button; if so, determining that the startup page is a registration page when identifying that the startup page contains characteristic elements of a registration page; if not, determining that the startup page is a non-registration page containing a registration button; and / or, identifying whether the startup page of the application contains a login button; if so, determining that the startup page is a login page when identifying that the startup page contains characteristic elements of a login page; if not, determining that the startup page is a non-login page containing a login button.

[0073] In one of the embodiments, a page jump operation is performed on an application, including: identifying each page of the application and each page to be jumped based on multiple page features collected in advance; if the identified page has a dialog box that hinders the continued execution of the application, identifying the type of the dialog box, and performing corresponding node operations on the dialog box based on the type of the dialog box to remove the hindering factor; identifying and triggering the jump button of each page to make the application jump to the next page.

[0074] In one of the embodiments, a corresponding node operation is performed on the dialog box based on the type of the dialog box, including: if the type of the dialog box is a protocol reading type or a message notification type, a clickable button for confirmation is identified, and a node operation of clicking is performed on the clickable button for confirmation; if the type of the dialog box is a permission type, a clickable button for approval is identified, and a node operation of clicking is performed on the clickable button for approval.

[0075] In one of the embodiments, a page jump operation is performed on an application, including: when the startup page is the main page of the application, randomly clicking on each clickable element in the main page, and collecting page response information of the application after clicking on each clickable element; when it is identified that the page response information corresponding to the first clickable element includes response information that the page jumps to a registration page, marking the first clickable element as a registration element, so that when the page jumps to the main page, the registration element can be clicked to jump to the registration page; when it is identified that the page response information corresponding to the second clickable element includes response information that the page jumps to a login page, marking the second clickable element as a login element, so that when the page jumps to the main page, the login element can be clicked to jump to the login page; marking non-registration elements and clickable elements of non-login elements with identification information that no longer attempts to click, so that when the page jumps to the main page, the non-registration elements and clickable elements of non-login elements are no longer clicked.

[0076] In one embodiment, there are multiple registration network data packets and multiple login network data packets. A device for obtaining the server host address of an application further includes a deduplication module, which is used to filter out first data segments with the same characteristics from multiple registration network data packets based on different account information; filter out second data segments with the same characteristics from multiple login network data packets based on different account information; determine the address of the server host through network intersection data, including: if the first data segment is the same as the second data segment, determine the address of the server host according to the second data segment; if the first data segment is different from the second data segment, compare the first data segment with the startup network data packet, and if the startup network data packet contains the first data segment, determine the address of the server host according to the second data segment. If the startup network data packet contains the first data segment, the address of the server host is determined according to the first data segment. If the startup network data packet does not contain the first data segment, the second data segment is compared with the startup network data packet. If the startup network data packet contains the second data segment, the address of the server host is determined according to the second data segment; or, if the first data segment is different from the second data segment, the second data segment is compared with the startup network data packet. If the startup network data packet contains the second data segment, the address of the server host is determined according to the second data segment. If the startup network data packet does not contain the second data segment, the first data segment is compared with the startup network data packet. If the startup network data packet contains the first data segment, the address of the server host is determined according to the first data segment.

[0077] For the specific definition of a device for obtaining a server host address of an application, please refer to the definition of a method for obtaining a server host address of an application above, which will not be repeated here. Each module in the above-mentioned device for obtaining a server host address of an application can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0078] In one embodiment, a computer device is provided, which may be Figure 1 The network behavior analysis device shown in FIG. 1 may have an internal structure as shown in FIG. Figure 4As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for obtaining the server host address of an application is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the housing of the computer device, or an external keyboard, touchpad or mouse, etc. Those skilled in the art can understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0079] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: starting an application and collecting a startup network data packet of the application, the startup network data packet including a startup data packet sent to the server and a network data packet of the server host in response to the startup operation, and displaying a startup page of the application after the application is started; identifying whether the startup page of the application is a registration page or a login page; if not, performing a page jump operation on the application, and when the page jumps to the registration page, performing a registration operation through different account information and collecting a registration network data packet after each registration operation, and the registration network data packet It includes the registration data packet sent to the server and the network data packet of the server host's response to the registration operation. When the page jumps to the login page, the login operation is performed through different account information and the login network data packet after each login operation is collected. The login network data packet includes the login data packet sent to the server and the network data packet of the server host's response to the login operation; if it is a registration page, the registration operation is performed through different account information and the registration network data packet after each registration operation is collected; if it is a login page, the login operation is performed through different account information and the login network data packet after each login operation is collected; obtain the network intersection data of the startup network data packet, the registration network data packet and the login network data packet, and determine the address of the server host through the network intersection data.

[0080] In one of the embodiments, when the processor executes a computer program to implement the above-mentioned step of collecting the startup network data packets of the application, the following steps are specifically implemented: identifying whether the page closest to the startup time point of the application contains a non-blank picture or animation, or whether the web page style loaded by the web page view is full of the screen; if so, determining that the closest page is the startup page of the application; collecting the network data packets between the startup time point and the time point when the startup page is displayed, and using the collected network data packets as the startup network data packets.

[0081] In one of the embodiments, when the processor executes a computer program to implement the above-mentioned step of identifying whether the startup page of the application is a registration page or a login page, the following steps are specifically implemented: identifying whether the startup page of the application contains a registration button; if so, determining that the startup page is a registration page when identifying that the startup page contains characteristic elements of the registration page; if not, determining that the startup page is a non-registration page containing a registration button; and / or, identifying whether the startup page of the application contains a login button; if so, determining that the startup page is a login page when identifying that the startup page contains characteristic elements of the login page; if not, determining that the startup page is a non-login page containing a login button.

[0082] In one of the embodiments, when the processor executes a computer program to implement the above-mentioned step of performing a page jump operation on an application, the following steps are specifically implemented: based on multiple page features collected in advance, each page of the application and each page to be jumped are identified; if the identified page contains a dialog box that hinders the continued execution of the application, the type of the dialog box is identified, and based on the type of the dialog box, corresponding node operations are performed on the dialog box to remove the hindering factors; the jump button of each page is identified and triggered to make the application jump to the next page.

[0083] In one of the embodiments, when the processor executes a computer program to implement the above-mentioned steps of performing corresponding node operations on the dialog box based on the type of the dialog box, the following steps are specifically implemented: if the type of the dialog box is a protocol reading type or a message notification type, a clickable button for confirmation is identified, and a node operation of clicking is performed on the clickable button for confirmation; if the type of the dialog box is a permission type, a clickable button for approval is identified, and a node operation of clicking is performed on the clickable button for approval.

[0084] In one of the embodiments, when the processor executes a computer program to implement the above-mentioned step of performing a page jump operation on the application, the following steps are specifically implemented: when the startup page is the main page of the application, randomly click on each clickable element in the main page, and collect the page response information of the application after clicking on each clickable element; when it is identified that the page response information corresponding to the first clickable element includes response information of the page jumping to the registration page, the first clickable element is marked as a registration element, so that when the page jumps to the main page, the registration element is clicked to jump to the registration page; when it is identified that the page response information corresponding to the second clickable element includes response information of the page jumping to the login page, the second clickable element is marked as a login element, so that when the page jumps to the main page, the login element is clicked to jump to the login page; non-registration elements and clickable elements of non-login elements are marked with identification information that no longer attempts to click, so that when the page jumps to the main page, the non-registration elements and clickable elements of non-login elements are no longer clicked.

[0085] In one embodiment, there are multiple registration network data packets and multiple login network data packets, and when the processor executes the computer program, the following steps are specifically implemented: based on different account information, a first data segment with the same characteristics is screened out from multiple registration network data packets; based on different account information, a second data segment with the same characteristics is screened out from multiple login network data packets; when the processor executes the computer program to implement the above-mentioned step of determining the address of the server host through network intersection data, the following steps are specifically implemented: if the first data segment is the same as the second data segment, the address of the server host is determined according to the second data segment; if the first data segment is different from the second data segment, the first data segment is compared with the startup network data packet, and if the startup network If the data packet contains the first data segment, the address of the server host is determined based on the first data segment. If the startup network data packet does not contain the first data segment, the second data segment is compared with the startup network data packet. If the startup network data packet contains the second data segment, the address of the server host is determined based on the second data segment. Or, if the first data segment is different from the second data segment, the second data segment is compared with the startup network data packet. If the startup network data packet contains the second data segment, the address of the server host is determined based on the second data segment. If the startup network data packet does not contain the second data segment, the first data segment is compared with the startup network data packet. If the startup network data packet contains the first data segment, the address of the server host is determined based on the first data segment.

[0086] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: starting an application and collecting a startup network data packet of the application, the startup network data packet includes a startup data packet sent to a server and a network data packet of a server host responding to a startup operation, and displaying a startup page of the application after the application is started; identifying whether the startup page of the application is a registration page or a login page; if not, performing a page jump operation on the application, and when the page jumps to the registration page, performing a registration operation through different account information and collecting a registration network data packet after each registration operation, the registration network data packet includes a registration data packet sent to the server and the network data packets of the server host responding to the registration operation. When the page jumps to the login page, the login operation is performed through different account information and the login network data packets fed back by the server host after each login operation are collected. The login network data packets include the login data packets sent to the server and the network data packets of the server host responding to the login operation; if it is a registration page, the registration operation is performed through different account information and the registration network data packets after each registration operation are collected. If it is a login page, the login operation is performed through different account information and the login network data packets after each login operation are collected; the network intersection data of the startup network data packet, the registration network data packet and the login network data packet are obtained, and the address of the server host is determined through the network intersection data.

[0087] In one of the embodiments, when the computer program is executed by the processor to implement the above-mentioned step of collecting the startup network data packets of the application, the following steps are specifically implemented: identifying whether the page closest to the startup time point of the application contains a non-blank picture or animation, or whether the web page style loaded by the web view is full of the screen; if so, determining that the closest page is the startup page of the application; collecting the network data packets between the startup time point and the time point when the startup page is displayed, and using the collected network data packets as the startup network data packets.

[0088] In one of the embodiments, when the computer program is executed by the processor to implement the above-mentioned step of identifying whether the startup page of the application is a registration page or a login page, the following steps are specifically implemented: identifying whether the startup page of the application contains a registration button; if so, determining that the startup page is a registration page when identifying that the startup page contains characteristic elements of the registration page; if not, determining that the startup page is a non-registration page containing a registration button; and / or, identifying whether the startup page of the application contains a login button; if so, determining that the startup page is a login page when identifying that the startup page contains characteristic elements of the login page; if not, determining that the startup page is a non-login page containing a login button.

[0089] In one of the embodiments, when the computer program is executed by the processor to implement the above-mentioned steps of performing a page jump operation on the application, the following steps are specifically implemented: based on multiple page features collected in advance, each page of the application and each page to be jumped are identified; if the identified page contains a dialog box that hinders the continued execution of the application, the type of the dialog box is identified, and based on the type of the dialog box, corresponding node operations are performed on the dialog box to remove the hindering factors; the jump button of each page is identified and triggered to make the application jump to the next page.

[0090] In one of the embodiments, when the computer program is executed by the processor to implement the above-mentioned steps of performing corresponding node operations on the dialog box based on the type of the dialog box, the following steps are specifically implemented: if the type of the dialog box is a protocol reading type or a message notification type, a clickable button for confirmation is identified, and a node operation of clicking is performed on the clickable button for confirmation; if the type of the dialog box is a permission type, a clickable button for approval is identified, and a node operation of clicking is performed on the clickable button for approval.

[0091] In one of the embodiments, when the computer program is executed by the processor to implement the above-mentioned steps of performing a page jump operation on the application, the following steps are specifically implemented: when the startup page is the main page of the application, randomly click on each clickable element in the main page, and collect the page response information of the application after clicking on each clickable element; when it is identified that the page response information corresponding to the first clickable element includes response information of the page jumping to the registration page, the first clickable element is marked as a registration element, so that when the page jumps to the main page, the registration element is clicked to jump to the registration page; when it is identified that the page response information corresponding to the second clickable element includes response information of the page jumping to the login page, the second clickable element is marked as a login element, so that when the page jumps to the main page, the login element is clicked to jump to the login page; non-registration elements and clickable elements of non-login elements are marked with identification information that no longer attempts to click, so that when the page jumps to the main page, the non-registration elements and clickable elements of non-login elements are no longer clicked.

[0092] In one embodiment, there are multiple registration network data packets and multiple login network data packets. When the computer program is executed by the processor, the following steps are specifically implemented: based on different account information, a first data segment with the same characteristics is screened out from multiple registration network data packets; based on different account information, a second data segment with the same characteristics is screened out from multiple login network data packets; when the computer program is executed by the processor to implement the above-mentioned step of determining the address of the server host through network intersection data, the following steps are specifically implemented: if the first data segment is the same as the second data segment, the address of the server host is determined according to the second data segment; if the first data segment is different from the second data segment, the first data segment is compared with the startup network data packet, and if the startup network data packet is different, the first data segment is compared with the startup network data packet. If the network data packet includes the first data segment, the address of the server host is determined according to the first data segment; if the startup network data packet does not include the first data segment, the second data segment is compared with the startup network data packet; if the startup network data packet includes the second data segment, the address of the server host is determined according to the second data segment; or, if the first data segment is different from the second data segment, the second data segment is compared with the startup network data packet; if the startup network data packet includes the second data segment, the address of the server host is determined according to the second data segment; if the startup network data packet does not include the second data segment, the first data segment is compared with the startup network data packet; if the startup network data packet includes the first data segment, the address of the server host is determined according to the first data segment.

[0093] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0094] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0095] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for obtaining a server host address of an application, characterized in that: The method comprises: Starting an application and collecting a startup network data packet of the application, the startup network data packet includes a startup data packet sent to the server and a network data packet of the server host in response to the startup operation, and displaying a startup page of the application after the application is started; Identify whether the startup page of the application is a registration page or a login page; If not, a page jump operation is performed on the application, and when the page jumps to the registration page, a registration operation is performed through different account information and a registration network data packet is collected after each registration operation, wherein the registration network data packet includes a registration data packet sent to the server and a network data packet of the server host responding to the registration operation, and when the page jumps to the login page, a login operation is performed through different account information and a login network data packet is collected after each login operation, wherein the login network data packet includes a login data packet sent to the server and a network data packet of the server host responding to the login operation; If it is a registration page, the registration operation is performed through different account information and the registration network data packet is collected after each registration operation; if it is a login page, the login operation is performed through different account information and the login network data packet is collected after each login operation; The network intersection data of the startup network data packet, the registration network data packet and the login network data packet are obtained, and the address of the server host is determined through the network intersection data.

2. The method according to claim 1, characterized in that The collecting of the startup network data packets of the application program includes: Identify whether the page closest to the startup time point of the application contains a non-blank picture or animation, or whether the web page style loaded by the web page view fills the screen; If so, determining that the closest page is the startup page of the application; The network data packets between the startup time point and the time point of displaying the startup page are collected, and the collected network data packets are used as the startup network data packets.

3. The method according to claim 1, characterized in that The step of identifying whether the startup page of the application is a registration page or a login page includes: Identify whether a registration button is included in the startup page of the application; If so, determining that the startup page is a registration page when identifying that the startup page contains characteristic elements of a registration page; If not, determining that the startup page is a non-registration page including the registration button; and / or, Identify whether the startup page of the application includes a login button; If so, determining that the startup page is a login page when identifying that the startup page contains characteristic elements of the login page; If not, it is determined that the startup page is a non-login page including the login button.

4. The method according to claim 1, characterized in that The performing a page jump operation on the application program includes: Identify each page of the application and each page to be redirected based on multiple page features collected in advance; If the identified page has a dialog box that prevents the application from continuing to execute, identify the type of the dialog box, and perform corresponding node operations on the dialog box based on the type of the dialog box to remove the hindering factor; The jump button of each page is identified and triggered to make the application jump to the next page.

5. The method according to claim 4, characterized in that The performing corresponding node operations on the dialog box based on the type of the dialog box includes: If the type of the dialog box is a protocol reading type or a message notification type, identifying a clickable button for confirmation, and performing a node operation of clicking on the clickable button for confirmation; If the type of the dialog box is a permission type, a clickable button of approval is identified, and a node operation of clicking is performed on the clickable button of approval.

6. The method according to any one of claims 1 to 5, characterized in that The performing a page jump operation on the application program includes: When the startup page is the main page of the application, randomly click on each clickable element in the main page, and collect page response information of the application after clicking on each clickable element; When it is identified that the page response information corresponding to the first clickable element includes response information of the page jumping to the registration page, marking the first clickable element as a registration element, so that when the page jumps to the main page, the user can click the registration element to jump to the registration page; When it is identified that the page response information corresponding to the second clickable element includes response information of the page jumping to the login page, marking the second clickable element as a login element, so that when the page jumps to the main page, the login element is clicked to jump to the login page; The clickable elements of the non-registered elements and the non-login elements are marked with identification information indicating that they will not be clicked again, so that the clickable elements of the non-registered elements and the non-login elements will not be clicked again when the page jumps to the main page.

7. The method according to claim 1, characterized in that The number of the registration network data packets is multiple, the number of the login network data packets is multiple, and the method further includes: Filtering out first data segments having the same characteristics from a plurality of registered network data packets based on the different account information; Filtering out second data segments having the same characteristics from a plurality of login network data packets based on the different account information; Determining the address of the server host through the network intersection data includes: If the first data segment is identical to the second data segment, determining the address of the server host according to the second data segment; If the first data segment is different from the second data segment, the first data segment is compared with the startup network data packet; if the startup network data packet includes the first data segment, the address of the server host is determined according to the first data segment; if the startup network data packet does not include the first data segment, the second data segment is compared with the startup network data packet; if the startup network data packet includes the second data segment, the address of the server host is determined according to the second data segment; or, If the first data segment is different from the second data segment, the second data segment is compared with the startup network data packet. If the startup network data packet contains the second data segment, the address of the server host is determined based on the second data segment. If the startup network data packet does not contain the second data segment, the first data segment is compared with the startup network data packet. If the startup network data packet contains the first data segment, the address of the server host is determined based on the first data segment.

8. A device for obtaining a server host address of an application, characterized in that: The device comprises: A startup module, used to start an application and collect startup network data packets of the application, wherein the startup network data packets include startup data packets sent to the server and network data packets of the server host in response to the startup operation, and display the startup page of the application after the application is started; An identification module, used to identify whether the startup page of the application is a registration page or a login page; a first collection module, for, if not, executing a page jump operation on the application, and when the page jumps to the registration page, executing the registration operation through different account information and collecting the registration network data packet after each registration operation, the registration network data packet includes the registration data packet sent to the server and the network data packet of the server host responding to the registration operation, and when the page jumps to the login page, executing the login operation through different account information and collecting the login network data packet after each login operation, the login network data packet includes the login data packet sent to the server and the network data packet of the server host responding to the login operation; The second collection module is used to perform the registration operation through different account information and collect the registration network data packet after each registration operation if it is a registration page, and to perform the login operation through different account information and collect the login network data packet after each login operation if it is a login page; The determination module is used to obtain network intersection data of the startup network data packet, the registration network data packet and the login network data packet, and determine the address of the server host through the network intersection data.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.