CN112469038A - Reliability test method, system and storage medium for web authentication access network - Google Patents

Reliability test method, system and storage medium for web authentication access network Download PDF

Info

Publication number
CN112469038A
CN112469038A CN202011344152.5A CN202011344152A CN112469038A CN 112469038 A CN112469038 A CN 112469038A CN 202011344152 A CN202011344152 A CN 202011344152A CN 112469038 A CN112469038 A CN 112469038A
Authority
CN
China
Prior art keywords
wireless
program
test method
network card
reliability test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011344152.5A
Other languages
Chinese (zh)
Other versions
CN112469038B (en
Inventor
罗雪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tenda Technology Co Ltd
Original Assignee
Shenzhen Tenda Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tenda Technology Co Ltd filed Critical Shenzhen Tenda Technology Co Ltd
Priority to CN202011344152.5A priority Critical patent/CN112469038B/en
Publication of CN112469038A publication Critical patent/CN112469038A/en
Application granted granted Critical
Publication of CN112469038B publication Critical patent/CN112469038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a reliability test method, a system and a storage medium of a web authentication access network, wherein the reliability test method comprises the following steps: step 1: running the program with the identity of an administrator, and setting information parameters by a tester; step 2: setting the running times and starting testing; and step 3: acquiring the position of the wireless network card in a registry; and 4, step 4: program control modifies MAC address of wireless network card in register list; and 5: restarting the wireless network card by a program; step 6: adding a wireless configuration file according to the wireless information configured in the step 1, and starting to connect a wireless router; and 7: judging whether the connection of the wireless router is successful, if so, executing a step 8, otherwise, executing a processing step; and 8: the browser accesses a specified website; step 9; step 10; and 11. step. The invention has the beneficial effects that: the tester does not need to prepare multiple network cards for verification.

Description

Reliability test method, system and storage medium for web authentication access network
Technical Field
The present invention relates to the field of network testing, and in particular, to a method, a system, and a storage medium for testing the reliability of a web authentication access network.
Background
Currently, there are 1 test method:
1: and manually connecting wifi through different terminals, and then accessing an external network after WEB page authentication to verify whether the terminal WEB authentication is successful.
The defects of the test mode are as follows:
1: a plurality of wireless terminals need to be prepared.
2: the equipment needs to be manually replaced every time of testing, and then the wireless connection and authentication are carried out, so that the testing efficiency is low.
Disclosure of Invention
The invention provides a reliability test method of a web authentication access network, which comprises the following steps:
step 1: running the program with the identity of an administrator, and setting information parameters by a tester;
step 2: setting the running times and starting testing;
and step 3: acquiring the position of the wireless network card in a registry;
and 4, step 4: program control modifies MAC address of wireless network card in register list;
and 5: restarting the wireless network card by a program;
step 6: adding a wireless configuration file according to the wireless information configured in the step 1, and starting to connect a wireless router;
and 7: judging whether the connection of the wireless router is successful, if so, executing a step 8, otherwise, executing a processing step;
and 8: the browser accesses a specified website;
and step 9: judging whether the page can be jumped to a redirection page, if so, executing the step 10, otherwise, executing the processing step;
step 10: inputting an account password into the authentication page for authentication, judging whether the authentication is successful or not by the program through acquiring a page return value, if so, executing a step 11, otherwise, executing a processing step;
step 11: connecting an address of an external network server, copying resources of the external network server, recording the success of the web authentication of the wireless terminal for 1 time, and returning to execute the step 4;
the processing steps are as follows: the web authentication of the terminal fails, the web authentication failure of the wireless terminal is recorded for 1 time, and then the step 4 is executed;
and stopping the program when the test times reach the running times set in the step 2.
As a further improvement of the present invention, in the step 1, the information parameters include an operating system type, a tested wireless network card name, an authenticated wireless network name, an encryption mode and a password, and the resources of the external network server are selected and copied.
As a further improvement of the present invention, in said step 3, the program introduces a winreg module, and obtains the location of the wireless network card in the registry through the operating system type and the name of the wireless network card.
As a further improvement of the present invention, in said step 5, the program introduces an os module, and restarts the wireless network card through os.
As a further improvement of the invention, in the step 6, the program introduces a pywifi module, adds a wireless configuration file according to the wireless information configured in the step 1, and starts to connect the wireless router.
As a further improvement of the present invention, in the step 8, a browser is opened by using Webdrive in Python and a specified address is accessed.
As a further improvement of the present invention, in step 9, the program determines whether to jump to the redirection page by obtaining the flag element of the authentication page.
The invention also discloses a reliability test system of the web authentication access network, which comprises the following steps: a memory, a processor and a computer program stored on the memory, the computer program being configured to implement the steps of the reliability test method of the invention when invoked by the processor.
The invention also discloses a computer readable storage medium storing a computer program configured to implement the steps of the reliability testing method of the invention when invoked by a processor.
The invention has the beneficial effects that: 1. the tester does not need to prepare a plurality of network cards for verification; 2. when the operating system and the network card equipment are replaced, the program can automatically judge and judge the position of the identification network card in the registry only by inputting corresponding information in a popup page after the program runs; 3. when wireless information (SSID, encryption mode and password) changes, only corresponding information needs to be input into a popup page after a program runs, and the program can automatically add a corresponding wireless configuration file and connect a test; after the Web page authentication is successful, the network connection state of the terminal can be further confirmed by copying server resources; 5. the reliability test method can simulate a plurality of clients to authenticate the internet at the same time.
Drawings
FIG. 1 is a flow chart of a reliability test method of the present invention.
Detailed Description
As shown in FIG. 1, the invention discloses a reliability test method for a web authentication access network, which verifies the reliability of repeated web authentication access of multiple users by providing a python3 to operate a windows system registry, realizing that one wireless network card simulates multiple users by modifying the registry, and connecting local wifi and copying external server resources after web authentication.
The technical scheme adopted by the invention is as follows:
firstly, building a test networking environment:
the required equipment is as follows: one PC, one wireless network card and one wireless router (with web authentication function)
Preparation before testing: PC installation python3 (import webdriver module, selenium module, pywifi module, winreg module, os module)
The test steps are as follows:
step 1: the Web authentication is run with the administrator identity, the exe program, the tester sets the information parameters: the type of the operating system, the name of the tested wireless network card, the name of the authenticated wireless network, the encryption mode and the password, and the resources of the external network server are selected and copied.
Step 2: and setting the running times and starting the test.
And step 3: and the program introduces a winreg module and acquires the position of the wireless network card in the registry through the type of the operating system and the name of the wireless network card.
And 4, step 4: program control modifies the MAC address of the wireless network card in the registry.
And 5: and (4) introducing the program into an os module, and restarting the wireless network card through os.
Step 6: and (4) introducing a program into a pywifi module, adding a wireless configuration file according to the wireless information configured in the step (1), and starting to connect the wireless router.
And 7: and judging whether the wireless router connection is successful (namely, whether the scanning and connecting specified wireless ssid is successful) or not, if so, executing the step 8, and otherwise, executing the processing step.
And 8: and the browser accesses the specified website, opens the browser by using the Webdrive in the Python and accesses the specified address.
And step 9: judging whether the page can be jumped to a redirection page, if so, executing the step 10, otherwise, executing the processing step; and the program judges whether to jump to the redirection page or not by acquiring the mark element of the authentication page. And if the browser page jumps to the redirection authentication page, the authentication page jumps effectively when the user accesses the website after connecting the wireless network.
Step 10: and (3) inputting an account password to the authentication page for authentication (the account password is input and confirmed by using a selenium tool in an xpath mode), judging whether the authentication is successful or not by the program by acquiring a page return value, if so, executing a step 11, and otherwise, executing a processing step.
Step 11: and connecting the address of the external network server, copying the resources of the external network server, recording the success of the web authentication of the wireless terminal for 1 time, and returning to execute the step 4.
The processing steps are as follows: and the terminal web authentication fails, the wireless terminal web authentication failure is recorded for 1 time, and then the step 4 is executed in a returning way.
And stopping the program when the test times reach the running times set in the step 2.
Thirdly, using steps:
1. and (4) preparing an environment by a tester, and setting a wireless configuration and authentication mode for the router to be tested.
2. The administrator identity operation reliability test tool inputs configuration information on a popped up graphical interface, and the configuration information comprises the following steps: the type of the operating system, the name of the tested wireless network card, the name of the authenticated wireless network, the encryption mode and the password, the resources of the external network server are selected and copied, and the next step is clicked.
3. The tester can set the number of tests and click on "next".
4. The tester can set the report saving name and the path, and click on 'start test'.
5. The testing tool completes each test and saves the report.
6. And (5) after the test is finished, the tester checks the test report and analyzes the result.
The invention also discloses a reliability test system of the web authentication access network, which comprises the following steps: a memory, a processor and a computer program stored on the memory, the computer program being configured to implement the steps of the reliability test method of the invention when invoked by the processor.
The invention also discloses a computer readable storage medium storing a computer program configured to implement the steps of the reliability testing method of the invention when invoked by a processor.
The invention has the beneficial effects that: 1. the tester does not need to prepare a plurality of network cards for verification; 2. when the operating system and the network card equipment are replaced, the program can automatically judge and judge the position of the identification network card in the registry only by inputting corresponding information in a popup page after the program runs; 3. when wireless information (SSID, encryption mode and password) changes, only corresponding information needs to be input into a popup page after a program runs, and the program can automatically add a corresponding wireless configuration file and connect a test; after the Web page authentication is successful, the network connection state of the terminal can be further confirmed by copying server resources; 5. the reliability test method can simulate a plurality of clients to authenticate the internet at the same time.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (9)

1. A reliability test method of a web authentication access network is characterized by comprising the following steps:
step 1: running the program with the identity of an administrator, and setting information parameters by a tester;
step 2: setting the running times and starting testing;
and step 3: acquiring the position of the wireless network card in a registry;
and 4, step 4: program control modifies MAC address of wireless network card in register list;
and 5: restarting the wireless network card by a program;
step 6: adding a wireless configuration file according to the wireless information configured in the step 1, and starting to connect a wireless router;
and 7: judging whether the connection of the wireless router is successful, if so, executing a step 8, otherwise, executing a processing step;
and 8: the browser accesses a specified website;
and step 9: judging whether the page can be jumped to a redirection page, if so, executing the step 10, otherwise, executing the processing step;
step 10: inputting an account password into the authentication page for authentication, judging whether the authentication is successful or not by the program through acquiring a page return value, if so, executing a step 11, otherwise, executing a processing step;
step 11: connecting an address of an external network server, copying resources of the external network server, recording the success of the web authentication of the wireless terminal for 1 time, and returning to execute the step 4;
the processing steps are as follows: the web authentication of the terminal fails, the web authentication failure of the wireless terminal is recorded for 1 time, and then the step 4 is executed;
and stopping the program when the test times reach the running times set in the step 2.
2. The reliability test method according to claim 1, characterized in that: in the step 1, the information parameters include the type of the operating system, the name of the tested wireless network card, the name of the authenticated wireless network, the encryption mode and the password, and the resources of the external network server are selected and copied.
3. The reliability test method according to claim 1, characterized in that: in the step 3, the program introduces a winreg module, and obtains the position of the wireless network card in the registry through the type of the operating system and the name of the wireless network card.
4. The reliability test method according to claim 1, characterized in that: in step 5, the program introduces an os module, and restarts the wireless network card through os.
5. The reliability test method according to claim 1, characterized in that: in the step 6, a program introduces a pywifi module, adds a wireless configuration file according to the wireless information configured in the step 1, and starts to connect the wireless router.
6. The reliability test method according to claim 1, characterized in that: in the step 8, a browser is opened by using Webdrive in Python and a specified address is accessed.
7. The reliability test method according to claim 1, characterized in that: in step 9, the program determines whether to jump to the redirection page by obtaining the flag element of the authentication page.
8. A reliability testing system for a web-certified access network, comprising: a memory, a processor, and a computer program stored on the memory, the computer program configured to, when invoked by the processor, implement the steps of the reliability testing method of any of claims 1-7.
9. A computer-readable storage medium characterized by: the computer readable storage medium stores a computer program configured to, when invoked by a processor, implement the steps of the reliability testing method of any of claims 1-7.
CN202011344152.5A 2020-11-25 2020-11-25 Reliability test method, system and storage medium for web authentication access network Active CN112469038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011344152.5A CN112469038B (en) 2020-11-25 2020-11-25 Reliability test method, system and storage medium for web authentication access network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011344152.5A CN112469038B (en) 2020-11-25 2020-11-25 Reliability test method, system and storage medium for web authentication access network

Publications (2)

Publication Number Publication Date
CN112469038A true CN112469038A (en) 2021-03-09
CN112469038B CN112469038B (en) 2023-04-04

Family

ID=74809459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011344152.5A Active CN112469038B (en) 2020-11-25 2020-11-25 Reliability test method, system and storage medium for web authentication access network

Country Status (1)

Country Link
CN (1) CN112469038B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050235044A1 (en) * 2004-04-20 2005-10-20 Tazuma Stanley K Apparatus and methods relating to web browser redirection
WO2010011792A2 (en) * 2008-07-22 2010-01-28 Widemile Inc. Method and system for web-site testing
CN107509215A (en) * 2017-07-26 2017-12-22 上海斐讯数据通信技术有限公司 A kind of wireless authentication automated testing method and system
CN109491899A (en) * 2018-10-23 2019-03-19 深圳市吉祥腾达科技有限公司 A kind of method for testing reliability of Wireless Communication Equipment multiple terminals attack

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050235044A1 (en) * 2004-04-20 2005-10-20 Tazuma Stanley K Apparatus and methods relating to web browser redirection
WO2010011792A2 (en) * 2008-07-22 2010-01-28 Widemile Inc. Method and system for web-site testing
CN107509215A (en) * 2017-07-26 2017-12-22 上海斐讯数据通信技术有限公司 A kind of wireless authentication automated testing method and system
CN109491899A (en) * 2018-10-23 2019-03-19 深圳市吉祥腾达科技有限公司 A kind of method for testing reliability of Wireless Communication Equipment multiple terminals attack

Also Published As

Publication number Publication date
CN112469038B (en) 2023-04-04

Similar Documents

Publication Publication Date Title
CN109639740B (en) Login state sharing method and device based on equipment ID
US9769155B2 (en) Login method and apparatus, and open platform system
US10587612B2 (en) Automated detection of login sequence for web form-based authentication
US11086983B2 (en) System and method for authenticating safe software
US9229844B2 (en) System and method for monitoring web service
CN102347941B (en) A kind of safety applications control method based on open platform
WO2017008581A1 (en) Method, client, and system for testing application
US20210326196A1 (en) A remediation system to prevent incompatible program module installation in an information processing system
CN109669859B (en) Service testing method, device, computer equipment and storage medium
CN105550598B (en) A kind of method for managing security and device of movable storage device
KR20110128632A (en) Method and device for detecting malicious action of application program for smartphone
CN109361713A (en) Internet risk monitoring and control method, apparatus, equipment and storage medium
CN110119350A (en) Software Development Kit test method, device and equipment and computer storage medium
US10423793B2 (en) Install runtime agent for security test
CN103001934A (en) Terminal application login method and terminal application login system
CN116166525A (en) Method and device for generating test script
CN112699034B (en) Virtual login user construction method, device, equipment and storage medium
CN112469038B (en) Reliability test method, system and storage medium for web authentication access network
CN111414309B (en) Automatic test method of application program, computer equipment and storage medium
CN111857758B (en) Application deployment method, device and medium
CN104158812B (en) The method of controlling security and system of a kind of terminal applies
CN107766068A (en) Application system patch installation, device, computer equipment and storage medium
US20190098045A1 (en) Browser injection prevention method, browser client and apparatus
CN113608932B (en) Database drilling method, device, equipment and storage medium
CN115408298A (en) Test method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant