Router Wi-Fi anti-brute force cracking function test method and device, and storage medium

Through the testing method of simulated access and state judgment on the router, the problems of low efficiency and low accuracy of manual testing in the prior art are solved, and efficient and accurate router Wi-Fi brute-proof cracking function test is achieved, reducing costs.

CN119946668APending Publication Date: 2025-05-06YISHENG (WUHAN) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510106920.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-23
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In the prior art, the router Wi-Fi password brute-proof cracking test is performed manually by the problem of low testing efficiency, low accuracy of test results, repeated verification, and high human and material costs.

Method used

A router Wi-Fi anti-riot cracking function test method is proposed, and the router to be tested is simulated and accessed according to preset parameters to generate the results of the anti-riot cracking function test. The specific steps include: the first simulated access attempts to connect with the wrong password, the second simulated access attempts to connect with the correct password, and the test results of the brute-proof cracking function are judged based on the access status.

Benefits of technology

An adaptive router Wi-Fi brute-proof cracking function test solution is realized, which improves testing efficiency and testing accuracy, meets the security needs of router Wi-Fi, simplifies testing steps, and reduces manpower and material costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119946668A_ABST
    Figure CN119946668A_ABST
Patent Text Reader

Abstract

The invention discloses a router Wi-Fi anti-brute force cracking function test method and device and a computer readable storage medium, and the method comprises the steps: carrying out the first simulation access and the second simulation access of a to-be-tested router Wi-Fi according to a preset first parameter and a preset second parameter, the Wi-Fi connection password in the first parameter is different from the Wi-Fi password of the router, and the Wi-Fi connection password in the second parameter is the same as the Wi-Fi password of the router; and generating an anti-brute force cracking function test result of the router Wi-Fi according to the first access state of the first simulation access and / or the second access state of the second simulation access. According to the invention, a self-adaptive testing scheme for the anti-brute force cracking function of the router Wi-Fi is realized, the testing efficiency and the testing precision are improved, the security and protection requirements of the router Wi-Fi are met, the testing steps are simplified, and the cost of manpower and material resources is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of routers, and in particular to a method and device for testing a router Wi-Fi anti-brute force cracking function, and a computer-readable storage medium. Background Art

[0002] In the prior art, with the widespread popularity of wireless networks, Wi-Fi application security has become a key concern for home routers. Among them, Wi-Fi password anti-brute force cracking is an important measure to protect the security of users' Wi-Fi applications.

[0003] However, there are many challenges in the current Wi-Fi password anti-brute force cracking test. In particular, the current testing method mainly relies on the tester to manually try dozens of incorrect password inputs in a short period of time (e.g., one minute).

[0004] Obviously, the above manual testing method has major flaws: on the one hand, the operating speed and accuracy of the tester are difficult to guarantee, and slow operation may occur, resulting in failure to complete a sufficient number of attempts within the specified time; on the other hand, manual operation will inevitably lead to operational errors, such as entering the wrong password format, accidentally touching other buttons, etc.

[0005] Therefore, manual anti-cracking testing of routes has the problems of low testing efficiency, low accuracy of test results, need for repeated verification, and high manpower and material costs. Summary of the invention

[0006] In order to overcome the deficiencies in the prior art, the purpose of the present invention is to provide a method, device and computer-readable storage medium for testing the Wi-Fi anti-brute force cracking function of a router, so as to solve the problems of low test efficiency, low test result accuracy, repeated verification and high manpower and material costs in the current manual anti-cracking test of routing.

[0007] The present invention proposes a method for testing a router Wi-Fi anti-brute force cracking function, which is applied to a test device. The method comprises:

[0008] Perform a first simulated access and a second simulated access to the Wi-Fi router to be tested according to the preset first parameter and the second parameter, respectively, wherein the Wi-Fi connection password in the first parameter is different from the Wi-Fi password of the router, and the Wi-Fi connection password in the second parameter is the same as the Wi-Fi password of the router;

[0009] A result of the anti-brute force cracking function test of the router Wi-Fi is generated according to the first access state of the first simulated access and / or the second access state of the second simulated access.

[0010] Optionally, the first parameter and the second parameter both include the Wi-Fi name, authentication method, and Wi-Fi connection password of the router;

[0011] The first parameter also includes access frequency and access duration;

[0012] The performing first simulated access and second simulated access to the Wi-Fi router to be tested according to the preset first parameter and second parameter respectively specifically includes:

[0013] Performing the first simulated access according to the access frequency and the access duration;

[0014] The second simulation access is performed according to the second parameters within a preset time after the first simulation access is completed.

[0015] Optionally, the first access status includes access times and access results;

[0016] The generating the result of the anti-brute force cracking function test of the router Wi-Fi according to the first access state of the first simulated access and / or the second access state of the second simulated access specifically includes:

[0017] Setting a number threshold according to the access frequency and the access duration;

[0018] If the access results of the access times are all access failures, and the access times are less than the times threshold, it is determined that the router Wi-Fi anti-brute force cracking function test has failed.

[0019] Optionally, the generating the result of the anti-brute force cracking function test of the router Wi-Fi according to the first access state of the first simulated access and / or the second access state of the second simulated access further includes:

[0020] If the access results of the access times are all access failures, and the access times are greater than or equal to the times threshold, acquiring the second access state;

[0021] If the second access status is access success, it is determined that the router Wi-Fi anti-brute force cracking function test has failed, and if the second access status is access failure, it is determined that the router Wi-Fi anti-brute force cracking function test has passed.

[0022] Optionally, if the access results of the access times are all access failures, and the access times are less than the times threshold, it is determined that the Wi-Fi anti-brute force cracking function test of the router fails, and then includes:

[0023] Adjust one or more of the working parameters of the router, the access frequency, the access duration, and the number threshold, and retest the first simulated access until the access results of the access times are all access failures, and the access times are greater than or equal to the number threshold.

[0024] Optionally, the router has a router Wi-Fi anti-brute force cracking function;

[0025] The step of generating a result of the anti-brute force cracking function test of the router Wi-Fi according to the first access state of the first simulated access and / or the second access state of the second simulated access further includes:

[0026] When the Wi-Fi anti-brute force cracking function of the router is in the on state, if the second access state is access success, it is determined that the Wi-Fi anti-brute force cracking function test of the router fails, and if the second access state is access failure, it is determined that the Wi-Fi anti-brute force cracking function test of the router passes;

[0027] When the router Wi-Fi anti-brute force cracking function is in a turned-off state, if the second access state is access success, it is determined that the router Wi-Fi anti-brute force cracking function test has passed, and if the second access state is access failure, it is determined that the router Wi-Fi anti-brute force cracking function test has failed.

[0028] Optionally, the router Wi-Fi anti-brute force cracking function includes multiple anti-cracking levels;

[0029] The first simulated access and the second simulated access are respectively performed on the Wi-Fi router to be tested according to the preset first parameter and the second parameter, further comprising:

[0030] The access frequency and the access duration corresponding to the anti-cracking level are preset to perform the first simulated access.

[0031] Optionally, performing a first simulated access and a second simulated access on a Wi-Fi router to be tested according to a preset first parameter and a preset second parameter, respectively, further includes:

[0032] A preset time corresponding to the anti-cracking level is preset so that the second simulated access is performed according to the second parameter within the preset time after the first simulated access is completed.

[0033] The present invention also proposes a router Wi-Fi anti-brute force cracking function testing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the router Wi-Fi anti-brute force cracking function testing method as described in any one of the above items are implemented.

[0034] The present invention also proposes a computer-readable storage medium, on which a router Wi-Fi anti-brute force cracking function test program is stored. When the router Wi-Fi anti-brute force cracking function test program is executed by a processor, the steps of the router Wi-Fi anti-brute force cracking function test method as described in any of the above items are implemented.

[0035] The router Wi-Fi anti-brute force cracking function test method, device and computer-readable storage medium of the present invention are implemented by performing a first simulated access and a second simulated access to the router Wi-Fi to be tested according to a preset first parameter and a second parameter, respectively, wherein the Wi-Fi connection password in the first parameter is different from the router Wi-Fi password, and the Wi-Fi connection password in the second parameter is the same as the router Wi-Fi password; the result of the anti-brute force cracking function test of the router Wi-Fi is generated according to the first access state of the first simulated access and / or the second access state of the second simulated access. The present invention realizes an adaptive router Wi-Fi anti-brute force cracking function test scheme, improves test efficiency and test accuracy, meets the security requirements of router Wi-Fi, simplifies test steps, and reduces manpower and material costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0037] Figure 1 This is the first flow chart of the method for testing the Wi-Fi anti-brute force cracking function of the router of the present invention;

[0038] Figure 2 This is a second flow chart of the method for testing the Wi-Fi anti-brute force cracking function of a router of the present invention;

[0039] Figure 3 This is the third flow chart of the method for testing the Wi-Fi anti-brute force cracking function of the router of the present invention;

[0040] Figure 4 This is the fourth flow chart of the method for testing the Wi-Fi anti-brute force cracking function of the router of the present invention. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0042] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0043] Figure 1 This is the first flow chart of the method for testing the Wi-Fi anti-brute force cracking function of a router of the present invention. This embodiment proposes a method for testing the Wi-Fi anti-brute force cracking function of a router, which is applied to a test device, and the method includes:

[0044] S1. Perform a first simulated access and a second simulated access to the Wi-Fi router to be tested according to a preset first parameter and a preset second parameter, respectively, wherein the Wi-Fi connection password in the first parameter is different from the Wi-Fi password of the router, and the Wi-Fi connection password in the second parameter is the same as the Wi-Fi password of the router;

[0045] S2. Generate a result of the anti-brute force cracking function test of the router Wi-Fi according to the first access state of the first simulated access and / or the second access state of the second simulated access.

[0046] In this embodiment, the test device is an intelligent device with wireless network components such as a mobile phone, a tablet computer, and a laptop computer, and the router is a routing device such as an edge router.

[0047] In this embodiment, the test device is illustrated by taking a laptop computer as an example, and the Pywifi module of Python (a high-level programming language) is used in the laptop computer (this module is a module in Python for operating a wireless interface and can be used across platforms) to realize the network connection control between the laptop and the router.

[0048] Specifically, in this embodiment: first, in the router preparation stage, the router under test is powered on and waits for its startup to succeed. When the laptop can normally scan the Wi-Fi signal of the edge router, it indicates that the router has completed startup. At this time, it is ensured that the basic equipment of the test environment is in normal working condition, providing a stable object for subsequent tests; then, in the configuration stage of the test code, the anti-brute force cracking code is configured using the laptop, and the key parameters in the code are replaced. For example, the SSID (Service Set Identifier), authentication method and correct Wi-Fi password in the code are replaced with the SSID, authentication method and Wi-Fi connection password corresponding to the router under test, but the set Wi-Fi connection password is an incorrect Wi-Fi password (that is, the set Wi-Fi connection password is inconsistent with the set password of the router under test). Further, the frequency and duration of the code repeatedly trying to connect using the above incorrect Wi-Fi password are set. After completing the above parameter settings, the code is started to run. At this stage, the test code is accurately configured so that it can be targeted for a specific router under test. Then, in the test execution and result recording In the test phase, the above anti-brute force cracking test code is run, and after the code is run, the number of times the code tries to connect to the edge router repeatedly and the connection results are automatically printed out. The above data will intuitively reflect the status of connection attempts using the wrong password within the set time, providing an important basis for judging the anti-brute force cracking function of the router; finally, in the function verification phase, the above code is also used to alternately use the correct Wi-Fi connection password to try to connect to the tested router, and the connection results are printed; it can be seen that through the above steps, it can be confirmed whether the anti-brute force cracking function of the router is effective after the wrong password attempt to connect, that is, whether the connection with the correct password can be allowed normally. Specifically, if the connection is normal, it is determined that the anti-brute force cracking function was blocked during the previous wrong attempt, and the anti-brute force cracking was not effective. Otherwise, it is determined that there is no problem with the anti-brute force cracking function.

[0049] It can be seen that this embodiment returns the final anti-brute force cracking test result based on the test logic and test data of the above two stages, and the result can clearly indicate whether the anti-brute force cracking function of the tested router meets expectations, thereby providing an accurate conclusion for the security evaluation of the router.

[0050] The beneficial effect of this embodiment is that the first simulated access and the second simulated access are performed on the router Wi-Fi to be tested according to the preset first parameter and the second parameter, respectively, wherein the Wi-Fi connection password in the first parameter is different from the router Wi-Fi password, and the Wi-Fi connection password in the second parameter is the same as the router Wi-Fi password; the result of the anti-brute force cracking function test of the router Wi-Fi is generated according to the first access state of the first simulated access and / or the second access state of the second simulated access. An adaptive router Wi-Fi anti-brute force cracking function test solution is implemented, which improves the test efficiency and test accuracy, meets the security requirements of the router Wi-Fi, simplifies the test steps, and reduces the manpower and material costs.

[0051] In this embodiment, the first parameter is the same as the second parameter in that both include the Wi-Fi name, authentication method and Wi-Fi connection password of the router, but the first parameter is different from the second parameter in that the Wi-Fi connection password in the first parameter is different from the Wi-Fi password of the router, while the Wi-Fi connection password in the second parameter is the same as the Wi-Fi password of the router.

[0052] Furthermore, in this embodiment, the first parameter includes multiple Wi-Fi connection passwords, and there are at least two or more Wi-Fi connection passwords, and these Wi-Fi connection passwords are different from the router Wi-Fi password.

[0053] Furthermore, in this embodiment, when the second simulated access is a single access, the second parameter only needs to include a Wi-Fi connection password that is the same as the router Wi-Fi password, and when the second simulated access is multiple accesses, the Wi-Fi connection password in the second parameter is configured to be the same password as the router Wi-Fi password.

[0054] Furthermore, in this embodiment, when the first parameter includes two or more Wi-Fi connection passwords that are different from the router Wi-Fi password, the number of characters in each Wi-Fi connection password is the same as the number of characters in the router Wi-Fi password. Thus, a unified and complete brute force connection data basis can be provided for subsequent determination of the router's anti-brute force cracking function.

[0055] In this embodiment, the first parameter also includes access frequency and access duration. For example, through the Pywifi module of Python, the wrong password is repeatedly tried to connect to the router at a frequency of 2 times / s within a preset 5 minutes.

[0056] Further, in this embodiment, when there are multiple different Wi-Fi connection passwords in the first parameter, during the preset access duration, attempts are made to connect to the router alternately according to the different Wi-Fi connection passwords in the first parameter.

[0057] Furthermore, in this embodiment, the preset access duration is divided into multiple segments according to the number of different Wi-Fi connection passwords in the above-mentioned first parameter, and in each time period, an attempt is made to connect to the router according to one of the Wi-Fi connection passwords in the above-mentioned first parameter until the connection attempt is completed through all Wi-Fi connection passwords.

[0058] It can be seen that, in this embodiment, through the above-mentioned precise frequency control and repeated connection attempts of multiple Wi-Fi connection passwords, the test process has a high degree of stability and repeatability, and can simulate a more realistic brute force cracking attempt scenario.

[0059] Figure 2 This is a second flow chart of the method for testing the anti-brute force cracking function of the router Wi-Fi of the present invention. Based on the above embodiment, in this embodiment, the first simulated access and the second simulated access are performed on the router Wi-Fi to be tested according to the preset first parameter and the second parameter, respectively, specifically including:

[0060] S11, performing the first simulated access according to the access frequency and the access duration;

[0061] S12: Perform the second simulation access according to the second parameters within a preset time after the first simulation access is completed.

[0062] For example, after repeatedly trying to connect to the router with an incorrect password at a frequency of 2 times / s within the preset 5 minutes, try to connect to the router again with the correct password within the preset time of 1 second. Thus, by switching between incorrect passwords and correct passwords in a short period of time, it is effectively determined whether the router's anti-brute force cracking function can effectively block the current connection.

[0063] In this embodiment, the first access state includes the number of accesses and the access result. For example, the access frequency is 2 times / s and the access duration is 300 seconds; based on this, after 300 seconds, the code for attempting to connect ends, and then the output function of the above module is used to print out the first access state of the code repeatedly trying to connect to the router in the command line window.

[0064] In this embodiment, the first access status is presented through text. Specifically, the displayed text includes two parts, one is the number of accesses, for example, "Number of connection attempts: 600 times", and the other is the result and reason of each connection, for example, "Connection failed-wrong password".

[0065] Furthermore, in this embodiment, the display text of the first access status also includes a password used for attempting to connect.

[0066] It can be seen that this embodiment can monitor the connection status in real time through the above strategy, that is, accurately record the number of connections and access results, and provide reliable data support for subsequent function judgment.

[0067] Figure 3 3 is a third flow chart of the method for testing the anti-brute force cracking function of the router Wi-Fi of the present invention. Based on the above embodiment, in this embodiment, the result of the anti-brute force cracking function test of the router Wi-Fi is generated according to the first access state of the first simulated access and / or the second access state of the second simulated access, specifically including:

[0068] S21, setting a number threshold according to the access frequency and the access duration;

[0069] S22: If the access results of the access times are all access failures, and the access times are less than the times threshold, it is determined that the Wi-Fi anti-brute force cracking function test of the router has failed.

[0070] In this embodiment, the access duration is divided by the access frequency to obtain a theoretical access number, and the theoretical access number is used as the number threshold.

[0071] In this embodiment, a value smaller than the theoretical access times is determined as the times threshold. As described in the above example, when the access frequency is 2 times / s and the access duration is 300 seconds, the theoretical access times are calculated to be 600 times. Therefore, 600 times is used as the times threshold of this embodiment, or a value close to 600 times such as 597, 598, etc. is used as the times threshold of this embodiment.

[0072] In this embodiment, if the access results of all access times are access failures, and the access times are less than the number threshold, it is determined that the current router Wi-Fi anti-brute force cracking function test has failed or is invalid, and it is necessary to readjust the test environment, code configuration, etc., or check the status of the router itself.

[0073] Further, in this embodiment, if there are three Wi-Fi connection passwords in the first parameter, one access method is to try to connect using the first Wi-Fi connection password for the first two hundred times, try to connect using the second Wi-Fi connection password for the middle two hundred times, and try to connect using the third Wi-Fi connection password for the last two hundred times. Another method is to try to connect using the three passwords in turn.

[0074] Furthermore, when applying the first access method mentioned above, a corresponding number threshold is set for each password, so that when the number of connection attempts for any Wi-Fi connection password is too small, the failure or invalidity of the current router Wi-Fi anti-brute force cracking function test can be discovered in time.

[0075] Figure 4 It is a fourth flow chart of the method for testing the anti-brute force cracking function of the router Wi-Fi of the present invention. Based on the above embodiment, in this embodiment, the result of the anti-brute force cracking function test of the router Wi-Fi is generated according to the first access state of the first simulated access and / or the second access state of the second simulated access, and further includes:

[0076] S23. If the access results of the access times are all access failures, and the access times are greater than or equal to the times threshold, acquiring the second access state;

[0077] S24. If the second access status is access success, it is determined that the router Wi-Fi anti-brute force cracking function test has failed; and if the second access status is access failure, it is determined that the router Wi-Fi anti-brute force cracking function test has passed.

[0078] In this embodiment, if the access results of all access times are access failures, and the access times are greater than or equal to the times threshold, it is determined that the first stage simulated brute force connection attempt is qualified and ended, and then the result detection of the second access state is performed.

[0079] Furthermore, in this embodiment, one method is to first perform a first-stage simulated brute force connection attempt and output the result of the first access state, and then perform a second access in the second stage, thereby outputting the final anti-cracking test result; and another method is to first perform a first-stage simulated brute force connection attempt, followed by a second access test in the second stage, and then output the result of the first access state and the final anti-cracking test result.

[0080] Further, in this embodiment, if the second access status is successful access, it is determined that the anti-cracking test function of the router is not effective and fails to prevent this access. Therefore, it is considered that the current router Wi-Fi anti-brute force cracking function test has failed. Conversely, if the second access status is failed access, it is determined that the anti-cracking test function of the router is in effect and can prevent this access. Therefore, it is considered that the current router Wi-Fi anti-brute force cracking function test has passed.

[0081] Further, in this embodiment, for the second access, one method is single access and result determination, and the other method is multiple access and comprehensive result determination. As described in the above example, single access means that within a preset 5 minutes, after repeatedly trying to connect to the router with an incorrect password at a frequency of 2 times / s, the router is tried to connect again with the correct password within a preset time of 1s. If the connection is successful once, it is determined that the anti-cracking test function of the router is not effective and fails to prevent this access. On the contrary, if the connection fails once, it is determined that the anti-cracking test function of the router is effective and can prevent this access; and multiple access means that within a preset 5 minutes, after repeatedly trying to connect to the router with an incorrect password at a frequency of 2 times / s, the router is tried to connect again with the correct password within a preset time of 1s. According to the access result, the router is tried to connect again with the correct password within another preset time, so as to make a comprehensive determination based on the results of the two connections.

[0082] Furthermore, in the above-mentioned second multiple access scenario, if an attempt is made to connect to the router once with the correct password within a preset time of 1s and the connection is successful, the operation of trying to connect to the router again with the correct password within another preset time will no longer be executed. Instead, it is directly determined that the anti-cracking test function of the router is in effect and can prevent this access. If an attempt is made to connect to the router once with the correct password within the preset time of 1s and the connection fails, the operation of trying to connect to the router again with the correct password within another preset time will be executed. If the connection still fails, it is determined that the anti-cracking test function of the router is in effect and can prevent this access.

[0083] Furthermore, in this embodiment, for the second access in the second stage, multiple access determinations are performed, thereby improving the test effectiveness of the anti-cracking test function.

[0084] It can be seen that this embodiment uses code to automatically execute multiple repeated test processes in the above two stages, avoiding various uncertainties caused by manual operations and greatly improving the efficiency and accuracy of the test.

[0085] In this embodiment, if the access results of the access times are all access failures, and the access times are less than the times threshold, it is determined that the router Wi-Fi anti-brute force cracking function test fails, and then includes:

[0086] Adjust one or more of the working parameters of the router, the access frequency, the access duration, and the number threshold, and retest the first simulated access until the access results of the access times are all access failures, and the access times are greater than or equal to the number threshold.

[0087] Furthermore, in this embodiment, if the number of accesses is less than the number threshold, the connection result is determined to be abnormal, and it is necessary to further check whether there are problems with the test environment, code configuration, and the router itself, and retest if necessary.

[0088] In this embodiment, the router has a router Wi-Fi anti-brute force cracking function. This function has two states: on and off; further, this function is off by default, and when the number of accesses received by the router within a preset time exceeds a preset threshold, the above function is automatically turned on.

[0089] In this embodiment, generating the result of the anti-brute force cracking function test of the router Wi-Fi according to the first access state of the first simulated access and / or the second access state of the second simulated access further includes:

[0090] When the Wi-Fi anti-brute force cracking function of the router is in the on state, if the second access state is access success, it is determined that the Wi-Fi anti-brute force cracking function test of the router fails, and if the second access state is access failure, it is determined that the Wi-Fi anti-brute force cracking function test of the router passes;

[0091] When the router Wi-Fi anti-brute force cracking function is in a turned-off state, if the second access state is access success, it is determined that the router Wi-Fi anti-brute force cracking function test has passed, and if the second access state is access failure, it is determined that the router Wi-Fi anti-brute force cracking function test has failed.

[0092] It can be seen that in this embodiment, when the Wi-Fi anti-brute force cracking function of the router is turned on, if the second access state is access success, it is determined that the anti-cracking test function of the router is not effective and fails to prevent this access, and if the second access state is access failure, it is determined that the anti-cracking test function of the router is in effect and can prevent this access. When the Wi-Fi anti-brute force cracking function of the router is turned off, if the second access state is access success, it is determined that the Wi-Fi anti-brute force cracking function test of the router has passed, that is, the simulated brute force connection will not affect the response to the correct password access request, and if the second access state is access failure, it is determined that the Wi-Fi anti-brute force cracking function test of the router has failed, that is, the simulated brute force connection will affect the response to the correct password access request.

[0093] In this embodiment, the router Wi-Fi anti-brute force cracking function includes multiple anti-cracking levels;

[0094] In this embodiment, performing a first simulated access and a second simulated access to the Wi-Fi router to be tested according to the preset first parameter and the second parameter, respectively, further includes:

[0095] The access frequency and the access duration corresponding to the anti-cracking level are preset to perform the first simulated access.

[0096] Furthermore, in this embodiment, if the above anti-cracking level is higher, the access frequency in the first parameter is higher and the access duration is longer, thereby increasing the intensity of repeated simulated connection attempts in the first stage.

[0097] In this embodiment, performing a first simulated access and a second simulated access to the Wi-Fi router to be tested according to the preset first parameter and the second parameter, respectively, further includes:

[0098] A preset time corresponding to the anti-cracking level is preset so that the second simulated access is performed according to the second parameter within the preset time after the first simulated access is completed.

[0099] Furthermore, in this embodiment, if the above anti-cracking level is higher, the above preset time is longer, so as to verify whether the effective time of the router Wi-Fi anti-brute force cracking function after the first phase of simulation testing meets the requirements of the current corresponding anti-cracking level.

[0100] Based on the above embodiments, the present invention also proposes a router Wi-Fi anti-brute force cracking function testing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the router Wi-Fi anti-brute force cracking function testing method as described in any one of the above items are implemented.

[0101] It should be noted that the above-mentioned device embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the device embodiment, which will not be repeated here.

[0102] Based on the above embodiments, the present invention also proposes a computer-readable storage medium, which stores a router Wi-Fi anti-brute force cracking function test program. When the router Wi-Fi anti-brute force cracking function test program is executed by a processor, the steps of the router Wi-Fi anti-brute force cracking function test method as described in any of the above items are implemented.

[0103] It should be noted that the above-mentioned medium embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the medium embodiment, which will not be repeated here.

[0104] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0105] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0106] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A method for testing the Wi-Fi anti-brute force cracking function of a router, applied to a test device, characterized in that: The method comprises: Perform a first simulated access and a second simulated access to the Wi-Fi router to be tested according to the preset first parameter and the second parameter, respectively, wherein the Wi-Fi connection password in the first parameter is different from the Wi-Fi password of the router, and the Wi-Fi connection password in the second parameter is the same as the Wi-Fi password of the router; A result of the anti-brute force cracking function test of the router Wi-Fi is generated according to the first access state of the first simulated access and / or the second access state of the second simulated access.

2. The method for testing the Wi-Fi anti-brute force cracking function of a router according to claim 1, characterized in that: The first parameter and the second parameter both include the Wi-Fi name, authentication method, and Wi-Fi connection password of the router; The first parameter also includes access frequency and access duration; The performing first simulated access and second simulated access to the Wi-Fi router to be tested according to the preset first parameter and second parameter respectively specifically includes: Performing the first simulated access according to the access frequency and the access duration; The second simulation access is performed according to the second parameters within a preset time after the first simulation access is completed.

3. The method for testing the Wi-Fi anti-brute force cracking function of a router according to claim 2, characterized in that: The first access status includes the number of accesses and the access result; The generating the result of the anti-brute force cracking function test of the router Wi-Fi according to the first access state of the first simulated access and / or the second access state of the second simulated access specifically includes: Setting a number threshold according to the access frequency and the access duration; If the access results of the access times are all access failures, and the access times are less than the times threshold, it is determined that the router Wi-Fi anti-brute force cracking function test has failed.

4. The method for testing the router Wi-Fi anti-brute force cracking function according to claim 3, characterized in that: The step of generating the result of the anti-brute force cracking function test of the router Wi-Fi according to the first access state of the first simulated access and / or the second access state of the second simulated access further includes: If the access results of the access times are all access failures, and the access times are greater than or equal to the times threshold, acquiring the second access state; If the second access status is access success, it is determined that the router Wi-Fi anti-brute force cracking function test has failed, and if the second access status is access failure, it is determined that the router Wi-Fi anti-brute force cracking function test has passed.

5. The method for testing the router Wi-Fi anti-brute force cracking function according to claim 3, characterized in that: If the access results of the access times are all access failures, and the access times are less than the times threshold, it is determined that the router Wi-Fi anti-brute force cracking function test fails, and then includes: Adjust one or more of the working parameters of the router, the access frequency, the access duration, and the number threshold, and retest the first simulated access until the access results of the access times are all access failures, and the access times are greater than or equal to the number threshold.

6. The method for testing the Wi-Fi anti-brute force cracking function of a router according to claim 4, characterized in that: The router has a router Wi-Fi anti-brute force cracking function; The step of generating a result of the anti-brute force cracking function test of the router Wi-Fi according to the first access state of the first simulated access and / or the second access state of the second simulated access further includes: When the Wi-Fi anti-brute force cracking function of the router is in the on state, if the second access state is access success, it is determined that the Wi-Fi anti-brute force cracking function test of the router fails, and if the second access state is access failure, it is determined that the Wi-Fi anti-brute force cracking function test of the router passes; When the router Wi-Fi anti-brute force cracking function is in a turned-off state, if the second access state is access success, it is determined that the router Wi-Fi anti-brute force cracking function test has passed, and if the second access state is access failure, it is determined that the router Wi-Fi anti-brute force cracking function test has failed.

7. The method for testing the Wi-Fi anti-brute force cracking function of a router according to claim 6, characterized in that: The router Wi-Fi anti-brute force cracking function includes multiple anti-cracking levels; The first simulated access and the second simulated access are respectively performed on the Wi-Fi router to be tested according to the preset first parameter and the second parameter, further comprising: The access frequency and the access duration corresponding to the anti-cracking level are preset to perform the first simulated access.

8. The method for testing the router Wi-Fi anti-brute force cracking function according to claim 7, characterized in that: The first simulated access and the second simulated access are respectively performed on the Wi-Fi router to be tested according to the preset first parameter and the second parameter, further comprising: A preset time corresponding to the anti-cracking level is preset so that the second simulated access is performed according to the second parameter within the preset time after the first simulated access is completed.

9. A router Wi-Fi anti-brute force cracking function test device, characterized in that: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the method for testing the Wi-Fi anti-brute force cracking function of a router as described in any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a router Wi-Fi anti-brute force cracking function test program, and when the router Wi-Fi anti-brute force cracking function test program is executed by the processor, the steps of the router Wi-Fi anti-brute force cracking function test method according to any one of claims 1 to 8 are implemented.