Weak password test method and device, storage medium and equipment
By setting up multiple wireless network devices and virtual containers on the network routing device, the weak password of the wireless network is automatically tested, which solves the problems of slow testing speed and low efficiency in the prior art, and realizes efficient and accurate weak password testing.
Patent Information
- Application Number
- CN202510356672.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-25
- Publication Date
- 2025-06-10
AI Technical Summary
When testing weak passwords of wireless networks, the prior art test speed is slow, low efficiency, and prone to judgment errors.
By setting up multiple wireless network devices and virtual containers on the network routing device, assigning passwords to virtual containers using a preset password list, and configuring the physical address of the wireless network device, we automatically test the weak passwords of the wireless network.
It realizes automated testing of weak passwords, and tests are carried out independently and in parallel through multiple virtual containers, which shortens the test time and improves the test speed and accuracy.
Smart Images

Figure CN120128970A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless technologies, and in particular, to a weak password testing method, apparatus, storage medium, and device. Background Art
[0002] At present, when wireless networks cover all corners of life, the importance of network security has become increasingly prominent. If the password set for a wireless network is a weak password that is simple and easy to guess, hackers can easily crack it and then access the network. Once successfully connected, hackers can perform various malicious operations, such as stealing sensitive information of devices within the network, including login accounts, passwords, bank card information, etc. Taking a home wireless network as an example, if the password is a weak password such as the simple "123456", after hackers invade, they may obtain the access rights to smart cameras, spy on family privacy, or control smart home appliances, causing device damage or data leakage. Therefore, testing or detecting weak passwords is a key link in ensuring the security of wireless networks and plays an important role that cannot be ignored.
[0003] Currently, when testing the weak passwords of wireless networks, packet capture tools are usually used to capture packets, and then brute-force cracking is adopted, that is, all possible password or passphrase combinations are tried manually to crack the target password or passphrase to connect to the wireless network, or the exhaustive method is used, and all passwords or passphrases in the password list are enumerated manually and then these passwords or passphrases are tried in turn to connect to the wireless network. If the wireless network is successfully connected, it means that the wireless network uses a weak password. However, if the above method is used for weak password testing, the time spent on combining passphrases and waiting for passphrases is relatively long, resulting in a slow testing speed of weak passwords and thus low efficiency of weak password testing. Summary of the Invention
[0004] The main objective of the present invention is to provide a weak password testing method, apparatus, storage medium, and device, aiming to solve the technical problems of low...
[0005] To achieve the above objective, the present invention provides a weak password testing method, which includes: Determine a plurality of wireless network devices set on a network routing device, and a plurality of virtual containers that respectively isolate the plurality of wireless network devices; Assign the passwords in a preset password list to each virtual container, and configure the physical addresses respectively corresponding to the plurality of wireless network devices; In any specific virtual container, select a password from the passwords assigned to it, and use a preset connection command and the selected password to connect a specific wireless network device to the wireless network to be tested, where the specific wireless network device is the wireless network device in the specific virtual container; If a specific wireless network device successfully connects to the wireless network under test, it is determined that the selected password is a weak password; If a specific wireless network device fails to connect to the wireless network under test, it is determined that the selected password is not a weak password, the physical address of the specific wireless network device is modified, and the next password is selected to continue the test until the test ends.
[0006] Furthermore, the method further includes: Using a preset chip disposed on a breadboard, multiple wireless network interfaces are constructed on a network routing device, and multiple wireless network devices are respectively set based on the multiple wireless network interfaces; Using a preset virtual container technology, each wireless network device is separated and attributed to different multiple virtual containers.
[0007] Furthermore, the connecting of a specific wireless network device to the wireless network under test by using a preset connection command and the selected password includes: Using a preset connection command and the selected password, connecting a specific wireless network device to a wireless access point corresponding to the wireless network under test; If the specific wireless network device fails to connect to the wireless access point, it is determined that the specific wireless network device fails to connect to the wireless network under test; If the specific wireless network device successfully connects to the wireless access point, the specific wireless network device is connected to a remote server corresponding to the wireless network under test; If the specific wireless network device fails to connect to the remote server, it is determined that the specific wireless network device fails to connect to the wireless network under test; If the specific wireless network device successfully connects to the remote server, it is determined that the specific wireless network device successfully connects to the wireless network under test.
[0008] Furthermore, the connecting of a specific wireless network device to the wireless network under test by using a preset connection command and the selected password includes: Creating a wireless network configuration file, and reading configuration information of the wireless network under test from the wireless network configuration file, where the configuration information includes but is not limited to: identification information, connection type, and security settings of the wireless network under test; Using a preset connection command, the selected password, and the configuration information to connect a specific wireless network device to the wireless network under test.
[0009] Furthermore, before modifying the physical address of the specific wireless network device and selecting the next password to continue the test, the method further includes: Determine whether the selected password is the last password among the passwords assigned to a specific virtual container; If the selected password is the last password among the passwords assigned to a specific virtual container, determine that the password test for the specific virtual container ends; The modifying the physical address of the specific wireless network device and selecting the next password to continue the test includes: If the selected password is not the last password among the passwords assigned to a specific virtual container, after a preset time when the connection between the specific wireless network device and the wireless network under test fails, modify the physical address of the specific wireless network device and select the next password to continue the test.
[0010] Further, the method further includes: Record and save the test situation of weak passwords; After testing all the passwords assigned to each virtual container, determine whether there is a weak password in the preset password list; If there is a weak password in the preset password list, determine that the set password corresponding to the wireless network under test is a weak password; If there is no weak password in the preset password list, determine that the set password corresponding to the wireless network under test is not a weak password.
[0011] Further, the assigning the passwords in the preset password list to each virtual container includes: Randomly or evenly assign the passwords in the preset password list to each virtual container.
[0012] In addition, to achieve the above object, the present invention further provides a weak password testing device, and the weak password testing device includes: A determination unit, configured to determine a plurality of wireless network devices provided on a network routing device, and a plurality of virtual containers that separately isolate the plurality of wireless network devices; A configuration unit, configured to assign the passwords in the preset password list to each virtual container, and configure the physical addresses respectively corresponding to each wireless network device; A connection unit, configured to select a password from the passwords assigned to it in any specific virtual container, and use a preset connection command and the selected password to connect the specific wireless network device to the wireless network under test, where the specific wireless network device is the wireless network device in the specific virtual container; The determination unit is configured to determine that the selected password is a weak password if the specific wireless network device is successfully connected to the wireless network under test; The determination unit is further configured to determine that the selected password is not a weak password if the specific wireless network device fails to connect to the wireless network under test; The adjustment unit is configured to modify the physical address of a specific wireless network device and select the next password to continue the test until the test ends.
[0013] Further, the method further includes: A construction unit, configured to construct a plurality of wireless network interfaces on a network routing device and set a plurality of wireless network devices respectively based on the plurality of wireless network interfaces; A separation unit, configured to use a preset virtual container technology to separate and assign the plurality of wireless network devices to different virtual containers.
[0014] Further, the connection unit is specifically configured to use a preset connection command and the selected password to connect a specific wireless network device to a wireless access point corresponding to the wireless network to be tested; if the connection between the specific wireless network device and the wireless access point fails, it is determined that the connection between the specific wireless network device and the wireless network to be tested fails; if the connection between the specific wireless network device and the wireless access point is successful, the specific wireless network device is connected to a remote server corresponding to the wireless network to be tested; if the connection between the specific wireless network device and the remote server fails, it is determined that the connection between the specific wireless network device and the wireless network to be tested fails; if the connection between the specific wireless network device and the remote server is successful, it is determined that the connection between the specific wireless network device and the wireless network to be tested is successful.
[0015] Further, the connection unit specifically further includes: creating a wireless network configuration file, and obtaining configuration information of the wireless network to be tested from the wireless network configuration file, where the configuration information includes but is not limited to: identification information of the wireless network to be tested, connection type, and security settings; using a preset connection command, the selected password, and the configuration information to connect a specific wireless network device to the wireless network to be tested.
[0016] Further, the determination unit is further configured to determine whether the selected password is the last password among the passwords assigned to a specific virtual container; if the selected password is the last password among the passwords assigned to a specific virtual container, it is determined that the test of the passwords assigned to the specific virtual container ends; The adjustment unit is specifically configured to, if the selected password is not the last password among the passwords assigned to a specific virtual container, modify the physical address of the specific wireless network device after a preset time when the connection between the specific wireless network device and the wireless network to be tested fails, and select the next password to continue the test.
[0017] Further, the device further includes: A storage unit, configured to record and save the test situation of weak passwords; The determining unit is further configured to determine whether there is a weak password in the preset password list after testing the assigned passwords in each virtual container; if there is a weak password in the preset password list, determine that the set password corresponding to the wireless network to be tested is a weak password; if there is no weak password in the preset password list, determine that the set password corresponding to the wireless network to be tested is not a weak password.
[0018] Further, the configuration unit is specifically configured to randomly or evenly distribute the passwords in the preset password list to each virtual container.
[0019] To solve the above technical problems, an embodiment of the present invention further provides a weak password testing device, which adopts the following technical solution: The weak password testing device includes a memory and a processor. A weak password testing program is stored in the memory. When the processor executes the weak password testing program, the steps of any one of the weak password testing methods proposed in the embodiments of the present invention are implemented.
[0020] To solve the above technical problems, the present invention further provides a storage medium, which adopts the following technical solution: A weak password testing program is stored on the storage medium. When the weak password testing program is executed by a processor, the steps of the above weak password testing method are implemented.
[0021] The present invention provides a weak password testing method, device, storage medium and equipment. The present invention can determine multiple wireless network devices set on a network routing device, and multiple virtual containers that isolate the multiple wireless network devices respectively, that is, the present invention can separate multiple wireless network devices on the network routing device through the multiple virtual containers, so that any virtual container can be bound to a wireless network device. At the same time, the present invention can distribute the passwords in a preset password list to each virtual container, and configure the physical addresses corresponding to each wireless network device respectively; and can select a password from the passwords assigned to it in any specific virtual container, and use a preset connection command and the selected password to connect the specific wireless network device to the wireless network to be tested, where the specific wireless network device is the wireless network device in the specific virtual container; if the specific wireless network device is successfully connected to the wireless network to be tested, it is determined that the selected password is a weak password; if the specific wireless network device fails to connect to the wireless network to be tested, it is determined that the selected password is not a weak password, modify the physical address of the specific wireless network device, and select the next password to continue the test; until the test ends. That is, compared with the prior art, the present invention can realize the automated testing of weak passwords, can perform weak password testing independently and in parallel based on multiple virtual containers, and during the whole testing process, no manual participation is required and multiple password tests can be executed simultaneously through multiple virtual containers. Therefore, the weak password testing time can be shortened, the weak password testing speed can be improved, and thus the weak password testing can be enhanced. In addition, the present invention can also avoid the situation of incorrect weak password judgment, thereby improving the accuracy rate of weak password testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the solutions in the present invention, the following will briefly introduce the drawings required for the description of the embodiments of the present invention. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0023] Figure 1 is an exemplary system architecture diagram to which the present invention can be applied; Figure 2 is a flowchart of a weak password testing method provided by an embodiment of the present invention; Figure 3 is a flowchart of another weak password testing method provided by an embodiment of the present invention; Figure 4 is a schematic structural diagram of a weak password testing device provided by an embodiment of the present invention; Figure 5 is a basic structural block diagram of a weak password testing device provided by an embodiment of the present invention. Detailed implementation manners
[0024] The weak password testing method provided by the embodiment of the present invention is applied to a weak password testing device. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present invention belongs; the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above drawings are intended to cover non-exclusive inclusion. The terms "first", "second", etc. in the specification and claims of the present invention or the above drawings are used to distinguish different objects and not to describe a specific order.
[0025] Reference to "embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0026] In order to enable those skilled in the art of this technology to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
[0027] As Figure 1 shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.
[0028] Users can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications may be installed on the terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social online platform software, etc.
[0029] The terminal devices 101, 102, and 103 can be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, and so on.
[0030] The server 105 can be a server that provides various services, such as a background server that supports the pages displayed on the terminal devices 101, 102, and 103.
[0031] It should be noted that the weak password testing method provided by the embodiments of the present invention is generally executed by the server / terminal device. Correspondingly, the weak password testing device is generally set in the server / terminal device.
[0032] It should be understood that Figure 1 the numbers of the terminal devices, the network, and the server in are merely illustrative. According to the implementation requirements, there can be any number of terminal devices, networks, and servers.
[0033] To achieve the above object, the embodiments of the present invention provide a weak password testing method. As Figure 2 shown, the weak password testing method includes: Step 201, determine a plurality of wireless network devices set on the network routing device, and a plurality of virtual containers that respectively isolate the plurality of wireless network devices.
[0034] Among them, the network routing device can be a router, the wireless network device can be a wireless network card or a portable wireless hotspot device, etc. A plurality of wireless network interfaces can be set on the network routing device to connect a plurality of wireless network devices. Specifically, the wireless network interface can be a Universal Serial Bus (USB) interface. That is, a wireless network with multiple wireless USB interfaces can be set on the router, so that a plurality of wireless network devices can be plugged and unplugged on the router.
[0035] In the embodiments of the present invention, there is a one-to-one correspondence between virtual containers and wireless network devices. For example, virtual container 1 corresponds to wireless network device WLan1, virtual container 2 corresponds to wireless network device WLan2, and so on. By isolating wireless network devices through virtual containers, it is possible to avoid connection misalignment or data transmission errors when multiple wireless network devices perform wireless connections, thereby ensuring the independence and accuracy of network connections.
[0036] Step 202: Assign the passwords in the preset password list to each virtual container and configure the physical addresses corresponding to each wireless network device.
[0037] Among them, the passwords in the preset password list can be the top 1000 or 2000 passwords in terms of usage. Specifically, a packet capture tool can be used to capture the passwords in different packets. The physical address of a wireless network device can specifically be the Media Access Control Address (MAC) of the wireless network device. A wireless network device can be uniquely identified by its physical address.
[0038] In the embodiments of the present invention, assigning the passwords in the preset password list to each virtual container includes: randomly or evenly distributing the passwords in the preset password list to each virtual container. For example, the TOP1000 passwords for weak password testing can be uniformly assigned to each virtual container. Or the TOP1000 passwords for weak password testing can be uniformly and evenly assigned to each virtual container.
[0039] It should be noted that the specific process of configuring the physical addresses corresponding to each wireless network device can be the process of uniformly assigning initial physical addresses to each wireless network device. In subsequent tests, the physical addresses can be modified for testing different passwords. For example, the MAC addresses of each wireless network card can be uniformly modified, and the network card numbers of each wireless network card can be WLAN00 - WLAN10.
[0040] Step 203: In any specific virtual container, select a password from the passwords assigned to it, and use a preset connection command and the selected password to connect the specific wireless network device to the wireless network to be tested.
[0041] Among them, the specific wireless network device is the wireless network device in the specific virtual container.
[0042] In an example of the present invention, specifically, a preset connection command and a selected password can be used to connect a specific wireless network device to a wireless access point (AP) corresponding to the wireless network to be tested or a remote server. When the connection between the specific wireless network device and the wireless access point fails and the connection to the remote server also fails, it is determined that the connection between the specific wireless network device and the wireless network to be tested fails. That is, if the connection between the specific wireless network device and any one of the wireless AP or the remote server is successful, it is confirmed that the connection between the specific wireless network device and the wireless network to be tested is successful.
[0043] Step 204: If the connection between the specific wireless network device and the wireless network to be tested is successful, determine that the selected password is a weak password.
[0044] In an embodiment of the present invention, if the connection between the specific wireless network device and the wireless network to be tested is successful, it means that other users or attackers can use the currently selected password to attack the wireless network to be tested. Therefore, the currently selected password can be determined as a weak password.
[0045] Step 205: If the connection between the specific wireless network device and the wireless network to be tested fails, determine that the selected password is not a weak password, modify the physical address of the specific wireless network device, and select the next password to continue the test; until the test ends.
[0046] It should be noted that the test ends when the tests of all the passwords assigned to each virtual container are completed or when all the passwords in the preset password list have been tested.
[0047] In an optional embodiment of the present disclosure, the weak password testing method further includes: using a preset chip provided on a breadboard to construct multiple wireless network interfaces on a network routing device, and respectively setting multiple wireless network devices based on the multiple wireless network interfaces; using a preset virtual container technology to separate and assign each wireless network device to different multiple virtual containers.
[0048] Specifically, the preset chip can be, and the preset virtual container technology can be Docker technology. Separating and assigning each wireless network device to different multiple virtual containers means that multiple custom networks can be created with Docker commands, and each wireless network device corresponds to the network environment of a virtual container. An independent virtual private network can also be configured for each virtual container, and through the encryption and authentication mechanisms of the virtual private network, the device data belonging to different virtual containers can be isolated and protected.
[0049] In a specific embodiment of the present disclosure, a specific wireless network device can be connected to the wireless AP corresponding to the wireless network to be tested, and then the specific wireless network device can be connected to the remote server corresponding to the wireless network to be tested for testing. The step of "connecting the specific wireless network device to the wireless network to be tested by using a preset connection command and the selected password" can specifically include: Connect the specific wireless network device to the wireless AP corresponding to the wireless network to be tested by using a preset connection command and the selected password; If the connection between the specific wireless network device and the wireless AP fails, it is determined that the connection between the specific wireless network device and the wireless network to be tested fails; If the connection between the specific wireless network device and the wireless AP is successful, connect the specific wireless network device to the remote server corresponding to the wireless network to be tested; If the connection between the specific wireless network device and the remote server fails, it is determined that the connection between the specific wireless network device and the wireless network to be tested fails; If the connection between the specific wireless network device and the remote server is successful, it is determined that the connection between the specific wireless network device and the wireless network to be tested is successful.
[0050] It should be noted that the specific wireless network device can be connected to the remote server corresponding to the wireless network to be tested through the Internet Protocol Address (IP) address corresponding to the remote server. For example, if the IP address corresponding to the remote server is 114.114.114.114, the remote server can be pinged by attempting to connect to the IP address. If the ping is successful, it means that the selected password is a weak password, that is, the password of the wireless network to be tested has been cracked and discovered.
[0051] In a specific embodiment of the present disclosure, the step of "connecting a specific wireless network device to the wireless network under test using a preset connection command and the selected password" may include: creating a wireless network configuration file, and reading the configuration information of the wireless network under test from the wireless network configuration file. The configuration information includes, but is not limited to: the identification information, connection type, and security settings of the wireless network under test; using the preset connection command, the selected password, and the configuration information to connect the specific wireless network device to the wireless network under test. For example, the identification information of the wireless network under test may be Wi-Fi-TEST-01, and using the preset connection command, the selected password, the connection type and security settings of Wi-Fi-TEST-01, etc., to connect the specific wireless network device to the wireless network under test. The preset connection command may be the netsh wlan add profile command. Specifically, based on the window operating system or the Linux operating system, using the preset connection command, the selected password, and the configuration information, connect the specific wireless network device to the wireless network under test to implement the weak password test of the embodiment of the present invention.
[0052] In a specific embodiment of the present disclosure, before modifying the physical address of the specific wireless network device and selecting the next password to continue the test, the weak password test method further includes: Determining whether the selected password is the last password among the passwords assigned to the specific virtual container; If the selected password is the last password among the passwords assigned to the specific virtual container, it is determined that the password test of the specific virtual container is completed; Correspondingly, the process of the step of modifying the physical address of the specific wireless network device and selecting the next password to continue the test may specifically include: if the selected password is not the last password among the passwords assigned to the specific virtual container, after a preset time when the connection between the specific wireless network device and the wireless network under test fails, modify the physical address of the specific wireless network device and select the next password to continue the test.
[0053] In a specific embodiment of the present disclosure, the weak password test further includes: Recording and saving the test situation of the weak password; After testing the passwords assigned to each virtual container, determining whether there is a weak password in the preset password list; If there is a weak password in the preset password list, it is determined that the set password corresponding to the wireless network under test is a weak password; If there is no weak password in the preset password list, it is determined that the set password corresponding to the wireless network under test is not a weak password.
[0054] To better understand the embodiments of the present invention, a specific application example of another weak password testing method is provided. For example, Figure 3 as shown, the weak password testing method includes: Establish a network routing device including multiple wireless network cards, and use virtual containers to separate the wireless network cards. Among them, one virtual container is bound to one wireless network card; if there are N wireless network cards, then there are N virtual containers; Modify the initial value of the MAC address of the wireless network card; Select the top 1000 commonly used passwords or passphrases and evenly distribute them to each virtual container; In any virtual container, use the netsh command, use the selected password or passphrase to connect to the wireless AP to be tested, such as Wi-Fi-TEST-01 or the IP address of the remote server.
[0055] Judge whether the connection result is successful. Specifically, judge whether it is successfully connected to the wireless AP to be tested, such as Wi-Fi-TEST-01 or the IP address of the remote server.
[0056] If the connection is successful, it is determined that the weak password test is successful, and the detected weak password is recorded and saved. That is, it is determined that the selected passphrase is a weak password and is recorded and saved.
[0057] If the connection fails, it is determined that the selected password or passphrase is not a weak password. And judge whether the selected password or passphrase is the last one.
[0058] If it is not the last password or passphrase, modify the MAC address of the wireless network card, select the next password or passphrase and continue the test. Specifically, 1 can be added to the original MAC address as the new MAC address.
[0059] If it is the last password or passphrase, confirm that the weak password test is over.
[0060] A weak password testing method provided by an embodiment of the present invention can determine multiple wireless network devices set on a network routing device and multiple virtual containers that separately isolate the multiple wireless network devices. That is, the present invention can have multiple wireless network devices on the network routing device and separate the multiple wireless network devices through multiple virtual containers, so that any virtual container can be bound to a wireless network device. At the same time, the present invention can assign the passwords in a preset password list to each virtual container and configure the physical addresses corresponding to each wireless network device respectively; and can select a password from the passwords assigned to it in any specific virtual container, and use a preset connection command and the selected password to connect the specific wireless network device to the wireless network to be tested, where the specific wireless network device is the wireless network device in the specific virtual container; if the connection between the specific wireless network device and the wireless network to be tested fails, it is determined that the selected password is not a weak password, the physical address of the specific wireless network device is modified, and the next password is selected to continue the test; if the connection between the specific wireless network device and the wireless network to be tested is successful, it is determined that the selected password is a weak password. That is, compared with the prior art, the present invention can realize automatic testing of weak passwords, can perform weak password testing independently and in parallel based on multiple virtual containers, and during the entire testing process, no manual participation is required and multiple password tests can be executed simultaneously through multiple virtual containers. Therefore, the weak password testing time can be shortened, the weak password testing speed can be improved, and thus the weak password testing can be enhanced. In addition, the present invention can also avoid the situation of incorrect weak password judgment, thereby improving the accuracy rate of weak password testing.
[0061] In addition, to achieve the above object, an embodiment of the present invention also provides a weak password testing device, as Figure 4 shown. The weak password testing device includes: A determination unit 41, which can be used to determine multiple wireless network devices set on a network routing device and multiple virtual containers that separately isolate the multiple wireless network devices; A configuration unit 42, which can be used to assign the passwords in a preset password list to each virtual container and configure the physical addresses corresponding to each wireless network device respectively; A connection unit 43, which can be used to select a password from the passwords assigned to it in any specific virtual container, and use a preset connection command and the selected password to connect the specific wireless network device to the wireless network to be tested, where the specific wireless network device is the wireless network device in the specific virtual container; The determination unit 41, which can be used to determine that the selected password is a weak password if the connection between the specific wireless network device and the wireless network to be tested is successful The determination unit 41 can also be used to determine that the selected password is not a weak password if a specific wireless network device fails to connect to the wireless network under test; The adjustment unit 44 can be used to modify the physical address of a specific wireless network device and select the next password to continue the test until the test ends.
[0062] Furthermore, the weak password testing method further includes: The construction unit can be used to construct multiple wireless network interfaces on a network routing device and set multiple wireless network devices based on the multiple wireless network interfaces respectively; The separation unit can be used to use the preset virtual container technology to separate and assign multiple wireless network devices to different virtual containers.
[0063] In a specific embodiment of the present disclosure, the connection unit 43 can specifically be used to connect a specific wireless network device to a wireless access point corresponding to the wireless network under test by using a preset connection command and the selected password; if the specific wireless network device fails to connect to the wireless access point, it is determined that the specific wireless network device fails to connect to the wireless network under test; if the specific wireless network device successfully connects to the wireless access point, the specific wireless network device is connected to a remote server corresponding to the wireless network under test; if the specific wireless network device fails to connect to the remote server, it is determined that the specific wireless network device fails to connect to the wireless network under test; if the specific wireless network device successfully connects to the remote server, it is determined that the specific wireless network device successfully connects to the wireless network under test.
[0064] In a specific embodiment of the present disclosure, the connection unit 43 can also specifically be used to create a wireless network configuration file, read configuration information of the wireless network under test from the wireless network configuration file, and the configuration information includes but is not limited to: identification information, connection type, and security settings of the wireless network under test; use a preset connection command, the selected password, and the configuration information to connect a specific wireless network device to the wireless network under test.
[0065] In a specific embodiment of the present disclosure, the determination unit 41 can also be used to determine whether the selected password is the last password among the passwords assigned to a specific virtual container; if the selected password is the last password among the passwords assigned to a specific virtual container, it is determined that the password test for the specific virtual container ends.
[0066] The adjustment unit 44 can specifically be used to, if the selected password is not the last password among the passwords assigned to a specific virtual container, after a preset time when the specific wireless network device fails to connect to the wireless network under test, modify the physical address of the specific wireless network device and select the next password to continue the test.
[0067] In an alternative embodiment of the present disclosure, the weak password testing device further includes: a storage unit.
[0068] The storage unit can be used to record and save the testing situation of weak passwords; The determination unit can also be used to determine whether there is a weak password in the preset password list after testing the passwords assigned to each virtual container; if there is a weak password in the preset password list, it is determined that the set password corresponding to the wireless network to be tested is a weak password; if there is no weak password in the preset password list, it is determined that the set password corresponding to the wireless network to be tested is a non-weak password.
[0069] In a specific embodiment of the present disclosure, the configuration unit can specifically be used to randomly or evenly distribute the passwords in the preset password list to each virtual container.
[0070] A weak password testing device provided by an embodiment of the present invention can determine multiple wireless network devices provided on a network routing device, and multiple virtual containers that separately isolate the multiple wireless network devices, that is, the present invention can separate multiple wireless network devices on the network routing device through multiple virtual containers, so that any virtual container can be bound to a wireless network device. At the same time, the present invention can distribute the passwords in the preset password list to each virtual container, and configure the physical addresses corresponding to each wireless network device; and can select a password from the passwords assigned to it in any specific virtual container, and use the preset connection command and the selected password to connect the specific wireless network device to the wireless network to be tested, where the specific wireless network device is the wireless network device in the specific virtual container; if the connection between the specific wireless network device and the wireless network to be tested fails, it is determined that the selected password is a non-weak password, modify the physical address of the specific wireless network device, and select the next password to continue the test; if the connection between the specific wireless network device and the wireless network to be tested is successful, it is determined that the selected password is a weak password. That is, compared with the prior art, the present invention can implement automated testing of weak passwords, can perform weak password testing independently and in parallel based on multiple virtual containers, and during the entire testing process, no manual participation is required and multiple password tests can be executed simultaneously through multiple virtual containers. Therefore, the weak password testing time can be shortened, the weak password testing speed can be improved, and thus the weak password testing can be improved. In addition, the present invention can also avoid the situation of incorrect weak password judgment, thereby improving the accuracy of weak password testing.
[0071] To solve the above technical problems, the present invention also provides a storage medium, adopting the following technical solution: A weak password test program is stored on the storage medium. When the weak password test program is executed by a processor, the steps of the above weak password test method are implemented.
[0072] To solve the above technical problems, an embodiment of the present invention also provides a weak password test device. For details, please refer to Figure 5 , Figure 5 which is the basic structural block diagram of the weak password test device of this embodiment.
[0073] The weak password test device 5 includes a memory 51, a processor 52, and a network interface 53 that are communicatively connected to each other through a system bus. It should be noted that only the weak password test device 5 with components 51-53 is shown in the figure. However, it should be understood that it is not required to implement all the shown components, and more or fewer components can be alternatively implemented. Among them, those skilled in the art of the present technology can understand that the weak password test device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.
[0074] The weak password test device can be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The weak password test device can perform human-computer interaction with the user through a keyboard, a mouse, a remote control, a touchpad, or a voice control device, etc.
[0075] The memory 51 includes at least one type of readable storage medium, which includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disc, etc. In some embodiments, the memory 51 may be an internal storage unit of the weak password testing device 5, such as the hard disk or memory of the weak password testing device 5. In other embodiments, the memory 51 may also be an external storage device of the weak password testing device 5, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, FlashCard, etc. equipped on the weak password testing device 5. Of course, the memory 51 may also include both the internal storage unit and the external storage device of the weak password testing device 5. In this embodiment, the memory 51 is generally used to store the operating system and various application software installed on the weak password testing device 5, such as the program code of the weak password testing method. In addition, the memory 51 can also be used to temporarily store various data that have been output or will be output.
[0076] In some embodiments, the processor 52 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 52 is generally used to control the overall operation of the weak password testing device 5. In this embodiment, the processor 52 is used to run the program code stored in the memory 51 or process data, such as running the program code of the weak password testing method.
[0077] The network interface 53 may include a wireless network interface or a wired network interface, and the network interface 53 is generally used to establish a communication connection between the weak password testing device 5 and other electronic devices.
[0078] An embodiment of the present invention provides a weak password testing device, which can determine multiple wireless network devices set on a network routing device, and multiple virtual containers that isolate the multiple wireless network devices respectively. That is, the present invention can separate multiple wireless network devices on the network routing device through multiple virtual containers, so that any virtual container can be bound to a wireless network device. At the same time, the present invention can assign the passwords in a preset password list to each virtual container, and configure the physical addresses corresponding to each wireless network device respectively; and can select a password from the passwords assigned to it in any specific virtual container, and use a preset connection command and the selected password to connect the specific wireless network device to the wireless network to be tested, where the specific wireless network device is the wireless network device in the specific virtual container; if the connection between the specific wireless network device and the wireless network to be tested fails, it is determined that the selected password is not a weak password, the physical address of the specific wireless network device is modified, and the next password is selected to continue the test; if the connection between the specific wireless network device and the wireless network to be tested is successful, it is determined that the selected password is a weak password. That is, compared with the prior art, the present invention can realize the automated testing of weak passwords, can perform weak password testing independently and in parallel based on multiple virtual containers. During the whole testing process, no manual participation is required and multiple password tests can be executed simultaneously through multiple virtual containers. Therefore, the weak password testing time can be shortened, the weak password testing speed can be improved, and thus the weak password testing can be enhanced. In addition, the present invention can also avoid the situation of incorrect weak password judgment, thereby improving the accuracy rate of weak password testing.
[0079] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware online platform. Of course, they can also be implemented 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, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0080] The present invention can be used in numerous general-purpose or special-purpose computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and so on. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in a distributed computing environment where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0081] Obviously, the embodiments described above are only a part of the embodiments of the present invention, rather than all of the embodiments. The preferred embodiments of the present invention are given in the drawings, but do not limit the patent scope of the present invention. The present invention can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosed content of the present invention more thorough and comprehensive. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or perform equivalent replacements for some of the technical features. Any equivalent structure directly or indirectly using the content of the specification and drawings of the present invention in other related technical fields is similarly within the scope of the patent protection of the present invention.
Claims
1. A weak password testing method, characterized in that: include: Determining a plurality of wireless network devices disposed on a network routing device, and a plurality of virtual containers for isolating the plurality of wireless network devices respectively; Assign the passwords in the preset password list to each virtual container, and configure the physical addresses corresponding to each wireless network device; In any specific virtual container, a password is selected from each password assigned thereto, and a specific wireless network device is connected to the wireless network under test using a preset connection command and the selected password, wherein the specific wireless network device is a wireless network device in the specific virtual container; If the specific wireless network device is successfully connected to the tested wireless network, it is determined that the selected password is a weak password; If the specific wireless network device fails to connect to the tested wireless network, the selected password is determined to be a non-weak password, the physical address of the specific wireless network device is modified, and the next password is selected to continue the test until the test is completed.
2. The method according to claim 1, characterized in that The method further comprises: Using a preset chip set on a breadboard, multiple wireless network interfaces are constructed on a network routing device, and multiple wireless network devices are respectively set based on the multiple wireless network interfaces; By using the preset virtual container technology, multiple wireless network devices are separated and assigned to different multiple virtual containers.
3. The method according to claim 1, characterized in that The method of connecting the specific wireless network device to the wireless network under test by using the preset connection command and the selected password includes: Using a preset connection command and a selected password, the specific wireless network device is connected to a wireless access point corresponding to the wireless network being tested; If the specific wireless network device fails to connect to the wireless access point, determining that the specific wireless network device fails to connect to the tested wireless network; If the specific wireless network device is successfully connected to the wireless access point, the specific wireless network device is connected to a remote server corresponding to the tested wireless network; If the specific wireless network device fails to connect to the remote server, determining that the specific wireless network device fails to connect to the tested wireless network; If the specific wireless network device is successfully connected to the remote server, it is determined that the specific wireless network device is successfully connected to the tested wireless network.
4. The method according to claim 1, characterized in that: The method of connecting the specific wireless network device to the wireless network under test by using the preset connection command and the selected password includes: Creating a wireless network configuration file, and reading configuration information of the tested wireless network from the wireless network configuration file, the configuration information including but not limited to: identification information, connection type and security settings of the tested wireless network; The specific wireless network device is connected to the tested wireless network using the preset connection command, the selected password and the configuration information.
5. The method according to claim 1, characterized in that Before modifying the physical address of the specific wireless network device and selecting the next password to continue testing, the method further includes: Determining whether the selected password is the last password among the passwords assigned to the specific virtual container; If the selected password is the last password among the passwords assigned to the specific virtual container, then determining that the password test assigned to the specific virtual container is finished; The step of modifying the physical address of the specific wireless network device and selecting the next password to continue testing includes: If the selected password is not the last password among the passwords assigned to the specific virtual container, the physical address of the specific wireless network device is modified and the next password is selected to continue the test after a preset time when the specific wireless network device fails to connect to the tested wireless network.
6. The method according to claim 1, characterized in that The method further comprises: Record and save the test results of weak passwords; After testing the assigned passwords in each virtual container, determine whether there are weak passwords in the preset password list; If there is a weak password in the preset password list, it is determined that the set password corresponding to the tested wireless network is a weak password; If there is no weak password in the preset password list, it is determined that the set password corresponding to the tested wireless network is not a weak password.
7. The method according to claim 1, characterized in that The step of allocating the passwords in the preset password list to each virtual container includes: The passwords in the preset password list are randomly or evenly distributed to each virtual container.
8. A weak password testing device, characterized in that: include: A determination unit, configured to determine a plurality of wireless network devices disposed on the network routing apparatus, and a plurality of virtual containers for isolating the plurality of wireless network devices respectively; A configuration unit, used to assign passwords in a preset password list to each virtual container, and configure physical addresses corresponding to each wireless network device; A connection unit, configured to select a password from the passwords assigned to any specific virtual container, and connect the specific wireless network device to the tested wireless network using a preset connection command and the selected password, wherein the specific wireless network device is a wireless network device in the specific virtual container; The determining unit is configured to determine that the selected password is a weak password if the specific wireless network device is successfully connected to the tested wireless network; The determining unit is further configured to determine that the selected password is a non-weak password if the specific wireless network device fails to connect to the tested wireless network; The adjustment unit is used to modify the physical address of the specific wireless network device and select the next command to continue the test until the test is completed.
9. A storage medium, characterized in that: The storage medium stores a weak password testing program, which, when executed by a processor, implements the steps of the weak password testing method according to any one of claims 1 to 7.
10. A weak password testing device, storing a weak password testing program, wherein the processor implements the steps of the weak password testing method as described in any one of claims 1 to 7 when executing the weak password testing program.