[go: up one dir, main page]

CN115914029A - A network address scanning method, device, electronic equipment and storage medium - Google Patents

A network address scanning method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115914029A
CN115914029A CN202211350342.7A CN202211350342A CN115914029A CN 115914029 A CN115914029 A CN 115914029A CN 202211350342 A CN202211350342 A CN 202211350342A CN 115914029 A CN115914029 A CN 115914029A
Authority
CN
China
Prior art keywords
scanning
network address
target
network
configuration information
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.)
Pending
Application number
CN202211350342.7A
Other languages
Chinese (zh)
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202211350342.7A priority Critical patent/CN115914029A/en
Publication of CN115914029A publication Critical patent/CN115914029A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a network address scanning method, a network address scanning device, electronic equipment and a storage medium. The method comprises the following steps: acquiring target scanning configuration information corresponding to each network address to be scanned; classifying each network address based on the target scanning configuration information, and determining each network address set, wherein the network addresses in each network address set have the same target scanning configuration information; generating a scanning task corresponding to a target scanning tool based on target scanning configuration information corresponding to each network address set; and calling a target scanning tool, executing a corresponding scanning task, and obtaining a scanning result corresponding to each network address, thereby improving the adaptation rate of a user to the network connectivity test requirement and improving the scanning efficiency of the network addresses.

Description

一种网络地址扫描方法、装置、电子设备及存储介质A network address scanning method, device, electronic equipment and storage medium

技术领域technical field

本发明涉及数据处理技术领域,尤其涉及一种网络地址扫描方法、装置、电子设备及存储介质。The invention relates to the technical field of data processing, in particular to a network address scanning method, device, electronic equipment and storage medium.

背景技术Background technique

为了快速高效的检查网络的连通性,需要对大量的网络地址进行扫描。目前,可以使用扫描工具,根据配置参数,向互联网中的服务器发出检查请求并对返回响应进行记录,上述方法可以支持网络地址批量扫描的操作。但是,对于地址格式错误以及网络连通性异常均会导致相同的检查结果,当扫描的网络地址量过大时,用户很难区分地址网络连通性异常的原因是格式错误还是网络连通性异常。同时,对于批量扫描,无法支持地址以及端口号均不同等情况的自定义被测数据。In order to quickly and efficiently check the connectivity of the network, it is necessary to scan a large number of network addresses. Currently, scanning tools can be used to send inspection requests to servers in the Internet according to configuration parameters and record the returned responses. The above method can support batch scanning of network addresses. However, address format errors and abnormal network connectivity will result in the same inspection results. When the number of scanned network addresses is too large, it is difficult for users to distinguish whether the cause of abnormal address network connectivity is format error or abnormal network connectivity. At the same time, for batch scanning, it cannot support custom measured data with different addresses and port numbers.

发明内容Contents of the invention

本发明提供了一种网络地址扫描方法、装置、电子设备及存储介质,以提高网络地址扫描效率,提升特定扫描需求的适配度。The invention provides a network address scanning method, device, electronic equipment and storage medium, so as to improve network address scanning efficiency and improve the adaptability of specific scanning requirements.

第一方面,本发明提供了一种网络地址扫描方法,该方法包括:In a first aspect, the present invention provides a network address scanning method, the method comprising:

获取待扫描的每个网络地址对应的目标扫描配置信息,其中,目标扫描配置信息包括:目标扫描工具启动命令标识信息和目标扫描参数信息,目标扫描参数信息为固有扫描参数信息或者自定义扫描参数信息;Obtain the target scanning configuration information corresponding to each network address to be scanned, wherein the target scanning configuration information includes: target scanning tool startup command identification information and target scanning parameter information, and the target scanning parameter information is inherent scanning parameter information or custom scanning parameter information information;

基于目标扫描配置信息,对各个网络地址进行分类,确定各个网络地址集合,其中,每个网络地址集合中的网络地址具有相同的目标扫描配置信息;Classify each network address based on the target scanning configuration information, and determine each network address set, wherein the network addresses in each network address set have the same target scanning configuration information;

基于每个网络地址集合对应的目标扫描配置信息,生成目标扫描工具对应的扫描任务;Based on the target scanning configuration information corresponding to each network address set, generate a scanning task corresponding to the target scanning tool;

调用目标扫描工具,执行相应的扫描任务,获得每个网络地址对应的扫描结果。Invoke the target scanning tool, execute the corresponding scanning task, and obtain the scanning result corresponding to each network address.

第二方面,本发明提供了一种网络地址扫描装置,该装置包括:In a second aspect, the present invention provides a network address scanning device, which includes:

配置信息获取模块,用于获取待扫描的每个网络地址对应的目标扫描配置信息,其中,所述目标扫描配置信息包括:目标扫描工具启动命令标识信息和目标扫描参数信息,所述目标扫描参数信息为固有扫描参数信息或者自定义扫描参数信息;The configuration information obtaining module is used to obtain target scanning configuration information corresponding to each network address to be scanned, wherein the target scanning configuration information includes: target scanning tool startup command identification information and target scanning parameter information, and the target scanning parameter The information is inherent scan parameter information or custom scan parameter information;

地址集合确定模块,用于基于所述目标扫描配置信息,对各个所述网络地址进行分类,确定各个网络地址集合,其中,每个所述网络地址集合中的网络地址具有相同的目标扫描配置信息;An address set determining module, configured to classify each of the network addresses based on the target scanning configuration information, and determine each network address set, wherein the network addresses in each of the network address sets have the same target scanning configuration information ;

扫描任务生成模块,用于基于每个所述网络地址集合对应的目标扫描配置信息,生成目标扫描工具对应的扫描任务;A scanning task generating module, configured to generate a scanning task corresponding to a target scanning tool based on the target scanning configuration information corresponding to each of the network address sets;

扫描结果获得模块,用于调用所述目标扫描工具,执行相应的扫描任务,获得每个网络地址对应的扫描结果。The scanning result obtaining module is used to call the target scanning tool, execute corresponding scanning tasks, and obtain scanning results corresponding to each network address.

第三方面,本发明提供了一种网络地址扫描方法的电子设备,包括:In a third aspect, the present invention provides an electronic device for a network address scanning method, comprising:

至少一个处理器;以及at least one processor; and

与至少一个处理器通信连接的存储器;其中,memory communicatively coupled to at least one processor; wherein,

存储器存储有可被至少一个处理器执行的计算机程序,计算机程序被至少一个处理器执行,以使至少一个处理器能够执行本发明任一实施例的网络地址扫描方法。The memory stores a computer program executable by at least one processor, and the computer program is executed by at least one processor, so that at least one processor can execute the network address scanning method of any embodiment of the present invention.

第四方面,本发明提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机指令,计算机指令用于使处理器执行时实现本发明任一实施例的网络地址扫描方法。In a fourth aspect, the present invention provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and the computer instructions are used to enable a processor to implement the network address scanning method of any embodiment of the present invention when executed.

第五方面,本发明提供了一种计算机程序产品,计算机程序产品包括计算机程序,计算机程序在被处理器执行时实现本发明任一实施例的网络地址扫描方法。In a fifth aspect, the present invention provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, the network address scanning method in any embodiment of the present invention is implemented.

本发明实施例提供的技术方案,通过获取待扫描的每个网络地址对应的目标扫描配置信息,随后基于目标扫描配置信息,对各个网络地址进行分类,确定各个网络地址集合,从而基于每个网络地址集合对应的目标扫描配置信息,生成目标扫描工具对应的扫描任务,可根据用户自动义的配置信息进行网络地址自动化批量扫描,兼容不同扫描工具以及参数。最后,调用目标扫描工具,执行相应的扫描任务,获得每个网络地址对应的扫描结果。本公开实施例提供的技术方法解决了执行特定的网络地址扫描效率低、适配率低的技术问题,提高了用户对于网络连通性测试需求的适配率,提高了网络地址的扫描效率。In the technical solution provided by the embodiments of the present invention, by obtaining the target scanning configuration information corresponding to each network address to be scanned, and then classifying each network address based on the target scanning configuration information, and determining each network address set, based on each network The target scanning configuration information corresponding to the address set generates the scanning task corresponding to the target scanning tool, and can perform automatic batch scanning of network addresses according to the configuration information automatically defined by the user, and is compatible with different scanning tools and parameters. Finally, call the target scanning tool, execute the corresponding scanning task, and obtain the scanning result corresponding to each network address. The technical method provided by the embodiments of the present disclosure solves the technical problems of low efficiency and low adaptation rate of specific network address scanning, improves the user's adaptation rate for network connectivity testing requirements, and improves the network address scanning efficiency.

应当理解,本部分所描述的内容并非旨在标识本发明的实施例的关键或重要特征,也不用于限制本发明的范围。本发明的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will be easily understood from the following description.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1为本发明实施例一提供的一种网络地址扫描方法的流程图;FIG. 1 is a flowchart of a network address scanning method provided by Embodiment 1 of the present invention;

图2为本发明实施例二提供的一种网络地址扫描方法的流程图;FIG. 2 is a flowchart of a network address scanning method provided in Embodiment 2 of the present invention;

图3为本发明实施例三提供的一种网络地址扫描装置的示意图;FIG. 3 is a schematic diagram of a network address scanning device provided in Embodiment 3 of the present invention;

图4为本发明实施例四提供的一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device provided by Embodiment 4 of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一预设条件”、“第二预设条件”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first preset condition" and "second preset condition" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily to describe specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

实施例一Embodiment one

图1为本发明实施例一提供的一种网络地址扫描方法的流程图。本实施例可适用于对网络地址的连通性进行扫描的情形。该方法可以由网络地址扫描装置来执行,该网络地址扫描装置可以采用硬件和/或软件的形式实现,该网络地址扫描装置可以配置在计算机设备上,该计算机设备可以是笔记本、台式计算机以及智能平板等。如图1所示,该方法包括:FIG. 1 is a flowchart of a network address scanning method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of scanning the connectivity of network addresses. The method can be performed by a network address scanning device, which can be implemented in the form of hardware and/or software, and can be configured on a computer device, which can be a notebook, a desktop computer, or a smart phone. tablet etc. As shown in Figure 1, the method includes:

S110、获取待扫描的每个网络地址对应的目标扫描配置信息。S110. Obtain target scanning configuration information corresponding to each network address to be scanned.

其中,在计算机领域中,网络就是用物理链路将各个孤立的工作站或主机相连在一起,组成数据链路,从而达到资源共享和通信的目的。凡将地理位置不同,并具有独立功能的多个计算机系统通过通信设备和线路而连接起来,且以功能完善的网络软件(网络协议、信息交换方式及网络操作系统等)实现网络资源共享的系统。互联网络是由互相连接的带有连接节点(称为主机和路由器)的局域网(Local Area Network,LAN)组成的。每个设备都有一个物理地址连接到具有介质访问控制(medium access control,MAC)层地址的网络,每个节点都有一个网络地址。网络地址通常可分成网络号和主机号两部分,用于标识网络和该网络中的设备。采用不同网络层协议,网络地址的描述是不同的。互通协议(Interworking Protocol,IP)则用32位二进制来表示网络地址,一般就叫做IP地址。Among them, in the computer field, the network is to use physical links to connect individual workstations or hosts together to form data links, so as to achieve the purpose of resource sharing and communication. A system that connects multiple computer systems with different geographical locations and independent functions through communication equipment and lines, and uses fully functional network software (network protocols, information exchange methods, and network operating systems, etc.) to share network resources. . The Internet is made up of interconnected Local Area Networks (LANs) with connecting nodes (called hosts and routers). Each device has a physical address connected to the network with a medium access control (MAC) layer address, and each node has a network address. A network address can usually be divided into two parts, the network number and the host number, which are used to identify the network and the devices on the network. Using different network layer protocols, the description of the network address is different. The Interworking Protocol (IP) uses 32-bit binary to represent the network address, which is generally called an IP address.

其中,目标扫描配置信息包括:目标扫描工具启动命令标识信息和目标扫描参数信息,目标扫描参数信息为固有扫描参数信息或者自定义扫描参数信息。目标扫描工具启动命令标识信息为用于表征将要使用的扫描工具的信息。例如,扫描工具可以包括:zmap,nmap等。Wherein, the target scanning configuration information includes: target scanning tool startup command identification information and target scanning parameter information, where the target scanning parameter information is inherent scanning parameter information or user-defined scanning parameter information. The target scanning tool launch command identification information is information for characterizing the scanning tool to be used. For example, scanning tools may include: zmap, nmap, etc.

固有扫描参数信息为根据扫描工具的功能进行预先定义的参数信息。示例性的,目标扫描配置信息可以为{zmap,端口:88,网络地址1},其中第一标识位表示目标扫描工具启动命令标识信息,第二标识位表示固有扫描参数信息,第三标识位表示将要进行地址扫描的网络地址。The inherent scanning parameter information is parameter information that is predefined according to the function of the scanning tool. Exemplarily, the target scanning configuration information may be {zmap, port: 88, network address 1}, wherein the first identification bit represents the start command identification information of the target scanning tool, the second identification bit represents the inherent scanning parameter information, and the third identification bit Indicates the network address to be scanned for addresses.

自定义扫描参数信息为用户根据自己的需求以及对应扫描工具的使用方式确定的参数信息。示例性的,目标扫描配置信息可以为{nmap,端口:88,带宽:6.0GB/s,网络地址2},其中第一标识位表示目标扫描工具启动命令标识信息,第二标识位以及第三标识位表示自定义扫描参数信息,第四标识位表示将要进行地址扫描的网络地址。The user-defined scanning parameter information is parameter information determined by the user according to his own needs and the usage method of the corresponding scanning tool. Exemplarily, the target scanning configuration information may be {nmap, port: 88, bandwidth: 6.0GB/s, network address 2}, wherein the first identification bit represents the target scanning tool startup command identification information, the second identification bit and the third The identification bit indicates user-defined scanning parameter information, and the fourth identification bit indicates the network address to be scanned.

具体的,目标扫描配置信息可以在用户配置模块预先配置完成,当进行网络地址扫描时,执行扫描任务的服务器可以从用户配置模块直接获取预先配置好的目标扫描配置信息。在实际应用过程中,为每一个需要扫描的网络地址都预先配置好扫描工具启动命令标识信息,以及固有扫描参数信息或者自定义扫描参数信息。扫描工具启动命令标识信息可以表征对应的网络地址将使用何种扫描工具完成扫描任务。扫描参数信息为与扫描工具相对应的参数设置信息。Specifically, the target scanning configuration information can be pre-configured in the user configuration module. When performing network address scanning, the server performing the scanning task can directly obtain the pre-configured target scanning configuration information from the user configuration module. In the actual application process, for each network address that needs to be scanned, the scanning tool startup command identification information, and inherent scanning parameter information or custom scanning parameter information are pre-configured. The scanning tool startup command identification information may indicate which scanning tool the corresponding network address will use to complete the scanning task. The scanning parameter information is parameter setting information corresponding to the scanning tool.

可选的,获取待扫描的每个网络地址对应的目标扫描配置信息,包括:对待扫描的每个网络地址进行地址格式校验;获取校验成功的每个网络地址对应的目标扫描配置信息。Optionally, acquiring target scan configuration information corresponding to each network address to be scanned includes: performing address format verification on each network address to be scanned; acquiring target scan configuration information corresponding to each network address whose verification is successful.

其中,地址格式校验为对网络地址的格式内容进行校验。对于大量的网络地址而言,存在部分网络地址格式不符合标准的情形,通过地址格式检验,将格式错误的多个网络地址,存入黑名单中。对黑名单中的网络地址进行剔除或者标注,黑名单中的网络地址将不再进行后续的地址扫描任务。对于通过地址格式校验的网络地址,将其存入白名单,白名单中的网络地址可以进行后续的地址扫描任务。Wherein, the address format verification is to verify the format content of the network address. For a large number of network addresses, the format of some network addresses does not meet the standard. Through the address format inspection, multiple network addresses with wrong formats are stored in the blacklist. Remove or mark the network addresses in the blacklist, and the network addresses in the blacklist will not be subjected to subsequent address scanning tasks. For the network addresses that pass the address format verification, they are stored in the white list, and the network addresses in the white list can be used for subsequent address scanning tasks.

在本实施例中,对待扫描的每个网络地址进行地址格式校验,可以通过IPy模块对待扫描的每个网络地址进行地址格式校验,对地址格式校验成功的网络地址,获取其对应的目标扫描配置信息。In this embodiment, the address format verification is performed on each network address to be scanned, the address format verification can be performed on each network address to be scanned through the IPy module, and the network address whose address format verification is successful can obtain its corresponding Target scan configuration information.

可选的,上述方法还包括:将校验失败的网络地址确定为格式异常地址;对格式异常地址进行统计处理,确定格式异常统计结果;将格式异常地址和格式异常统计结果进行展示。Optionally, the above method further includes: determining the network address that fails the verification as an address with abnormal format; performing statistical processing on the address with abnormal format to determine the statistical result of abnormal format; displaying the address with abnormal format and the statistical result of abnormal format.

在本实施例中,将校验失败的网络地址确定为格式异常地址,可以确定出多个格式异常的地址,所以对多个格式异常的地址进行统计处理,并将统计结果进行展示。如果不将格式异常的地址进行统计并展示,对于错误格式的地址只体现在输出控制台结果输出,因此地址格式错误以及网络连通性异常均会导致相同的检查结果,当输入大量的网络地址进行扫描时,用户难以区分地址网络连通性异常的原因是格式错误还是网络连通性异常,导致网络地址扫描结果的准确率不具有可靠性。In this embodiment, the network addresses that fail the verification are determined as addresses with abnormal formats, and multiple addresses with abnormal formats can be determined, so statistical processing is performed on the addresses with abnormal formats, and the statistical results are displayed. If the addresses with abnormal formats are not counted and displayed, the addresses with incorrect formats will only be reflected in the output console results. Therefore, address format errors and abnormal network connectivity will lead to the same inspection results. When a large number of network addresses are input When scanning, it is difficult for users to distinguish whether the cause of the abnormal address network connectivity is the format error or the abnormal network connectivity, resulting in unreliable accuracy of the network address scanning results.

S120、基于目标扫描配置信息,对各个网络地址进行分类,确定各个网络地址集合。S120. Based on the target scanning configuration information, classify each network address, and determine each network address set.

其中,网络地址集合为包含多个网络地址的集合。每个网络地址集合中的网络地址具有相同的目标扫描配置信息。Wherein, the network address set is a set including multiple network addresses. The network addresses in each network address set have the same target scanning configuration information.

具体的,在进行网络地址扫描时,通常输入的网络地址数量是很多的,将输入的网络地址根据目标扫描配置信息进行分类,首先将对应目标扫描工具启动命令标识信息相同的网络地址分为几个大类,再根据目标扫描参数信息,再上述分类结果的基础上进行再次分类,最后得到具有相同的目标扫描配置信息的多个网络地址集合。Specifically, when performing network address scanning, usually there are many input network addresses, and the input network addresses are classified according to the target scanning configuration information. According to the target scanning parameter information, and then classify again on the basis of the above classification results, finally get multiple network address sets with the same target scanning configuration information.

示例性的,例如输入4个网络地址,分别是{zmap,端口:88,网络地址1}、{zmap,端口:88,网络地址2}、{nmap,端口:88,网络地址3}和{nmap,端口:88,网络地址4},则可以得到两个网络地址集合,网络地址集合1包括网络地址1和网络地址2,网络地址集合2包括网络地址3和网络地址4。需要特别说明的是,在实际应用过程中,是对大量的网络地址进行分类,最终得到的网络地址集合的数量是多个,在此仅为示例性说明。Exemplary, for example, input 4 network addresses, which are {zmap, port: 88, network address 1}, {zmap, port: 88, network address 2}, {nmap, port: 88, network address 3} and { nmap, port: 88, network address 4}, you can get two network address sets, network address set 1 includes network address 1 and network address 2, network address set 2 includes network address 3 and network address 4. It should be noted that, in the actual application process, a large number of network addresses are classified, and the number of finally obtained network address sets is multiple, and this is only an example for illustration.

S130、基于每个网络地址集合对应的目标扫描配置信息,生成目标扫描工具对应的扫描任务。S130. Based on the target scanning configuration information corresponding to each network address set, generate a scanning task corresponding to the target scanning tool.

其中,目标扫描工具为将要执行扫描任务的扫描工具。扫描任务为对输入的网络地址进行网络连通性扫描的任务。Wherein, the target scanning tool is a scanning tool that will perform a scanning task. The scanning task is a task of performing network connectivity scanning on the input network address.

具体的,由于在分类时是基于每个网络地址的目标扫描配置信息进行分类的,目标扫描配置信息中包括目标扫描工具启动命令标识信息和目标扫描参数信息。所以,对于每个网络地址集合,都可以确定与其对应的目标扫描工具,以及与目标扫描工具所对应的目标扫描参数信息。基于此,可以生成与各网络地址集合相对应的扫描任务。Specifically, since the classification is based on the target scanning configuration information of each network address, the target scanning configuration information includes target scanning tool startup command identification information and target scanning parameter information. Therefore, for each network address set, the corresponding target scanning tool and target scanning parameter information corresponding to the target scanning tool can be determined. Based on this, scan tasks corresponding to each network address set can be generated.

S140、调用目标扫描工具,执行相应的扫描任务,获得每个网络地址对应的扫描结果。S140. Invoke the target scanning tool, execute a corresponding scanning task, and obtain a scanning result corresponding to each network address.

其中,扫描结果可以包括扫描成功和扫描失败。Wherein, the scanning result may include scanning success and scanning failure.

具体的,在确定了网络地址集合对应的扫面任务之后,可以调用与网络地址集合相对应的目标扫描工具。目标扫秒工具可以读取当前网络地址集合的目标扫描参数信息,根据目标扫描参数信息,执行对应的扫描任务,最后获取每个网络地址的扫描结果,对于一个网络地址而言,如果扫描结果为成功,则表明此网络地址网络是连通的;如果扫描结果为失败,则表明此网络地址网络是未连通的。Specifically, after the scanning task corresponding to the network address set is determined, a target scanning tool corresponding to the network address set may be invoked. The target scan second tool can read the target scan parameter information of the current network address set, execute the corresponding scan task according to the target scan parameter information, and finally obtain the scan result of each network address. For a network address, if the scan result is If the scan is successful, it indicates that the network of this network address is connected; if the scan result is failed, it indicates that the network of this network address is not connected.

示例性的,对于某个扫描任务,与其对应的目标扫描工具为zmap,则直接调用zmap工具执行对应的扫描任务。Exemplarily, for a certain scanning task, the corresponding target scanning tool is zmap, and the zmap tool is directly invoked to execute the corresponding scanning task.

本发明实施例提供的技术方案,通过获取待扫描的每个网络地址对应的目标扫描配置信息,随后基于目标扫描配置信息,对各个网络地址进行分类,确定各个网络地址集合,从而基于每个网络地址集合对应的目标扫描配置信息,生成目标扫描工具对应的扫描任务,可根据用户自动义的配置信息进行网络地址自动化批量扫描,兼容不同扫描工具以及参数。最后,调用目标扫描工具,执行相应的扫描任务,获得每个网络地址对应的扫描结果。本公开实施例提供的技术方法解决了执行特定的网络地址扫描效率低、适配率低的技术问题,可以向用户分别展示地址格式错误以及网络连通性异常对应的检查结果,提高了用户对于网络连通性测试需求的适配率,提高了网络地址的扫描效率。In the technical solution provided by the embodiments of the present invention, by obtaining the target scanning configuration information corresponding to each network address to be scanned, and then classifying each network address based on the target scanning configuration information, and determining each network address set, based on each network The target scanning configuration information corresponding to the address set generates the scanning task corresponding to the target scanning tool, and can perform automatic batch scanning of network addresses according to the configuration information automatically defined by the user, and is compatible with different scanning tools and parameters. Finally, call the target scanning tool, execute the corresponding scanning task, and obtain the scanning result corresponding to each network address. The technical method provided by the embodiments of the present disclosure solves the technical problems of low efficiency and low adaptation rate when performing specific network address scanning, and can display the inspection results corresponding to address format errors and abnormal network connectivity to the user, improving the user's understanding of the network. The adaptation rate required by the connectivity test improves the scanning efficiency of the network address.

实施例二Embodiment two

图2为本发明实施例二提供的一种网络地址扫描方法的流程图。本发明实施例在上述实施例的基础上,对S130-S140的内容进行进一步的细化。其中与上述各实施例相同或相应的术语的解释在此不再赘述。如图2所示,该方法具体包括以下步骤:FIG. 2 is a flowchart of a network address scanning method provided by Embodiment 2 of the present invention. On the basis of the foregoing embodiments, the embodiment of the present invention further refines the content of S130-S140. The explanations of terms that are the same as or corresponding to the above-mentioned embodiments will not be repeated here. As shown in Figure 2, the method specifically includes the following steps:

S210、获取待扫描的每个网络地址对应的目标扫描配置信息。S210. Obtain target scanning configuration information corresponding to each network address to be scanned.

S220、基于目标扫描配置信息,对各个网络地址进行分类,确定各个网络地址集合。S220. Based on the target scanning configuration information, classify each network address, and determine each network address set.

S230、针对每个网络地址集合而言,基于网络地址集合对应的目标扫描工具启动命令标识信息,确定该网络地址集合对应的目标扫描工具。S230. For each network address set, determine the target scanning tool corresponding to the network address set based on the start command identification information of the target scanning tool corresponding to the network address set.

在本实施例中,目标扫描工具启动命令标识信息可以表征对应网络地址集合将采用何种扫描工具执行扫描任务,例如,在对各网络地址进行分类时,网络地址集合中各网络地址的目标扫描工具启动命令标识信息为nmap,则该网络地址集合对应的目标扫描工具为nmap。In this embodiment, the start command identification information of the target scanning tool can indicate which scanning tool will be used to perform the scanning task for the corresponding network address set. For example, when classifying each network address, the target scanning of each network address in the network address set If the tool startup command identification information is nmap, then the target scanning tool corresponding to the network address set is nmap.

S240、将该网络地址集合和该网络地址集合对应的目标扫描参数信息进行组合,生成目标扫描工具对应的一个扫描任务。S240. Combine the network address set and target scanning parameter information corresponding to the network address set to generate a scanning task corresponding to the target scanning tool.

在本实施例中,可以将当前网络地址集集合以及当前网络地址集合对应的目标扫描参数信息进行组合,组合成一个整体的文件,组合后的整体文件才可以被目标扫描工具读取,可以将同一目标扫描工具对应的多个网络地址集合生成一个扫描任务。In this embodiment, the current network address set set and the target scanning parameter information corresponding to the current network address set can be combined to form a whole file, and the combined whole file can be read by the target scanning tool, and can be A collection of multiple network addresses corresponding to the same target scanning tool generates a scanning task.

S250、调用目标扫描工具,基于相应的扫描任务中的目标扫描参数信息,对该扫描任务中的网络地址集合进行逐个扫描,获得扫描后每个网络地址对应的响应解析结果。S250. Invoking the target scanning tool, and based on the target scanning parameter information in the corresponding scanning task, scan the network address set in the scanning task one by one, and obtain a response analysis result corresponding to each network address after scanning.

其中,响应解析结果为目标扫描工具在执行扫描任务后,反馈的扫描结果。例如,响应解析结果可以以字符串的形式展示。Wherein, the response analysis result is a scanning result fed back by the target scanning tool after executing the scanning task. For example, the response parsing result can be displayed in the form of a string.

在本实施例中,对某个已经确定目标扫描工具的扫描任务,可以直接调用对应的目标扫描工具。目标扫描工具根据该扫描任务中的目标参数信息,对该扫描任务中的网络地址集合进行逐一扫描,从而实现了批量化的网络地址扫描。目标扫描工具仅读取一个扫描任务,便可以完成批量化网络地址的扫描,提高了网络地址扫描的效率。在执行完扫描任务之后,进一步获取每一个网络地址的响应解析结果。In this embodiment, for a scanning task for which a target scanning tool has been determined, the corresponding target scanning tool may be called directly. The target scanning tool scans the network address collection in the scanning task one by one according to the target parameter information in the scanning task, thereby realizing batch network address scanning. The target scanning tool can complete the scanning of network addresses in batches only by reading one scanning task, which improves the efficiency of network address scanning. After the scanning task is executed, the response analysis result of each network address is further obtained.

S260、对响应解析结果进行判断,确定每个网络地址对应的扫描结果。S260. Judging the response analysis result, and determining the scanning result corresponding to each network address.

在本实施例中,响应解析结果中可以包含每个网络地址扫描结果的信息,可以通过对相应结果进行判断,得到每个网络地址的扫描结果。In this embodiment, the response analysis result may include the information of the scanning result of each network address, and the scanning result of each network address may be obtained by judging the corresponding result.

可选的,对响应解析结果进行判断,确定每个网络地址对应的扫描结果,包括:获取预先配置的目标扫描工具对应的响应解析成功条件和响应解析失败条件;若响应解析结果满足响应解析成功条件,则确定相应的网络地址为网络连通正常地址;若响应解析结果满足响应解析失败条件,则确定相应的网络地址为网络连通异常地址。Optionally, judge the response parsing result and determine the scanning result corresponding to each network address, including: obtaining the response parsing success condition and response parsing failure condition corresponding to the pre-configured target scanning tool; if the response parsing result satisfies the response parsing success condition condition, then determine that the corresponding network address is an address with normal network connectivity; if the response parsing result satisfies the condition of response parsing failure, then determine that the corresponding network address is an address with abnormal network connectivity.

在本实施例中,每个目标扫描工具对应的响应解析成功条件和响应解析失败条件在目标扫描配置信息中可以预先配置,且目标扫描工具不同,对应的响应解析成功条件和响应解析失败条件是有差异的,所以首先获取预先配置的目标扫描工具对应的响应解析成功条件和响应解析失败条件,随后对响应解析结果进行判断,确定响应解析结果是满足响应解析成功条件还是结果满足响应解析失败条件。如果响应解析结果满足响应解析成功条件,则确定相应的网络地址为网络连通正常地址;如果响应解析结果满足响应解析失败条件,则确定相应的网络地址为网络连通异常地址。In this embodiment, the response parsing success conditions and response parsing failure conditions corresponding to each target scanning tool can be pre-configured in the target scanning configuration information, and the target scanning tools are different, and the corresponding response parsing success conditions and response parsing failure conditions are There are differences, so first obtain the response parsing success conditions and response parsing failure conditions corresponding to the pre-configured target scanning tool, and then judge the response parsing results to determine whether the response parsing results meet the response parsing success conditions or the results meet the response parsing failure conditions . If the response analysis result satisfies the response analysis success condition, determine that the corresponding network address is an address with normal network connectivity; if the response analysis result meets the response analysis failure condition, determine that the corresponding network address is an abnormal network connection address.

示例性的,响应解析成功条件可以是响应解析结果中包含“解析成功”的字符串,如果输出的响应解析结果中包含“解析成功”的字符串,则认为对应的网络地址是网络连通正常地址;如果输出的响应解析结果中并未包含“解析成功”的字符串,则认为对应的网络地址是网络连通异常地址。Exemplarily, the response parsing success condition may be that the response parsing result contains a character string of "parse successfully", and if the output response parsing result contains the character string "parse successfully", then the corresponding network address is considered to be a normal address of network connectivity ; If the output response parsing result does not contain the character string "parse successfully", then the corresponding network address is considered to be an abnormal network connection address.

可选的,在获得每个网络地址对应的扫描结果之后,还包括:对网络连通正常地址进行统计处理,确定连通正常统计结果;对网络连通异常地址进行统计处理,确定连通异常统计结果;将网络连通正常地址、连通正常统计结果、网络连通异常地址和连通异常统计结果进行展示。Optionally, after obtaining the scanning result corresponding to each network address, it also includes: performing statistical processing on addresses with normal network connectivity to determine statistical results of normal connectivity; performing statistical processing on addresses with abnormal network connectivity to determine statistical results of abnormal connectivity; Normal network connection addresses, normal connection statistics results, abnormal network connection addresses, and connection exception statistics results are displayed.

在本实施例中,可以对各网络连通正常地址以及网络连通正常地址的数量进行统计,对各网络连通异常地址以及网络连通异常地址的数量进行统计,从而确定连通正常统计结果以及连通异常统计结果。最终,将网络连通正常地址、连通正常统计结果、网络连通异常地址和连通异常统计结果进行展示。如此一来,用户可以明确存在网络异常的地址数量,也可以清楚明了的确定存在网络连通异常地址究竟是哪些网络地址,并对存在网络连通异常的地址采取对应的维修措施。In this embodiment, statistics can be made on the number of addresses with normal network connectivity and addresses with normal network connectivity, and statistics on addresses with abnormal network connectivity and addresses with abnormal network connectivity can be made, so as to determine the statistical results of normal connectivity and the statistical results of abnormal connectivity . Finally, the addresses with normal network connectivity, statistical results of normal connectivity, addresses with abnormal network connectivity, and statistical results of abnormal connectivity are displayed. In this way, the user can specify the number of addresses with abnormal network connections, and can also clearly determine which network addresses are the addresses with abnormal network connectivity, and take corresponding maintenance measures for the addresses with abnormal network connectivity.

本发明提供的实施例,通过获取待扫描的每个网络地址对应的目标扫描配置信息,随后基于目标扫描配置信息,对各个网络地址进行分类,确定各个网络地址集合,从而基于每个网络地址集合对应的目标扫描配置信息,生成目标扫描工具对应的扫描任务,可根据用户自动义的配置信息进行网络地址自动化批量扫描,兼容不同扫描工具以及参数。针对每个网络地址集合而言,基于网络地址集合对应的目标扫描工具启动命令标识信息,确定该网络地址集合对应的目标扫描工具,随后,将该网络地址集合和该网络地址集合对应的目标扫描参数信息进行组合,生成目标扫描工具对应的一个扫描任务。最后,调用目标扫描工具,基于相应的扫描任务中的目标扫描参数信息,对该扫描任务中的网络地址集合进行逐个扫描,获得扫描后每个网络地址对应的响应解析结果,并对响应解析结果进行判断,确定每个网络地址对应的扫描结果,丰富了用户的使用体验,提高了用户对于网络连通性测试需求的适配率,提高了网络地址的扫描效率。In the embodiment provided by the present invention, by obtaining the target scanning configuration information corresponding to each network address to be scanned, and then classifying each network address based on the target scanning configuration information, and determining each network address set, based on each network address set Corresponding target scanning configuration information, generating scanning tasks corresponding to the target scanning tool, can perform automatic batch scanning of network addresses according to the configuration information automatically defined by the user, and is compatible with different scanning tools and parameters. For each network address set, start command identification information based on the target scanning tool corresponding to the network address set, determine the target scanning tool corresponding to the network address set, and then scan the network address set and the target corresponding to the network address set The parameter information is combined to generate a scanning task corresponding to the target scanning tool. Finally, call the target scanning tool, based on the target scanning parameter information in the corresponding scanning task, scan the network address set in the scanning task one by one, obtain the response analysis result corresponding to each network address after scanning, and analyze the response analysis result Judgment is made to determine the scanning result corresponding to each network address, which enriches the user experience, improves the adaptation rate of the user to the network connectivity test requirement, and improves the scanning efficiency of the network address.

实施例三Embodiment three

图3为本发明实施例三提供的一种网络地址扫描装置的结构示意图,该装置可以执行本发明实施例所提供的网络地址扫描方法。该装置包括:配置信息获取模块310、地址集合确定模块320、扫描任务生成模块330、扫描结果获得模块340。FIG. 3 is a schematic structural diagram of a network address scanning device provided in Embodiment 3 of the present invention, and the device can execute the network address scanning method provided in the embodiment of the present invention. The device includes: a configuration information acquisition module 310 , an address set determination module 320 , a scan task generation module 330 , and a scan result acquisition module 340 .

其中,配置信息获取模块310,用于获取待扫描的每个网络地址对应的目标扫描配置信息,其中,所述目标扫描配置信息包括:目标扫描工具启动命令标识信息和目标扫描参数信息,所述目标扫描参数信息为固有扫描参数信息或者自定义扫描参数信息;地址集合确定模块320,用于基于所述目标扫描配置信息,对各个所述网络地址进行分类,确定各个网络地址集合,其中,每个所述网络地址集合中的网络地址具有相同的目标扫描配置信息;扫描任务生成模块330,用于基于每个所述网络地址集合对应的目标扫描配置信息,生成目标扫描工具对应的扫描任务;扫描结果获得模块340,用于调用所述目标扫描工具,执行相应的扫描任务,获得每个网络地址对应的扫描结果。Wherein, the configuration information acquiring module 310 is configured to acquire target scan configuration information corresponding to each network address to be scanned, wherein the target scan configuration information includes: target scan tool startup command identification information and target scan parameter information, the The target scan parameter information is inherent scan parameter information or user-defined scan parameter information; the address set determination module 320 is configured to classify each of the network addresses based on the target scan configuration information, and determine each network address set, wherein each The network addresses in the network address sets have the same target scanning configuration information; the scanning task generation module 330 is configured to generate a scanning task corresponding to the target scanning tool based on the target scanning configuration information corresponding to each of the network address sets; The scanning result obtaining module 340 is configured to call the target scanning tool, execute corresponding scanning tasks, and obtain scanning results corresponding to each network address.

在上述各技术方案的基础上,扫描任务生成模块330包括:扫描工具确定单元和扫描任务生成单元。On the basis of the above technical solutions, the scan task generation module 330 includes: a scan tool determination unit and a scan task generation unit.

其中,扫描工具确定单元,用于针对每个所述网络地址集合而言,基于网络地址集合对应的目标扫描工具启动命令标识信息,确定该网络地址集合对应的目标扫描工具;扫描任务生成单元,用于将该网络地址集合和该网络地址集合对应的目标扫描参数信息进行组合,生成所述目标扫描工具对应的一个扫描任务。Wherein, the scanning tool determining unit is configured to, for each of the network address sets, determine the target scanning tool corresponding to the network address set based on the start command identification information of the target scanning tool corresponding to the network address set; the scanning task generating unit, It is used to combine the network address set and target scanning parameter information corresponding to the network address set to generate a scanning task corresponding to the target scanning tool.

在上述各技术方案的基础上,扫描结果获得模块340包括:扫描任务执行单元和扫描结果确定单元。On the basis of the above technical solutions, the scan result obtaining module 340 includes: a scan task execution unit and a scan result determination unit.

扫描任务执行单元,用于调用所述目标扫描工具,基于相应的扫描任务中的目标扫描参数信息,对该扫描任务中的网络地址集合进行逐个扫描,获得扫描后每个网络地址对应的响应解析结果;扫描结果确定单元,用于对所述响应解析结果进行判断,确定每个网络地址对应的扫描结果。The scanning task execution unit is used to call the target scanning tool, based on the target scanning parameter information in the corresponding scanning task, scan the network address set in the scanning task one by one, and obtain the response analysis corresponding to each network address after scanning Result: a scanning result determining unit, configured to judge the response analysis result and determine the scanning result corresponding to each network address.

在上述各技术方案的基础上,扫描结果确定单元还用于获取预先配置的所述目标扫描工具对应的响应解析成功条件和响应解析失败条件;若所述响应解析结果满足所述响应解析成功条件,则确定相应的网络地址为网络连通正常地址;若所述响应解析结果满足所述响应解析失败条件,则确定相应的网络地址为网络连通异常地址。On the basis of the above technical solutions, the scanning result determination unit is also used to obtain the pre-configured response parsing success conditions and response parsing failure conditions corresponding to the target scanning tool; if the response parsing result satisfies the response parsing success conditions , then determine that the corresponding network address is an address with normal network connectivity; if the response parsing result satisfies the response parsing failure condition, then determine that the corresponding network address is an address with abnormal network connectivity.

在上述各技术方案的基础上,扫描结果确定单元还用于对所述网络连通正常地址进行统计处理,确定连通正常统计结果;对所述网络连通异常地址进行统计处理,确定连通异常统计结果;将所述网络连通正常地址、所述连通正常统计结果、所述网络连通异常地址和所述连通异常统计结果进行展示。On the basis of the above-mentioned technical solutions, the scanning result determination unit is also used to perform statistical processing on the normal network connection addresses to determine the normal connection statistical results; to perform statistical processing on the abnormal network connection addresses to determine the abnormal connection statistical results; The normal network connection address, the normal connection statistical result, the abnormal network connection address and the abnormal connection statistical result are displayed.

在上述各技术方案的基础上,网络地址扫描装置还包括地址格式校验模块,用于对待扫描的每个网络地址进行地址格式校验;获取校验成功的每个网络地址对应的目标扫描配置信息。On the basis of the above technical solutions, the network address scanning device also includes an address format verification module, which is used to verify the address format of each network address to be scanned; obtain the target scanning configuration corresponding to each network address that is successfully verified information.

在上述各技术方案的基础上,地址格式校验模块还用于将校验失败的网络地址确定为格式异常地址;对所述格式异常地址进行统计处理,确定格式异常统计结果;将所述格式异常地址和所述格式异常统计结果进行展示。On the basis of the above-mentioned technical solutions, the address format verification module is also used to determine the network address that fails the verification as an address with abnormal format; perform statistical processing on the address with abnormal format to determine the statistical result of abnormal format; The abnormal address and the abnormal statistical results of the format are displayed.

本发明提供的实施例,通过获取待扫描的每个网络地址对应的目标扫描配置信息,随后基于目标扫描配置信息,对各个网络地址进行分类,确定各个网络地址集合,从而基于每个网络地址集合对应的目标扫描配置信息,生成目标扫描工具对应的扫描任务,可根据用户自动义的配置信息进行网络地址自动化批量扫描,兼容不同扫描工具以及参数。最后,调用目标扫描工具,执行相应的扫描任务,获得每个网络地址对应的扫描结果。本公开实施例提供的技术方法解决了执行特定的网络地址扫描效率低、适配率低的技术问题,提高了用户对于网络连通性测试需求的适配率,提高了网络地址的扫描效率。In the embodiment provided by the present invention, by obtaining the target scanning configuration information corresponding to each network address to be scanned, and then classifying each network address based on the target scanning configuration information, and determining each network address set, based on each network address set Corresponding target scanning configuration information, generating scanning tasks corresponding to the target scanning tool, can perform automatic batch scanning of network addresses according to the configuration information automatically defined by the user, and is compatible with different scanning tools and parameters. Finally, call the target scanning tool, execute the corresponding scanning task, and obtain the scanning result corresponding to each network address. The technical method provided by the embodiments of the present disclosure solves the technical problems of low efficiency and low adaptation rate of specific network address scanning, improves the user's adaptation rate for network connectivity testing requirements, and improves the network address scanning efficiency.

本公开实施例所提供的数据处理装置可执行本公开任意实施例所提供的视频确定方法,具备执行方法相应的功能模块和有益效果。The data processing device provided by the embodiments of the present disclosure can execute the video determination method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.

值得注意的是,上述装置所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本公开实施例的保护范围。It is worth noting that the units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only In order to facilitate mutual distinction, it is not intended to limit the protection scope of the embodiments of the present disclosure.

实施例四Embodiment Four

图4为本发明实施例四提供的一种电子设备的结构示意图。电子设备10旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本发明的实现。FIG. 4 is a schematic structural diagram of an electronic device provided by Embodiment 4 of the present invention. Electronic device 10 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (eg, helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the inventions described and/or claimed herein.

如图4所示,电子设备10包括至少一个处理器11,以及与至少一个处理器11通信连接的存储器,如只读存储器(ROM)12、随机访问存储器(RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在只读存储器(ROM)12中的计算机程序或者从存储单元18加载到随机访问存储器(RAM)13中的计算机程序,来执行各种适当的动作和处理。在RAM 13中,还可存储电子设备10操作所需的各种程序和数据。处理器11、ROM 12以及RAM 13通过总线14彼此相连。输入/输出(I/O)接口15也连接至总线14。As shown in FIG. 4, the electronic device 10 includes at least one processor 11, and a memory connected in communication with the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores There is a computer program executable by at least one processor, and the processor 11 can operate according to a computer program stored in a read-only memory (ROM) 12 or loaded from a storage unit 18 into a random access memory (RAM) 13. Various appropriate actions and processes are performed. In the RAM 13, various programs and data necessary for the operation of the electronic device 10 can also be stored. The processor 11, ROM 12, and RAM 13 are connected to each other through a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14 .

电子设备10中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如各种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备10通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

处理器11可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器11的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的各个方法和处理,例如路面识别方法。Processor 11 may be various general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes various methods and processes described above, such as a road surface recognition method.

在一些实施例中,路面识别方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM 12和/或通信单元19而被载入和/或安装到电子设备10上。当计算机程序加载到RAM 13并由处理器11执行时,可以执行上文描述的路面识别方法的一个或多个步骤。备选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行路面识别方法。In some embodiments, the road surface recognition method can be implemented as a computer program, which is tangibly embodied in a computer-readable storage medium, such as the storage unit 18 . In some embodiments, part or all of the computer program can be loaded and/or installed on the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the road surface recognition method described above can be performed. Alternatively, in other embodiments, the processor 11 may be configured in any other appropriate way (for example, by means of firmware) to execute the road surface recognition method.

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips Implemented in a system of systems (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor Can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.

用于实施本发明的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, so that the computer program causes the functions/operations specified in the flowcharts and/or block diagrams to be implemented when executed by the processor. A computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

在本发明的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present invention, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus or device. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。In order to provide interaction with the user, the systems and techniques described herein can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display)) for displaying information to the user. monitor); and a keyboard and pointing device (eg, a mouse or a trackball) through which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、区块链网络和互联网。The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务中,存在的管理难度大,业务扩展性弱的缺陷。应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发明中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本发明的技术方案所期望的结果,本文在此不进行限制。上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。A computing system can include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the problems of difficult management and weak business expansion in traditional physical hosts and VPS services. defect. It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, each step described in the present invention may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution of the present invention can be achieved, there is no limitation herein. The above specific implementation methods do not constitute a limitation to the protection scope of the present invention. It should be apparent to those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1.一种网络地址扫描方法,其特征在于,包括:1. A network address scanning method, characterized in that, comprising: 获取待扫描的每个网络地址对应的目标扫描配置信息,其中,所述目标扫描配置信息包括:目标扫描工具启动命令标识信息和目标扫描参数信息,所述目标扫描参数信息为固有扫描参数信息或者自定义扫描参数信息;Obtain target scan configuration information corresponding to each network address to be scanned, wherein the target scan configuration information includes: target scan tool startup command identification information and target scan parameter information, and the target scan parameter information is inherent scan parameter information or Custom scan parameter information; 基于所述目标扫描配置信息,对各个所述网络地址进行分类,确定各个网络地址集合,其中,每个所述网络地址集合中的网络地址具有相同的目标扫描配置信息;Classify each of the network addresses based on the target scan configuration information, and determine each network address set, wherein the network addresses in each of the network address sets have the same target scan configuration information; 基于每个所述网络地址集合对应的目标扫描配置信息,生成目标扫描工具对应的扫描任务;Generate a scanning task corresponding to the target scanning tool based on the target scanning configuration information corresponding to each network address set; 调用所述目标扫描工具,执行相应的扫描任务,获得每个网络地址对应的扫描结果。The target scanning tool is invoked to perform corresponding scanning tasks to obtain scanning results corresponding to each network address. 2.根据权利要求1所述的方法,其特征在于,基于每个所述网络地址集合对应的目标扫描配置信息,生成目标扫描工具对应的扫描任务,包括:2. The method according to claim 1, wherein, based on the target scanning configuration information corresponding to each of the network address sets, generating a scanning task corresponding to the target scanning tool includes: 针对每个所述网络地址集合而言,基于网络地址集合对应的目标扫描工具启动命令标识信息,确定该网络地址集合对应的目标扫描工具;For each network address set, based on the target scanning tool start command identification information corresponding to the network address set, determine the target scanning tool corresponding to the network address set; 将该网络地址集合和该网络地址集合对应的目标扫描参数信息进行组合,生成所述目标扫描工具对应的一个扫描任务。Combining the network address set and target scanning parameter information corresponding to the network address set to generate a scanning task corresponding to the target scanning tool. 3.根据权利要求1所述的方法,其特征在于,调用所述目标扫描工具,执行相应的扫描任务,获得每个网络地址对应的扫描结果,包括:3. The method according to claim 1, characterized in that, calling the target scanning tool, executing corresponding scanning tasks, and obtaining scanning results corresponding to each network address, comprising: 调用所述目标扫描工具,基于相应的扫描任务中的目标扫描参数信息,对该扫描任务中的网络地址集合进行逐个扫描,获得扫描后每个网络地址对应的响应解析结果;Invoking the target scan tool, based on the target scan parameter information in the corresponding scan task, scans the network address set in the scan task one by one, and obtains a response analysis result corresponding to each network address after scanning; 对所述响应解析结果进行判断,确定每个网络地址对应的扫描结果。The analysis result of the response is judged, and the scanning result corresponding to each network address is determined. 4.根据权利要求3所述的方法,其特征在于,对所述响应解析结果进行判断,确定每个网络地址对应的扫描结果,包括:4. The method according to claim 3, wherein judging the response analysis result and determining the scan result corresponding to each network address includes: 获取预先配置的所述目标扫描工具对应的响应解析成功条件和响应解析失败条件;Acquiring the pre-configured response parsing success conditions and response parsing failure conditions corresponding to the target scanning tool; 若所述响应解析结果满足所述响应解析成功条件,则确定相应的网络地址为网络连通正常地址;If the response analysis result satisfies the response analysis success condition, then determine that the corresponding network address is a normal network connection address; 若所述响应解析结果满足所述响应解析失败条件,则确定相应的网络地址为网络连通异常地址。If the response parsing result satisfies the response parsing failure condition, it is determined that the corresponding network address is an abnormal network connection address. 5.根据权利要求4所述的方法,其特征在于,在获得每个网络地址对应的扫描结果之后,还包括:5. The method according to claim 4, further comprising: after obtaining the scan result corresponding to each network address: 对所述网络连通正常地址进行统计处理,确定连通正常统计结果;Perform statistical processing on the normal address of the network connection, and determine the normal connection statistical result; 对所述网络连通异常地址进行统计处理,确定连通异常统计结果;Perform statistical processing on the abnormal network connection address, and determine the statistical result of abnormal connection; 将所述网络连通正常地址、所述连通正常统计结果、所述网络连通异常地址和所述连通异常统计结果进行展示。The normal network connection address, the normal connection statistical result, the abnormal network connection address and the abnormal connection statistical result are displayed. 6.根据权利要求1-5任一项所述的方法,其特征在于,获取待扫描的每个网络地址对应的目标扫描配置信息,包括:6. The method according to any one of claims 1-5, wherein obtaining the target scan configuration information corresponding to each network address to be scanned includes: 对待扫描的每个网络地址进行地址格式校验;Perform address format verification for each network address to be scanned; 获取校验成功的每个网络地址对应的目标扫描配置信息。Obtain the target scan configuration information corresponding to each network address that is verified successfully. 7.根据权利要求6所述的方法,其特征在于,所述方法还包括:7. The method according to claim 6, further comprising: 将校验失败的网络地址确定为格式异常地址;Determining the network address that fails the verification as an address with an abnormal format; 对所述格式异常地址进行统计处理,确定格式异常统计结果;Perform statistical processing on the address with abnormal format, and determine the statistical result of abnormal format; 将所述格式异常地址和所述格式异常统计结果进行展示。The address of the format exception and the statistical result of the format exception are displayed. 8.一种网络地址扫描装置,其特征在于,包括:8. A network address scanning device, comprising: 配置信息获取模块,用于获取待扫描的每个网络地址对应的目标扫描配置信息,其中,所述目标扫描配置信息包括:目标扫描工具启动命令标识信息和目标扫描参数信息,所述目标扫描参数信息为固有扫描参数信息或者自定义扫描参数信息;The configuration information obtaining module is used to obtain target scan configuration information corresponding to each network address to be scanned, wherein the target scan configuration information includes: target scan tool startup command identification information and target scan parameter information, and the target scan parameter The information is inherent scan parameter information or custom scan parameter information; 地址集合确定模块,用于基于所述目标扫描配置信息,对各个所述网络地址进行分类,确定各个网络地址集合,其中,每个所述网络地址集合中的网络地址具有相同的目标扫描配置信息;An address set determining module, configured to classify each of the network addresses based on the target scanning configuration information, and determine each network address set, wherein the network addresses in each of the network address sets have the same target scanning configuration information ; 扫描任务生成模块,用于基于每个所述网络地址集合对应的目标扫描配置信息,生成目标扫描工具对应的扫描任务;A scanning task generation module, configured to generate a scanning task corresponding to a target scanning tool based on the target scanning configuration information corresponding to each of the network address sets; 扫描结果获得模块,用于调用所述目标扫描工具,执行相应的扫描任务,获得每个网络地址对应的扫描结果。The scanning result obtaining module is configured to call the target scanning tool, execute corresponding scanning tasks, and obtain scanning results corresponding to each network address. 9.一种电子设备,其特征在于,所述电子设备包括:9. An electronic device, characterized in that the electronic device comprises: 至少一个处理器;以及at least one processor; and 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-7中任一项所述的网络地址扫描方法。The memory stores a computer program executable by the at least one processor, the computer program is executed by the at least one processor, so that the at least one processor can perform any one of claims 1-7 The network address scanning method. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现权利要求1-7中任一项所述的网络地址扫描方法。10. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method described in any one of claims 1-7 when executed. Network address scanning method.
CN202211350342.7A 2022-10-31 2022-10-31 A network address scanning method, device, electronic equipment and storage medium Pending CN115914029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211350342.7A CN115914029A (en) 2022-10-31 2022-10-31 A network address scanning method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211350342.7A CN115914029A (en) 2022-10-31 2022-10-31 A network address scanning method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115914029A true CN115914029A (en) 2023-04-04

Family

ID=86492462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211350342.7A Pending CN115914029A (en) 2022-10-31 2022-10-31 A network address scanning method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115914029A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060056306A1 (en) * 2004-09-10 2006-03-16 Konica Minolta Business Technologies, Inc. Communication device suitable for setting IP address of server connected to network, network parameter setting method and network parameter setting program product
CN110798545A (en) * 2019-11-05 2020-02-14 中国人民解放军国防科技大学 A Web-based Domain Name Data Acquisition Method
CN111291382A (en) * 2020-01-22 2020-06-16 上海电子信息职业技术学院 Vulnerability scanning system
CN112688810A (en) * 2020-12-23 2021-04-20 苏州三六零智能安全科技有限公司 Network asset information acquisition method, equipment and readable storage medium
CN113986298A (en) * 2021-11-04 2022-01-28 中国工商银行股份有限公司 Method and device for processing system vulnerability
CN114205137A (en) * 2021-12-08 2022-03-18 中国人寿保险股份有限公司深圳市分公司 Network security scanning method, device, computer equipment and storage medium
CN114301676A (en) * 2021-12-28 2022-04-08 国网宁夏电力有限公司 Nondestructive asset detection method of power monitoring system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060056306A1 (en) * 2004-09-10 2006-03-16 Konica Minolta Business Technologies, Inc. Communication device suitable for setting IP address of server connected to network, network parameter setting method and network parameter setting program product
CN110798545A (en) * 2019-11-05 2020-02-14 中国人民解放军国防科技大学 A Web-based Domain Name Data Acquisition Method
CN111291382A (en) * 2020-01-22 2020-06-16 上海电子信息职业技术学院 Vulnerability scanning system
CN112688810A (en) * 2020-12-23 2021-04-20 苏州三六零智能安全科技有限公司 Network asset information acquisition method, equipment and readable storage medium
CN113986298A (en) * 2021-11-04 2022-01-28 中国工商银行股份有限公司 Method and device for processing system vulnerability
CN114205137A (en) * 2021-12-08 2022-03-18 中国人寿保险股份有限公司深圳市分公司 Network security scanning method, device, computer equipment and storage medium
CN114301676A (en) * 2021-12-28 2022-04-08 国网宁夏电力有限公司 Nondestructive asset detection method of power monitoring system

Similar Documents

Publication Publication Date Title
CN114697391B (en) Data processing method, device, equipment and storage medium
CN116126409A (en) Method, device, equipment and medium for acquiring and modifying system configuration information
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN116701168A (en) Peripheral interface testing method, device, equipment and storage medium
CN116301676A (en) Printing equipment connection method, device, equipment and storage medium
CN112131611B (en) Data correctness verification method, device, equipment, system and storage medium
CN114418429A (en) Monitoring method and device for batch operation, mobile terminal and medium
CN115914029A (en) A network address scanning method, device, electronic equipment and storage medium
CN115757275B (en) Asset information management method and device, electronic equipment and storage medium
CN117499873A (en) Short message processing method, device, electronic equipment and storage medium
CN115442252A (en) A call chain construction method, device, electronic equipment and readable storage medium
CN116489110A (en) A routing data packet verification method, device, chip and storage medium
CN114003497A (en) Method, device and equipment for testing service system and storage medium
CN113691403A (en) Topological node configuration method, related device and computer program product
CN115981857B (en) Fault analysis system
CN117544487B (en) Abnormal device determination method, device, electronic device and storage medium
CN116755944B (en) Server testing method and device, electronic equipment and storage medium
CN113986661B (en) Log output method, device, electronic device and storage medium
CN115543712A (en) Automatic detection method and device for equipment configuration information, electronic equipment and medium
CN112527537B (en) Quality monitoring method, device, equipment and medium of online service system
CN115269055A (en) Nginx request data acquisition method, device, equipment and storage medium
CN118337341A (en) Device communication method, device, electronic device and storage medium
CN116567115A (en) Message detection method and device, electronic equipment and medium
CN116107878A (en) Remote debugging method, device, equipment and storage medium
CN120234242A (en) A test data generation method, device, equipment and medium

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