WO2019161658A1 - 动态域名验证方法、系统、计算机设备和存储介质 - Google Patents
动态域名验证方法、系统、计算机设备和存储介质 Download PDFInfo
- Publication number
- WO2019161658A1 WO2019161658A1 PCT/CN2018/105170 CN2018105170W WO2019161658A1 WO 2019161658 A1 WO2019161658 A1 WO 2019161658A1 CN 2018105170 W CN2018105170 W CN 2018105170W WO 2019161658 A1 WO2019161658 A1 WO 2019161658A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- url
- file
- dynamic
- static
- verification
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/55—Detecting local intrusion or implementing counter-measures
- G06F21/552—Detecting local intrusion or implementing counter-measures involving long-term monitoring or reporting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2119—Authenticating web pages, e.g. with suspicious links
Definitions
- the present application relates to the field of domain name verification, and in particular, to a dynamic domain name verification method, system, computer device, and storage medium.
- the mainstream security scanning tool can only scan static URLs, and can't scan URLs with login status or dynamically generated URLs.
- the possibility of scanning URLs in a comprehensive way is minimal.
- the dynamic and static URLs of website migration are usually thousands. Tens of thousands of URLs of various corners may not be considered. If manual testing is used, it is time consuming and laborious, and it is extremely easy to miss.
- a dynamic domain name verification method includes: obtaining a parameterized element; performing arrayed configuration on the parameterized element, storing the configured array in a CSV1 file for storing and reading the array; and in an array in the CSV1 file
- Each parameterized element is traversed and combined to generate a plurality of static URLs and dynamic URLs; storing the generated plurality of static URLs and dynamic URLs into a CSV2 file for storing and reading the static URLs and dynamic URLs;
- the static URL and the dynamic URL are placed into the browser one by one to access the verification, and then the verification result is stored in a CSV3 file for storing and reading the verification result; the URL of the verification failure in the CSV3 file is filtered out, and the positioning analysis is performed.
- the embodiment of the present application further provides a dynamic domain name verification system, including: acquiring an element module, which is set to obtain a parameterized element; and an arrayed configuration module, configured to perform array configuration on the parameterized element,
- the configured array is stored in a CSV1 file for storing and reading the array;
- the URL generation module is configured to traverse and combine the various parameterized elements in the array in the CSV1 file to generate multiple static URLs and dynamic URLs;
- a module configured to store the generated plurality of static URLs and dynamic URLs into a CSV2 file for storing and reading the static URLs and dynamic URLs;
- the URL verification module is configured to place the static URLs and the dynamic URLs one by one
- the verification is performed in the browser, and then the verification result is stored in a CSV3 file for storing and reading the verification result;
- the verification result analysis module is set to filter out the URL of the verification failure in the CSV3 file for positioning analysis.
- the embodiment of the present application further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor performs the above dynamic when executing the computer readable instructions.
- a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor performs the above dynamic when executing the computer readable instructions.
- an embodiment of the present application further provides a storage medium storing computer readable instructions, when executed by one or more processors, causing one or more processors to execute the above The steps in the dynamic domain name verification method.
- the above dynamic domain name verification method, system, computer device and storage medium obtain parameterized elements by reading from a database configuration file or a database, including a hypertext transfer protocol, a hypertext transfer security protocol, a domain name, a port, a path, a product number, and Product item number, etc., then array the obtained parameterized elements and generate an extended markup language file, and then generate static and dynamic URLs according to the profile combination rule, write the generated URL into a character-separated value file, and read the character-separated value file.
- the table data is stored in plain text, and then the URL is placed in the browser for access verification, and the URL is verified to have an error message.
- the result is returned and the result of the verification failure is written into the CSV1 file; If the URL is passed, the result of the verification is directly written into the CSV2 file; the verification result is written into the CSV3 file, and the result analysis script is started to analyze and filter the verification result, filter the URL of the verification failure, perform positioning analysis, and finally save. All verification and analysis results information, close file.
- the beneficial technical effect of the present application is that the verification method ensures the safe and correct migration of such projects, and the domain name migration test is more efficient and comprehensive.
- FIG. 1 is a flowchart of a dynamic domain name verification method according to an embodiment of the present application.
- FIG. 3 is a flowchart of generating a CSV1 file in an embodiment of the present application.
- FIG. 5 is a flowchart of URL arraying in an embodiment of the present application.
- FIG. 6 is a flowchart of a URL verification method in an embodiment of the present application.
- FIG. 7 is a flowchart of analyzing a generated URL in an embodiment of the present application.
- FIG. 8 is a diagram of a dynamic domain name verification module in an embodiment of the present application.
- FIG. 1 is a flowchart of a dynamic domain name verification method in an embodiment. As shown in the figure, the dynamic domain name verification method includes:
- the parameterized element is typically obtained from a database or a corresponding database file, including hypertext transfer protocol, hypertext transfer security protocol, domain name, port, path, directory, and directory listing.
- S2 Arraying the parameterized elements, and storing the configured array into a CSV1 file for storing and reading the array.
- the CSV1 file is a character-separated value file, and the elements of the same type are filtered according to the configuration program, and are organized in an unordered form to form an array to generate a CSV1 file.
- S3 traverse the various parameterized elements in the array in the CSV1 file to generate multiple static URLs and dynamic URLs.
- the parameterized element is imported into an XML file (extensible markup language file) to generate a URL. If the URL generation fails, an error message is reported. If the URL is successfully generated, the generated URL is saved and the traversal is continued.
- XML file extensible markup language file
- S4 Store the generated multiple static URLs and dynamic URLs into a CSV2 file for storing and reading the static URLs and dynamic URLs.
- the URL is read out in the form of a line to obtain the static URL and the dynamic URL, and written into the CSV2 file, converted into an array, and then read the contents of the array in the form of a byte stream, and finally Store CSV2 table data in plain text.
- S5 The static URL and the dynamic URL are placed into the browser one by one to access the verification, and then the verification result is stored in a CSV3 file for storing and reading the verification result.
- S1 may include S101 and S102.
- the parameter is obtained by calling the Get Element method by reading the database configuration file, and the Get Element is to obtain the parameterized element, and when the specific element of the document is operated, the element is given an ID attribute in the document. Give it a unique name and then use the ID to find the target element.
- S102 Obtain parameterized elements according to the database configuration file, where the parameterized elements include a hypertext transfer protocol, a hypertext transfer security protocol, a domain name, a port, a path, a directory, and a directory list.
- the parameterized elements include a hypertext transfer protocol, a hypertext transfer security protocol, a domain name, a port, a path, a directory, and a directory list.
- the parameterized elements include hypertext transfer protocol, hypertext transfer security protocol, domain name, port, path, directory and directory listing.
- FIG. 3 is a flow chart of generating a CSV1 file in one embodiment.
- S2 includes S201 to S203:
- S201 Filtering elements having the same type according to a configuration program to form a plurality of arrays.
- a structured XML file is generated based on the tagged electronic file and the defined electronic data type.
- a mark refers to an information symbol that a computer can understand. Through such a mark, a computer can process various information such as an article, which can be used to mark data, define a data type, and is a user.
- the source language that defines your markup language. It is ideal for web transport and provides a unified way to describe and exchange structured data that is independent of the application or vendor. It is a cross-platform, content-dependent technology in the Internet environment, and an effective tool for processing distributed structure information today.
- S202 Start a read script, and read an array formed by parameterized elements in the configuration file according to a configuration rule.
- the array in the configuration file is read according to the configuration rules.
- S203 Store the configured array into a CSV1 file for storing and reading the array.
- the array is an unordered sequence of elements. If a finite set of variables of the same type is named, the name is an array name, and each variable constituting the array is called an array component, also called an array. The element, sometimes called the subscript variable, is used to distinguish the numeric number of each element of the array.
- the array is in the program design. For the convenience of processing, several elements of the same type are disordered.
- a form of formal organization a collection of such unordered data elements of the same type is called an array; the array element is a basic unit that constitutes an array; the array element is also a variable whose identification method is an array name followed by an array Subscript; subscript indicates the sequence number of the element in the array; the general form of the array element is: array name [subscript] where the subscript can only be an integer constant or an integer expression; C compiler will automatically round; for example, a[5], a[i+j], a[i++] are legal array elements; array elements are also commonly referred to as subscript variables; you must define an array before you can use Index variable; only individually using the index variable in the C language, one can not refer to the entire array.
- traversing the combined numbers 1, 2, 3, the result is 1, 2, 3; 12, 13, 21, 23, 31, 32; 123, 132, 213, 231, 312, 321; the traversal combination of configuration elements includes multiple combinations of different characters.
- S3 includes S301 to S304:
- S302 traversing and combining the structural parameterized elements in the number of groups, arbitrarily combining the prefix, the domain name, and other paths, generating a plurality of static URLs and dynamic URLs, and determining whether the static URLs and dynamic URLs are generated. success.
- the parameterized element is imported into the XML file that can mark the electronic data and define the electronic data type;
- the XML file and configuration combination rule generates the static URL and the dynamic URL, ie the static URL and the dynamic URL;
- the URL is a compact representation of a resource location and access method available from the Internet, is the Internet
- the address of the standard resource, each file on the Internet has a unique one of the URLs, which contains information indicating the location of the file and how the browser should handle it.
- the generated URL that is, the Internet resource URL
- the CSV1 character separation value file is composed of any number of records, and the recording is performed by some kind Line breaks are separated; each record consists of fields, and the separator between the fields is other characters or strings, the most common being commas or tabs.
- all records have exactly the same sequence of fields. Usually they are plain text files.
- the advantage of the dynamic URL is that the technical maintenance workload is much lower, but many interactive content, such as shopping carts, registrations, and other specific background functions must be used, each time the user accesses the dynamic URL.
- Loading content from the database and page template loading this will have an impact on the speed of access, if not handled, this delay will have a long waiting process, while the server broadband, search engine crawl crawl will produce Certain adverse effects; pure static URL suffixes are mostly html, htm form, the pure static URL advantage is that the access speed is fast, the experience is better, because this is the real physical path of the file, the real existence of the page, Search engines are easy to crawl. Every time the new content is generated directly to the static page, the performance of the server is a big test. If each page has to be found directly, the disk and memory consumption is quite large. Relatively speaking, bandwidth takes up much less than dynamic URLs.
- the generated result is saved, and the total traversal combination in the XML file is continued to generate a dynamic URL or a static URL.
- FIG. 5 is a flow chart of reading a static URL and a dynamic URL in one embodiment.
- S4 includes S401 to S403:
- S401 Deposit the static URL and the dynamic URL into the CSV2 file according to the generated static URL.
- the CSV2 file stores data and text in plain text. After traversing the parameterized elements, the generated dynamic URL and static URL are written into the CSV2 file.
- S402 Store the static URL and the dynamic URL in plain text according to the attributes of the CSV2 file.
- S403 Read the static URL and the dynamic URL in a byte stream according to a specific encoding.
- a byte stream is a continuous stream that does not contain boundary data. It is mainly used to process binary data. It is processed in bytes, but in practice many data are text. In this application, the array is read as a byte stream. .
- Plain text means that the file is a sequence of characters that does not contain data that must be interpreted like a binary number.
- the CSV2 file consists of any number of records separated by a line break, each record consisting of fields. The separator between fields is other characters or strings, the most common is a comma or a tab; the contents of the written file are converted into an array according to the character-separated value file; the byte stream can be used to read the file as a line
- the byte stream is a reader that reads the imported file from the byte stream in a specific encoding; the character-separated value file stores the table data in plain text.
- FIG. 6 is a flowchart of a URL verification method in an embodiment. As shown, S5 includes 501 to S505.
- S501 Automatically execute all test processes or partial test processes of the static URL and the dynamic URL described in CSV2 according to the scan test script.
- the scan test script which is a computer readable instruction that automatically executes a test process or a partial test process, which can be created or automatically generated using a test automation tool, or programmed in a programming language, or integrated in the above manner.
- the authoring request scans the test script, the test script automatically executes the test process, or a computer readable instruction that partially tests the process, the test script is created or automatically generated using a test automation tool.
- S502 Read a static URL and a dynamic URL in the CSV2 file, and then perform an access request for the static URL and the dynamic URL one by one in a browser.
- the CSV2 file consists of any number of records separated by a line break; each record consists of fields, and the separator between fields is Other characters or strings, most commonly commas or tabs, usually all records have exactly the same sequence of fields.
- S503 Determine the validity of the static URL and the dynamic URL verification.
- the server may respond to the hypertext transfer protocol 404 or Not Found error message for the hypertext transfer protocol.
- the above two response modes are a standard response message status code of the hypertext transfer protocol, and the information represents the client.
- the server cannot provide information properly, or the server cannot respond and does not know why.
- the server setting "err404” points to a designed HTML file.
- the page returns the "err404" status code
- the IDC provider basically provides the function of the "err404" setting, and directly uploads the file setting.
- the setting method in IIS is to open the IIS manager, then click the website attribute of the custom "err404" to be set, click the custom error option, select the "err404" page, select and open the edit attribute, fill in "/err404.HTML", press OK to exit, the HTML page is uploaded to the root directory of the website, and the file or default value is selected in the message type instead of the URL, otherwise it will result in returning the 200 status code.
- the successful verification result is directly stored in the CSV file, and the verification result information is saved.
- FIG. 7 is a flow chart of analyzing the generated URL location in an embodiment. As shown in the figure, S6 includes 601 to S603.
- S601 Compiling a result analysis script, and converting the result analysis script into an executable file having a function of reading a CSV3 file by a compiler.
- S602 Analyze and filter the verification result in the CSV3 file by using the result analysis script.
- the URL is verified, the browser is opened, and the URL is written into the address bar one by one for access; the browser is a fast and secure web browser, and each dynamic and static URL is placed into the browser one by one. The same access was made in the address bar.
- the result of the access of the URL is detected, and it is determined whether the title of the current page is the 404 exception, to determine whether the domain name migration is normal.
- the CSV3 file stores table data, numbers and text in the plain text form
- the plain text means that the file is a sequence of characters, and does not contain data that must be interpreted like a binary number
- the CSV3 file Consists of any number of records, separated by a line break; each record consists of fields, the separator between the fields is other characters or strings, most commonly commas or tabs.
- the result analysis script is started, and the result analysis script is an executable file written according to a certain format, a text code written by a text editor, and then the compiler is used to parse the meaning of the text expression and the execution content; analyzing the script by using the result
- the verification result in the CSV3 file is analyzed and filtered, and the URL that fails verification is filtered out to perform positioning analysis.
- the embodiment of the present application further provides a dynamic domain name verification system.
- the dynamic domain name verification system includes an acquisition element module, which is configured to acquire a parameterized element, and an array configuration module. To perform an arrayed configuration of the parameterized elements, the configured array is stored in a CSV1 file for storing and reading the array; the URL generation module is configured to traverse the various parameterized elements in the array in the CSV1 file.
- the storage module is configured to store the generated plurality of static URLs and dynamic URLs into a CSV2 file for storing and reading the static URLs and dynamic URLs;
- a URL verification module setting In order to put the static URL and the dynamic URL into the browser one by one to access the verification, then the verification result is stored in a CSV3 file for storing and reading the verification result; the verification result analysis module is set to filter out the CSV3 file. Verify the failed URL for location analysis.
- the get element module includes a configuration read module configured to read a database configuration file, and a parameterized element acquisition module configured to obtain a parameterized element according to the database configuration file, the parameterized element including the super At least one of a text transfer protocol, a hypertext transfer security protocol, a domain name, a port, a path, a directory, or a directory listing
- the arrayed configuration module includes an array forming module configured to filter elements having the same type according to a configuration program to form a plurality of arrays; an array configuration module configured to start a read script and read according to a configuration rule An array formed by parameterized elements in the configuration file; an array storage module configured to store the configured array in a CSV1 file for storing and reading the array.
- the URL generation module includes a parameterized element tagging module configured to import the parameterized element into an XML file, by tagging the parameterized elements in the array to make it structural; traversing the generation module, setting In order to traverse the structured parameterized elements in the group number, the prefix, the domain name, and other paths are arranged in an arbitrary combination, and multiple static URLs and dynamic URLs are generated, and whether the static URL and the dynamic URL are successfully generated are generated.
- the exception handling module is configured to report an error message if the static URL and the dynamic URL are generated, and continue to traverse the parameterized element of the verification failure; save the module, and set the static URL and the dynamic URL to be successfully generated. , save the generated results.
- the file stored in the storage module comprises a module provided according to the generated URL static and dynamic URL, which is stored in the file CSV2; text storage module according to the attribute set CSV2 file, in plain text
- the static URL and the dynamic URL are stored in a form;
- the byte stream storage module is configured to read the static URL and the dynamic URL in a byte stream according to a specific encoding.
- the URL verification module includes an automatic test module configured to automatically execute all test procedures or partial test procedures of the static URL and the dynamic URL in the CSV2 according to the scan test script; the access request module is set to read Describe the static URL and the dynamic URL in the CSV2 file, and then access the static URL and the dynamic URL one by one in the browser; the validity determining module is configured to determine the validity of the static URL and the dynamic URL verification; The verification failure record module is set to return the result of the verification failure if the static URL and the dynamic URL are valid when the verification is valid, and record the result of the verification failure in the CSV3 file; the verification succeeds in saving the module, setting If the verification is successful when the static URL and the dynamic URL are valid, the result of the verification success is directly saved in the CSV3 file.
- the CSV3 file stores table data, numbers, and text in plain text.
- the verification result analysis module includes a script conversion module configured to compile a result analysis script, and the result analysis script is converted by the compiler into an executable file having a function of reading a CSV3 file; the analysis filter module is set to Through the result analysis script, the verification result in the CSV3 file is analyzed and filtered; the URL that fails the verification is filtered out, and the positioning analysis is performed.
- the embodiment of the present application further provides a computer device, including a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, where the processor executes the computer readable instructions The steps of the dynamic domain name verification method in each embodiment.
- the embodiment of the present application further provides a storage medium storing computer readable instructions, when executed by one or more processors, causing one or more processors to execute the foregoing The steps of the dynamic domain name verification method in the embodiment.
- the storage medium may be a non-volatile storage medium.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Storage Device Security (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
一种动态域名验证方法、系统、计算机设备和存储介质。包括步骤:获取参数化元素(S1);对参数化元素进行数组化配置,将配置后的数组存入一用于存储和读取所述数组的CSV1文件(S2);对CSV1文件中数组内各个参数化元素进行遍历组合,生成多个静态URL和动态URL(S3);将生成的多个静态URL和动态URL存入一用于存储和读取所述静态URL和动态URL的CSV2文件(S4);将所述静态URL和动态URL逐个放入浏览器中访问验证,然后,将验证结果并将验证结果存入一用于存储和读取验证结果的CSV3文件(S5);过滤出CSV3文件中验证失败的URL,进行定位分析(S6)。该验证方法保证了此类项目安全正确的迁移,域名迁移类测试更高效、更全面。
Description
本申请要求于2018年02月24日提交中国专利局、申请号为201810156825.0、发明名称为“动态域名验证方法、系统、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及域名验证领域,尤其涉及一种动态域名验证方法、系统、计算机设备和存储介质。
为了适应业务发展以及业务划分的需求等问题,要对原有网站进行域名迁移,就需要对需要对整个网站做全面的安全扫描测试,并对全网站的请求、静态链接、图片等进行测试,以确保域名迁移、更换成功。但目前普通工具对此类项目的测试还面临以下主要难题。
主流的安全扫描工具只能扫描静态URL,无法扫描到带有登录态的或者动态生成的URL,对URL进行全方位扫描的可能性更是微乎其微;进行域名迁移的网站动态、静态URL通常成千上万,各种边角的URL可能会考虑不到,若使用手工测试,既耗时耗力,也极易漏测。
针对以上问题,急需一种动态域名验证方法,以保证此类项目安全正确的迁移,使域名迁移类测试更高效、更全面。
发明内容
基于此,有必要针对只能扫描所述静态URL主流的安全扫描工具,无法扫描到带有登录状态的或者动态生成的所述URL,更难以扫描到全部所述URL,若使用手工测试,既耗时耗力,也极易漏测的问题,提供一种动态域名验证方法。
一种动态域名验证方法,包括:获取参数化元素;对参数化元素进行数组化配置,将配置后的数组存入一用于存储和读取所述数组的CSV1文件;对CSV1 文件中数组内各个参数化元素进行遍历组合,生成多个静态URL和动态URL;将生成的多个静态URL和动态URL存入一用于存储和读取所述静态URL和动态URL的CSV2文件;将所述静态URL和动态URL逐个放入浏览器中访问验证,然后,将验证结果存入一用于存储和读取验证结果的CSV3文件;过滤出CSV3文件中验证失败的URL,进行定位分析。
基于相同的技术构思,本申请实施例还提供了一种动态域名验证系统,包括:获取元素模块,设置为获取参数化元素;数组化配置模块,设置为对参数化元素进行数组化配置,将配置后的数组存入一用于存储和读取所述数组的CSV1文件;URL生成模块,设置为对CSV1文件中数组内各个参数化元素进行遍历组合,生成多个静态URL和动态URL;存储模块,设置为将生成的多个静态URL和动态URL存入一用于存储和读取所述静态URL和动态URL的CSV2文件;URL验证模块,设置为将所述静态URL和动态URL逐个放入浏览器中访问验证,然后,将验证结果存入一用于存储和读取验证结果的CSV3文件;验证结果分析模块,设置为过滤出CSV3文件中验证失败的URL,进行定位分析。
基于相同的技术构思,本申请实施例还提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机可读指令时执行上述动态域名验证方法中的步骤。
基于相同的技术构思,本申请实施例还提供了一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述动态域名验证方法中的步骤。
上述动态域名验证方法、系统、计算机设备和存储介质,通过从数据库配置文件或数据库中读取获取参数化元素,包括超文本传输协议,超文本传输安全协议,域名,端口,路径,产品编号和产品货号等,然后将获取的参数化元素数组化配置并生成扩展标记语言文件,再根据配置文件组合规则生成静态以及动态URL,将生成的URL写入字符分隔值文件,读取字符分隔值文件,以纯文本形式存储表格数据,然后将URL放入浏览器进行访问验证,验证上述URL是 否有错误信息,对于验证失败的结果,则返回结果并将验证失败的结果写入CSV1文件中;对于验证通过的URL,则直接将验证成功的结果写入CSV2文件中;将验证结果写入CSV3文件,启动结果分析脚本对验证结果进行分析过滤,将验证失败的URL过滤出来,进行定位分析,最后保存所有验证及分析结果信息,关闭文件。与现有技术相比,本申请的有益技术效果是:此验证方法保证了此类项目安全正确的迁移,域名迁移类测试更高效、更全面。
图1为本申请一个实施例中动态域名验证方法流程图;
图2为本申请一个实施例中获取待验证参数流程图;
图3为本申请一个实施例中生成CSV1文件流程图;
图4为本申请一个实施例中URL的生成及验证流程图;
图5为本申请一个实施例中URL数组化流程图;
图6为本申请一个实施例中URL验证方法流程图;
图7为本申请一个实施例中对生成的URL定位分析流程图;
图8为本申请一个实施例中动态域名验证模块图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
图1为一个实施例中动态域名验证方法的流程图,如图示,所述动态域名验证方法包括:
S1:获取参数化元素。
一般是从数据库或对应的数据库文件中获取该参数化元素,所述参数化元素包括超文本传输协议,超文本传输安全协议,域名,端口,路径,目录和目录清单。
S2:对参数化元素进行数组化配置,将配置后的数组存入一用于存储和读取所述数组的CSV1文件。
所述CSV1文件是字符分隔值文件,根据配置程序筛选具有相同类型的元素,将其按无序形式组织起来形成数组后生成CSV1文件。
S3:对CSV1文件中数组内各个参数化元素进行遍历组合,生成多个静态URL和动态URL。
将参数化元素导入到XML文件(可扩展标记语言文件)中,生成URL,若URL生成失败,则报告错误信息,若URL生成成功,则保存生成的URL,并继续遍历。
S4:将生成的多个静态URL和动态URL存入一用于存储和读取所述静态URL和动态URL的CSV2文件。
将URL以行的形式把字符读取出来,以获取所述静态URL和所述动态URL,并写入CSV2文件内,将其转换成数组,再以字节流的形式读取数组内容,最后以纯文本形式存储CSV2表格数据。
S5:将所述静态URL和动态URL逐个放入浏览器中访问验证,然后,将验证结果存入一用于存储和读取验证结果的CSV3文件。
将URL放入浏览器中进行访问,验证URL的有效性,如是否存在“err404”问题。
S6:过滤出CSV3文件中验证失败的URL,进行定位分析。
若验证失败,如出现“err404”,则返回失败的验证结果,并写入所述CSV3文件中,若验证成功,则直接保存验证成功的URL,并关闭文件。
图2为一个实施例中获取待验证元素的流程图,如图示,S1可以包括S101 和S102。
S101:读取数据库配置文件。
通过读取数据库配置文件,调用Get Element方法获取所述参数化元素,所述Get Element为获取所述参数化元素,在操作文档的一个特定的元素时,赋予该元素一个ID属性,在文档中为其指定一个唯一的名称,然后用该所述ID查找目标元素。
S102:根据所述数据库配置文件,获取参数化元素,所述参数化元素包括超文本传输协议,超文本传输安全协议,域名,端口,路径,目录和目录清单。
所述参数化元素包括超文本传输协议,超文本传输安全协议,域名,端口,路径,目录和目录清单。
图3为一个实施例中生成CSV1文件流程图,如图示,S2包括S201至S203:
S201:根据配置程序,筛选具有相同类型的元素,形成多个数组。
根据配置程序,筛选所得URL参数中具有相同类型的若干元素,按照无序的形式组织起来,形成多个数组,以实现URL元素数组化。并根据标记电子文件和定义电子数据类型,生成具有结构性的XML文件。在电子计算机中,标记指计算机所能理解的信息符号,通过此种标记,计算机之间可以处理包含各种的信息比如文章等,它可以用来标记数据、定义数据类型,是一种允许用户对自己的标记语言进行定义的源语言。它非常适合万维网传输,提供统一的方法来描述和交换独立于应用程序或供应商的结构化数据。是Internet环境中跨平台的、依赖于内容的技术,也是当今处理分布式结构信息的有效工具。
S202:启动读取脚本,根据配置规则,读取配置文件中参数化元素形成的数组。
根据配置规则,将所述配置文件中的数组读取出来。
S203:将配置后的数组存入一用于存储和读取所述数组的CSV1文件中。
举例来说,所述数组是无序的元素序列,若将有限个类型相同的变量的集合命名,那么这个名称为数组名,组成所述数组的各个变量称为数组的分量,也称为数组的元素,有时也称为下标变量,用于区分数组的各个元素的数字编号称为下标,所述数组是在程序设计中,为了处理方便,把具有相同类型的若干元素按无序的形式组织起来的一种形式,这些无序排列的同类数据元素的集合称为数组;所述数组元素是组成数组的基本单元;所述数组元素也是一种变量,其标识方法为数组名后跟一个下标;下标表示了元素在数组中的顺序号;所述数组元素的一般形式为:数组名[下标]其中的下标只能为整型常量或整型表达式;如为小数时,C编译将自动取整;例如,a[5],a[i+j],a[i++]都是合法的数组元素;数组元素通常也称为下标变量;必须先定义数组,才能使用下标变量;在C语言中只能逐个地使用下标变量,而不能一次引用整个数组。
举例来说,遍历组合数字1、2、3,结果为1,2,3;12,13,21,23,31,32;123,132,213,231,312,321;对配置元素的遍历组合包括不同字符的多个组合。
图4为本申请一个实施例中URL的生成及验证流程图,如图示,S3包括S301至S304:
S301:将所述参数化元素导入到XML文件中,通过标记数组中的参数化元素,使其具有结构性。
根据所述XML文件和所述配置组合规则生成所述静态URL和所述动态URL,即静态网址和动态网址;获取所述静态URL和所述动态URL。
S302:对组数中具有结构性的参数化元素进行遍历组合,使前缀、域名及其他路径进行任意的组合排列,生成多个静态URL和动态URL,并判断所述静态URL和动态URL是否生成成功。
进一步的,根据获取的所述参数化元素,使用配置所述参数化元素的组合规则,将所述参数化元素导入到可以标记电子数据和定义电子数据类型的所述XML文件中;根据所述XML文件和配置组合规则生成所述静态URL和所述动态URL,即所述静态网址和所述动态网址;URL是对可以从互联网上得到的资源位 置和访问方法的一种简洁表示,是互联网上标准资源的地址,互联网上的每个文件都有唯一的一个所述URL,它包含的信息指出文件的位置以及所述浏览器应该如何处理等信息。
S303:若所述静态URL和动态URL生成失败,则报告错误信息,继续对验证失败的参数化元素进行遍历组合;若URL生成成功,则保存所述URL,继续遍历其他的URL。
进一步的,将生成的所述URL,即互联网资源网址,导入所述CSV1字符分隔值文件中,生成所述动态URL文件,所述字符分隔值文件由任意数目的记录组成,记录间以某种换行符分隔;每条记录由字段组成,所述字段间的分隔符是其它字符或字符串,最常见的是逗号或制表符。通常,所有记录都有完全相同的字段序列。通常都是纯文本文件。
举例来说,所述动态URL的优势在于技术维护工作量降低很多,但许多交互式的内容,比如购物车、注册等特定的后台功能必须使用,每次用户访问所述动态URL的时候都需要从数据库里代用的内容和页面模板载入,这样对访问的速度会产生影响,如果没有处理好的话,这种延迟会产生漫长的等待过程,同时对于服务器宽带、搜索引擎的爬行抓取都会产生一定的不利效果;纯静态URL后缀多是html、htm形式,所述纯静态的URL优势在于访问速度快,体验度较好,因为这是真实存在的物理路径下的文件,真实存在的页面,搜索引擎容易爬行。每次的新内容因为要直接产生静态页面,对服务器的性能是一个很大的考验,如果每个页面都要直接能找到,磁盘和内存消耗相当大。相对来说带宽方面占用的比动态URL小的多。
S304:若所述静态URL和动态URL生成成功,则保存生成结果。
若在XML文件中遍历组合生成的URL成功,则保存生成结果,并继续在XML文件总遍历组合,以生成动态URL或者静态URL。
图5为一个实施例中读取静态URL和动态URL流程图,如图示,S4包括S401至S403:
S401:根据生成的静态URL和动态URL,将其存入所述CSV2文件中。
CSV2文件以纯文本形式存储数据和文本,遍历组合所述参数化元素后,将生成的动态URL和静态URL写入CSV2文件中。
S402:根据CSV2文件的属性,以纯文本形式存储所述静态URL和动态URL。
根据CSV2文件中写入的静态URL和动态URL,把具有相同类型的若干元素按照和无序的形式组织起来。
S403:根据特定编码,以字节流形式读取所述静态URL和动态URL。
字节流是不包含边界数据的连续流,主要用在处理二进制数据,他是按字节来处理的,但实际中很多数据都是文本,本申请中是以字节流的形式读取数组。
纯文本意味着该文件是一个字符序列,不含必须像二进制数字那样被解读的数据,所述CSV2文件由任意数目的记录组成,记录间以某种换行符分隔,每条记录由字段组成,字段间的分隔符是其它字符或字符串,最常见的是逗号或制表符;根据字符分隔值文件,将写入的文件内容转换成数组;使用字节流可以将文件以行的形式读取出来,字节流是一种阅读器,可以将导入的文件以一种特定编码的形式,将字符从字节流中读取;字符分隔值文件以纯文本形式存储表格数据。
图6为一个实施例中URL验证方法流程图,如图示,S5包括501至S505。
S501:根据扫描测试脚本,自动执行CSV2中所述静态URL和动态URL的全部测试过程或部分测试过程。
编写所述扫描测试脚本,该脚本是自动执行测试过程或部分测试过程的计算机可读指令,其可以被创建或使用测试自动化工具自动生成,或者用编程语言编程来完成,也可综合上述方法完成。
编写请求测试脚本,将获取的所述URL逐个放入所述浏览器中访问请求,验证所述URL是否有页面异常。编写请求扫描所述测试脚本,由所述请求测试 脚本自动执行测试过程,或者部分测试过程的计算机可读指令,测试脚本被创建或使用测试自动化工具自动生成。
S502:读取所述CSV2文件中的静态URL和动态URL,然后,在浏览器中对所述静态URL和动态URL逐个进行访问请求。
读取CSV2文件中URL,打开浏览器,将上述获得的动态URL逐个放到所述浏览器地址栏进行访问,所述CSV2文件以纯文本形式存储表格数据即数字和文本,纯文本意味着该文件是一个字符序列,不含必须像二进制数字那样被解读的数据,所述CSV2文件由任意数目的记录组成,记录间以某种换行符分隔;每条记录由字段组成,字段间的分隔符是其它字符或字符串,最常见的是逗号或制表符,通常,所有记录都有完全相同的字段序列。
S503:判断所述静态URL和动态URL验证的有效性。
验证上述动态URL是否有效,验证完毕后,保存验证结果信息,关闭文件。
S504:若所述静态URL和动态URL在验证有效性时,验证失败,则返回验证失败的结果,并将验证失败的结果记录在所述CSV3文件。
验证失败时,针对于超文本传输协议,服务器可能回应所述超文本传输协议404或Not Found错误信息,上述两种回应方式是超文本传输协议的一种标准回应信息状态码,此信息代表客户端在浏览网页时,服务器无法正常提供信息,或是服务器无法回应且不知原因。
举例来说,服务器设置“err404”指向一个设计好的HTML文件,此时页面返回所述“err404”状态码,IDC提供商基本都提供所述“err404”设置的功能,直接上传文件设置即可。在IIS中设置方法是打开所述IIS管理器,然后点击要设置的自定义所述“err404”的网站属性,点击自定义错误选项,选中所述“err404”页,选中并打开编辑属性,填写"/err404.HTML",按确定键退出,所述HTML页面上传到网站根目录上,并在消息类型中选择文件或默认值,而不选择所述URL,否则将导致返回200状态码。所述“err404”指向一个动态页面,比如error.asp,如果不在页面里面进行设置,仅仅是返回提示的HTML代码, 将导致页面返回200状态码,在显示完提示内容后,增加语句:Response.Status="404 Not Found",保证页面返回所述“err404”状态码,以检验当前页面的title是否异常。
S505:若所述静态URL和动态URL在验证有效性时,验证成功,则直接将验证成功的结果保存在所述CSV3文件中。
若动态URL和静态URL验证成功,即发现所验证的URL中含有其他高权限参数,或者验证出动态URL和静态URL正常,则直接将验证成功的结果存入CSV文件中,保存验证结果信息。
图7为一个实施例中对生成的URL定位分析流程图,如图示,S6包括601至S603。
S601:编制结果分析脚本,通过编译器将所述结果分析脚本转换为具有读取CSV3文件功能的可执行文件。
选定程序设定语言或者常用的脚本开发语言,编制对CSV3文件读取并分析的功能脚本,并将其通过编译器转换生成可执行文件,加载该可执行文件后使其调用CSV3文件后读取其中的内容,并进行分析。
S602:通过所述结果分析脚本,对CSV3文件中的验证结果进行分析过滤。
通过结果分析脚本,对验证失败的动态URL和静态URL进行过滤,进行下一步的循环验证。
具体的,验证URL,打开浏览器,逐个将URL写入地址栏,进行访问;所述浏览器是一款快速且安全的网络浏览器,将每一个动静态URL逐个放入所述浏览器访问地址栏中,进行过一样访问。检测URL的访问结果,判定当前页面的title是否为所述404异常,来确定域名迁移是否正常。
进一步的,所述CSV3文件以所述纯文本形式存储表格数据,数字和文本,所述纯文本意味着该文件是一个字符序列,不含必须像二进制数字那样被解读的数据,所述CSV3文件由任意数目的记录组成,记录间以某种换行符分隔;每 条记录由字段组成,字段间的分隔符是其它字符或字符串,最常见的是逗号或制表符。
S603:将验证失败的URL过滤出来,进行定位分析。
启动所述结果分析脚本,所述结果分析脚本是依据一定格式编写的可执行文件,用文本编辑器编写的文本代码,再用编译器解析文本表达的意思和执行内容;通过所述结果分析脚本对所述CSV3文件中的验证结果进行分析过滤,将验证失败的URL过滤出来,进行定位分析。
基于相同的技术构思,本申请实施例还提供了一种动态域名验证系统,如图8所示,所述动态域名验证系统包括获取元素模块,设置为获取参数化元素;数组化配置模块,设置为对参数化元素进行数组化配置,将配置后的数组存入一用于存储和读取所述数组的CSV1文件;URL生成模块,设置为对CSV1文件中数组内各个参数化元素进行遍历组合,生成多个静态URL和动态URL;存储模块,设置为将生成的多个静态URL和动态URL存入一用于存储和读取所述静态URL和动态URL的CSV2文件;URL验证模块,设置为将所述静态URL和动态URL逐个放入浏览器中访问验证,然后,将验证结果存入一用于存储和读取验证结果的CSV3文件;验证结果分析模块,设置为过滤出CSV3文件中验证失败的URL,进行定位分析。
在一个实施例中,获取元素模块包括配置读取模块,设置为读取数据库配置文件;参数化元素获取模块,设置为根据所述数据库配置文件,获取参数化元素,所述参数化元素包括超文本传输协议、超文本传输安全协议、域名、端口、路径、目录或目录清单中的至少一种
在一个实施例中,数组化配置模块包括数组形成模块,设置为根据配置程序,筛选具有相同类型的元素,形成多个数组;数组配置模块,设置为启动读取脚本,根据配置规则,读取配置文件中参数化元素形成的数组;数组存储模块,设置为将配置后的数组存入一用于存储和读取所述数组的CSV1文件中。
在一个实施例中,URL生成模块包括参数化元素标记模块,设置为将所述参 数化元素导入到XML文件中,通过标记数组中的参数化元素,使其具有结构性;遍历生成模块,设置为对组数中具有结构性的参数化元素进行遍历组合,使前缀、域名及其他路径进行任意的组合排列,生成多个静态URL和动态URL,并判断所述静态URL和动态URL是否生成成功;异常处理模块,设置为若所述静态URL和动态URL生成失败,则报告错误信息,继续对验证失败的参数化元素进行遍历组合;保存模块,设置为若所述静态URL和动态URL生成成功,则保存生成结果。
在一个实施例中,存储模块包括
存入文件模块,设置为根据生成的静态URL和动态URL,将其存入所述CSV2文件中;文本格式存储模块,设置为根据CSV2文件的属性,以纯文本形式存储所述静态URL和动态URL;字节流存储模块,设置为根据特定编码,以字节流形式读取所述静态URL和动态URL。
在一个实施例中,URL验证模块包括自动测试模块,设置为根据扫描测试脚本,自动执行CSV2中所述静态URL和动态URL的全部测试过程或部分测试过程;访问请求模块,设置为读取所述CSV2文件中的静态URL和动态URL,然后,在浏览器中对所述静态URL和动态URL逐个进行访问请求;有效性判断模块,设置为判断所述静态URL和动态URL验证的有效性;验证失败记录模块,设置为若所述静态URL和动态URL在验证有效性时,验证失败,则返回验证失败的结果,并将验证失败的结果记录在所述CSV3文件;验证成功保存模块,设置为若所述静态URL和动态URL在验证有效性时,验证成功,则直接将验证成功的结果保存在所述CSV3文件中。在本实施例中,CSV3文件以纯文本形式存储表格数据,数字和文本。
在一个实施例中,验证结果分析模块包括脚本转换模块,设置为编制结果分析脚本,通过编译器将所述结果分析脚本转换为具有读取CSV3文件功能的可执行文件;分析过滤模块,设置为通过所述结果分析脚本,对CSV3文件中的验证结果进行分析过滤;将验证失败的URL过滤出来,进行定位分析。
基于相同的技术构思,本申请实施例还提供一种计算机设备,包括存储器、 处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行计算机可读指令时执行上述各实施例中动态域名验证方法的步骤。
基于相同的技术构思,本申请实施例还提供了一种存储有计算机可读指令的存储介质,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述各实施例中动态域名验证方法的步骤。所述存储介质可以为非易失性存储介质。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。
Claims (20)
- 一种动态域名验证方法,包括:获取参数化元素;对参数化元素进行数组化配置,将配置后的数组存入一用于存储和读取所述数组的CSV1文件;对CSV1文件中数组内各个参数化元素进行遍历组合,生成多个静态URL和动态URL;将生成的多个静态URL和动态URL存入一用于存储和读取所述静态URL和动态URL的CSV2文件;将所述静态URL和动态URL逐个放入浏览器中访问验证,然后,将验证结果存入一用于存储和读取验证结果的CSV3文件;过滤出CSV3文件中验证失败的URL,进行定位分析。
- 根据权利要求1所述的一种动态域名验证方法,其中,所述获取参数化元素包括:读取数据库配置文件;根据所述数据库配置文件,获取参数化元素,所述参数化元素包括超文本传输协议、超文本传输安全协议、域名、端口、路径、目录或目录清单中的至少一种。
- 根据权利要求1所述的一种动态域名验证方法,其中,所述对参数化元素进行数组化配置,将配置后的数组存入一用于存储和读取所述数组的CSV1文件包括:根据配置程序,筛选具有相同类型的元素,形成多个数组;启动读取脚本,根据配置规则,读取配置文件中参数化元素形成的数组;将配置后的数组存入一用于存储和读取所述数组的CSV1文件中。
- 根据权利要求1所述的一种动态域名验证方法,其中,所述对CSV1文件中数组内各个参数化元素进行遍历组合,生成多个静态URL和动态URL包括:将所述参数化元素导入到XML文件中,通过标记数组中的参数化元素,使其具有结构性;对组数中具有结构性的参数化元素进行遍历组合,使前缀、域名及其他路径进行任意的组合排列,生成多个静态URL和动态URL,并判断所述静态URL和动态URL是否生成成功;若所述静态URL和动态URL生成失败,则报告错误信息,继续对验证失败的参数化元素进行遍历组合;若所述静态URL和动态URL生成成功,则保存生成结果。
- 根据权利要求4所述的一种动态域名验证方法,其中,所述对CSV1文件中数组内各个参数化元素进行遍历组合,生成多个静态URL和动态URL还包 括:根据获取的所述参数化元素,使用配置所述参数化元素的组合规则,将所述参数化元素导入到标记电子数据和定义电子数据类型的所述XML文件中;根据所述XML文件和配置组合规则生成所述静态URL和所述动态URL。
- 根据权利要求1所述的一种动态域验证方法,其中,所述将生成的多个静态URL和动态URL存入一用于存储和读取所述静态URL和动态URL的CSV2文件包括:根据生成的静态URL和动态URL,将其存入所述CSV2文件中;根据CSV2文件的属性,以纯文本形式存储所述静态URL和动态URL;根据特定编码,以字节流形式读取所述静态URL和动态URL。
- 根据权利要求1所述的一种动态域名验证方法,其中,所述将所述静态URL和动态URL逐个放入浏览器中访问验证,然后,将验证结果存入一用于存储和读取验证结果的CSV3文件包括:根据扫描测试脚本,自动执行CSV2中所述静态URL和动态URL的全部测试过程或部分测试过程;读取所述CSV2文件中的静态URL和动态URL,然后,在浏览器中对所述静态URL和动态URL逐个进行访问请求;判断所述静态URL和动态URL验证的有效性;若所述静态URL和动态URL在验证有效性时,验证失败,则返回验证失败的结果,并将验证失败的结果记录在所述CSV3文件;若所述静态URL和动态URL在验证有效性时,验证成功,则直接将验证成功的结果保存在所述CSV3文件中。
- 根据权利要求7所述的一种动态域名验证方法,其中,所述CSV3文件以纯文本形式存储表格数据,数字和文本。
- 根据权利要求1所述的一种动态域名验证方法,其中,所述过滤出CSV3文件中验证失败的URL,进行定位分析包括:编制结果分析脚本,通过编译器将所述结果分析脚本转换为具有读取CSV3文件功能的可执行文件;通过所述结果分析脚本,对CSV3文件中的验证结果进行分析过滤;将验证失败的URL过滤出来,进行定位分析。
- 一种动态域名验证系统,包括:获取元素模块,设置为获取参数化元素;数组化配置模块,设置为对参数化元素进行数组化配置,将配置后的数组 存入一用于存储和读取所述数组的CSV1文件;URL生成模块,设置为对CSV1文件中数组内各个参数化元素进行遍历组合,生成多个静态URL和动态URL;存储模块,设置为将生成的多个静态URL和动态URL存入一用于存储和读取所述静态URL和动态URL的CSV2文件;URL验证模块,设置为将所述静态URL和动态URL逐个放入浏览器中访问验证,然后,将验证结果存入一用于存储和读取验证结果的CSV3文件;验证结果分析模块,设置为过滤出CSV3文件中验证失败的URL,进行定位分析。
- 根据权利要求10所述的一种动态域名验证系统,其中,所述获取元素模块包括:配置读取模块,设置为读取数据库配置文件;参数化元素获取模块,设置为根据所述数据库配置文件,获取参数化元素。
- 根据权利要求10所述的一种动态域名验证系统,其中,参数化元素包括超文本传输协议、超文本传输安全协议、域名、端口、路径、目录或目录清单中的至少一种。
- 根据权利要求10所述的一种动态域名验证系统,其中,数组化配置模块包括:数组形成模块,设置为根据配置程序,筛选具有相同类型的元素,形成多个数组;数组配置模块,设置为启动读取脚本,根据配置规则,读取配置文件中参数化元素形成的数组;数组存储模块,设置为将配置后的数组存入一用于存储和读取所述数组的CSV1文件中。
- 根据权利要求10所述的一种动态域名验证系统,其中,URL生成模块包括:参数化元素标记模块,设置为将所述参数化元素导入到XML文件中,通过 标记数组中的参数化元素,使其具有结构性;遍历生成模块,设置为对组数中具有结构性的参数化元素进行遍历组合,使前缀、域名及其他路径进行任意的组合排列,生成多个静态URL和动态URL,并判断所述静态URL和动态URL是否生成成功;异常处理模块,设置为若所述静态URL和动态URL生成失败,则报告错误信息,继续对验证失败的参数化元素进行遍历组合;保存模块,设置为若所述静态URL和动态URL生成成功,则保存生成结果。
- 根据权利要求10所述的一种动态域名验证系统,其中,存储模块包括:存入文件模块,设置为根据生成的静态URL和动态URL,将其存入所述CSV2文件中;文本格式存储模块,设置为根据CSV2文件的属性,以纯文本形式存储所述静态URL和动态URL;字节流存储模块,设置为根据特定编码,以字节流形式读取所述静态URL和动态URL。
- 根据权利要求10所述的一种动态域名验证系统,其中,URL验证模块包括:自动测试模块,设置为根据扫描测试脚本,自动执行CSV2中所述静态URL和动态URL的全部测试过程或部分测试过程;访问请求模块,设置为读取所述CSV2文件中的静态URL和动态URL,然后,在浏览器中对所述静态URL和动态URL逐个进行访问请求;有效性判断模块,设置为判断所述静态URL和动态URL验证的有效性;验证失败记录模块,设置为若所述静态URL和动态URL在验证有效性时,验证失败,则返回验证失败的结果,并将验证失败的结果记录在所述CSV3文件;验证成功保存模块,设置为若所述静态URL和动态URL在验证有效性时, 验证成功,则直接将验证成功的结果保存在所述CSV3文件中。
- 根据权利要求16所述的一种动态域名验证系统,其中,所述CSV3文件以纯文本形式存储表格数据,数字和文本。
- 根据权利要求10所述的一种动态域名验证系统,其中,验证结果分析模块包括:脚本转换模块,设置为编制结果分析脚本,通过编译器将所述结果分析脚本转换为具有读取CSV3文件功能的可执行文件;分析过滤模块,设置为通过所述结果分析脚本,对CSV3文件中的验证结果进行分析过滤;将验证失败的URL过滤出来,进行定位分析。
- 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:获取参数化元素;对参数化元素进行数组化配置,将配置后的数组存入一用于存储和读取所述数组的CSV1文件;对CSV1文件中数组内各个参数化元素进行遍历组合,生成多个静态URL和动态URL;将生成的多个静态URL和动态URL存入一用于存储和读取所述静态URL和动态URL的CSV2文件;将所述静态URL和动态URL逐个放入浏览器中访问验证,然后,将验证结果存入一用于存储和读取验证结果的CSV3文件;过滤出CSV3文件中验证失败的URL,进行定位分析。
- 一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:获取参数化元素;对参数化元素进行数组化配置,将配置后的数组存入一用于存储和读取所述数组的CSV1文件;对CSV1文件中数组内各个参数化元素进行遍历组合,生成多个静态URL和动态URL;将生成的多个静态URL和动态URL存入一用于存储和读取所述静态URL和动态URL的CSV2文件;将所述静态URL和动态URL逐个放入浏览器中访问验证,然后,将验证结果存入一用于存储和读取验证结果的CSV3文件;过滤出CSV3文件中验证失败的URL,进行定位分析。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810156825.0A CN108388796B (zh) | 2018-02-24 | 2018-02-24 | 动态域名验证方法、系统、计算机设备和存储介质 |
CN201810156825.0 | 2018-02-24 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019161658A1 true WO2019161658A1 (zh) | 2019-08-29 |
Family
ID=63068482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/105170 WO2019161658A1 (zh) | 2018-02-24 | 2018-09-12 | 动态域名验证方法、系统、计算机设备和存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108388796B (zh) |
WO (1) | WO2019161658A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108388796B (zh) * | 2018-02-24 | 2021-08-31 | 深圳壹账通智能科技有限公司 | 动态域名验证方法、系统、计算机设备和存储介质 |
CN109657167B (zh) * | 2018-11-29 | 2023-11-21 | 彩讯科技股份有限公司 | 数据采集方法、装置、服务器及存储介质 |
CN111191098B (zh) * | 2019-12-25 | 2022-10-18 | 山石网科通信技术股份有限公司 | 数据过滤方法及装置 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902780A (zh) * | 2012-09-28 | 2013-01-30 | 五八有限公司 | 一种统一资源定位符url动态匹配方法及装置 |
CN103530336A (zh) * | 2013-09-30 | 2014-01-22 | 北京奇虎科技有限公司 | 统一资源定位符url中无效参数的识别设备及方法 |
CN106095979A (zh) * | 2016-06-20 | 2016-11-09 | 百度在线网络技术(北京)有限公司 | Url合并处理方法和装置 |
US20170249312A1 (en) * | 2016-02-27 | 2017-08-31 | Microsoft Technology Licensing, Llc | Dynamic deeplinks for navigational queries |
CN108388796A (zh) * | 2018-02-24 | 2018-08-10 | 深圳壹账通智能科技有限公司 | 动态域名验证方法、系统、计算机设备和存储介质 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101727447A (zh) * | 2008-10-10 | 2010-06-09 | 浙江搜富网络技术有限公司 | 基于url的正则表达式的生成方法和装置 |
JP2010170453A (ja) * | 2009-01-26 | 2010-08-05 | Nippon Business Engineering:Kk | 静的Webサイト構築方法及び静的Webサイト構築サービス提供方法及び動的/静的変換処理装置及び動的/静的変換処理プログラム |
CN101604328A (zh) * | 2009-07-06 | 2009-12-16 | 深圳市汇海科技开发有限公司 | 一种互联网信息垂直搜索方法 |
CN102262635A (zh) * | 2010-05-25 | 2011-11-30 | 北京启明星辰信息技术股份有限公司 | 一种网页爬虫系统及方法 |
CN102184184B (zh) * | 2011-04-07 | 2012-11-07 | 安徽博约信息科技有限责任公司 | 一种网页动态信息获取方法 |
US10496709B2 (en) * | 2013-10-01 | 2019-12-03 | AsterionDB, Inc. | Systems, methods and program instructions for calling a database function with a URL |
CN107066576B (zh) * | 2017-04-12 | 2019-11-12 | 成都四方伟业软件股份有限公司 | 一种大数据网络爬虫分页选择方法和系统 |
-
2018
- 2018-02-24 CN CN201810156825.0A patent/CN108388796B/zh active Active
- 2018-09-12 WO PCT/CN2018/105170 patent/WO2019161658A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902780A (zh) * | 2012-09-28 | 2013-01-30 | 五八有限公司 | 一种统一资源定位符url动态匹配方法及装置 |
CN103530336A (zh) * | 2013-09-30 | 2014-01-22 | 北京奇虎科技有限公司 | 统一资源定位符url中无效参数的识别设备及方法 |
US20170249312A1 (en) * | 2016-02-27 | 2017-08-31 | Microsoft Technology Licensing, Llc | Dynamic deeplinks for navigational queries |
CN106095979A (zh) * | 2016-06-20 | 2016-11-09 | 百度在线网络技术(北京)有限公司 | Url合并处理方法和装置 |
CN108388796A (zh) * | 2018-02-24 | 2018-08-10 | 深圳壹账通智能科技有限公司 | 动态域名验证方法、系统、计算机设备和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN108388796B (zh) | 2021-08-31 |
CN108388796A (zh) | 2018-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Kouzis-Loukas | Learning scrapy | |
KR102188744B1 (ko) | 데이터 저장, 데이터 검사 및 데이터 연계 방법 및 장치 | |
Leotta et al. | ROBULA+: An algorithm for generating robust XPath locators for web testing | |
KR101755365B1 (ko) | 레코드 포맷 정보의 관리 | |
US7240279B1 (en) | XML patterns language | |
Griffiths | CodeIgniter 1.7 Professional Development | |
US20140075242A1 (en) | Testing rest api applications | |
US9575875B2 (en) | Computer implemented system and method for indexing and annotating use cases and generating test scenarios therefrom | |
WO2019161658A1 (zh) | 动态域名验证方法、系统、计算机设备和存储介质 | |
Offutt et al. | Modeling presentation layers of web applications for testing | |
CN106445815A (zh) | 一种自动化测试方法及装置 | |
CN107862039A (zh) | 网页数据获取方法、系统和数据匹配推送方法 | |
Wang et al. | Using combinatorial testing to build navigation graphs for dynamic web applications | |
CN110362630A (zh) | 数据管理方法、装置、设备与计算机可读存储介质 | |
CN112860581A (zh) | 一种测试用例的执行方法、装置、设备及存储介质 | |
CN113672233B (zh) | 一种基于Redfish的服务器带外管理方法、装置及设备 | |
CN113419738A (zh) | 接口文档的生成方法、装置及接口管理设备 | |
Gao et al. | Generating open api usage rule from error descriptions | |
Puentes | PEGASUS: Powerful, Expressive, Graphical Analyzer for the Single-Use Server | |
Grebe | Hands-On Full-Stack Web Development with GraphQL and React: Build scalable full-stack applications while learning to solve complex problems with GraphQL | |
TWI764491B (zh) | 文字資訊自動探勘方法及文字資訊自動探勘系統 | |
CN103440289B (zh) | 基于MapReduce的网页不兼容标签并行查找方法 | |
US11960560B1 (en) | Methods for analyzing recurring accessibility issues with dynamic web site behavior and devices thereof | |
Olmsted | Secure business intelligence markup language (secBIML) for the cloud | |
Nurminen | Unification of form validation implementations in web clients and servers |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18906867 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20.01.2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18906867 Country of ref document: EP Kind code of ref document: A1 |