All-internet port scanning method and system based on area perception
Through the full Internet port scanning method based on region-awareness, the problems of slow scanning speed and low accuracy in the prior art are solved, and more efficient and accurate port scanning is achieved.
Patent Information
- Application Number
- CN202510234702.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-05-27
AI Technical Summary
The existing full-Internet port scanning methods have problems such as inefficiency, low accuracy and unreasonable task allocation, resulting in slow scanning speed and low accuracy.
The full Internet port scanning method based on area perception is adopted. By obtaining detection task requests, task allocation is performed according to the area characteristics of the scanner, and the task is divided into two stages: the pre-running stage and the main operation stage. In the pre-run phase, scanner clusters are divided and average delay tables are constructed; in the main operation phase, a two-layer workload balancing mechanism is used to dynamically allocate subtasks to improve task completion efficiency.
Task allocation through geographic location awareness reduces average detection delay, improves task completion efficiency, and improves the speed and accuracy of scanning of all Internet ports.
Smart Images

Figure CN120050105A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a method and system for scanning ports across the entire Internet based on region awareness. Background Art
[0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.
[0003] Internet of Things (IoT) devices have been used in industry, agriculture, telemedicine, smart transportation, and various other scenarios. Although these devices offer many smart and innovative services, they are fraught with significant security vulnerabilities. Most IoT devices are characterized by their small size, low CPU power consumption, and limited memory, storage, and power capabilities, making them unable to support security software or intrusion prevention systems typically deployed in PC setups. Limited system resources hinder the deployment of complex security protocols and intrusion prevention mechanisms, exposing IoT devices to brute-force cyberattacks. Therefore, regular vulnerability scanning and threat assessment are expected to become standard practice in the near future. Internet-Wide Port Scan (IWPS) technology, which can identify open network ports and perform a thorough scan of the entire network, has recently become a widely recognized vulnerability scanning method for IoT devices.
[0004] IWPS is a network analysis method designed to identify vulnerabilities and security threats associated with the various services running on each port of an interconnected device. This extensive scanning function can be performed routinely by a network administrator or service provider. The scanner can fully check the ports through the TCP handshake method. In this method, the scanner sends a synchronization (SYN) packet to each port of the device, and each port will respond with information or remain unresponsive depending on its state (open or closed).
[0005] Among them, there are several IWPS modes, including open scanning and semi-open scanning. Open scanners like Nmap are well suited for vertical scanning of specific network segments. Open scanners are tailored for synchronous scanning, which waits for a response from the target until a timeout threshold is reached, and they work relatively slowly. Due to system limitations, open scanners often take weeks to scan the entire Internet, making it an inefficient method for IWPS. On the other hand, semi-open scanners like Zmap and Masscan use a covert half-tcp handshake method that minimizes network impact. For example, Zmap achieves fast scanning by generating millions of packets that do not rely on tracking port responses.
[0006] However, the existing IWPS model still has the following problems:
[0007] 1) Open scanners are synchronous scans that need to wait for a response from the target until a timeout threshold is reached, so they work relatively slowly. Due to system limitations, open scanners often take weeks to scan the entire Internet, making it an inefficient method for IWPS;
[0008] 2) Half-open scanners cannot identify dropped packets or the cause of such loss, resulting in significantly lower accuracy than open scanners;
[0009] 3) Currently, the task allocation strategy of most IWPS tools is random, that is, the central server randomly assigns port scanning tasks to all scanners. Generally speaking, there are hundreds of scanners in the system distributed in countries around the world. Due to the random scheduling of the central node, the assigned port scanning tasks and the IP addresses of the scanners are often not in the same country or region. Intuitively, the port connection delay within the same country or region is higher than the port connection delay between countries or regions. In other words, compared with ports in other countries, scanners can handle domestic ports more effectively. However, there is currently a lack of an effective method to assign appropriate port scanning tasks to port scanners based on their geographical locations, thereby improving the speed and accuracy of port scanning across the entire Internet. Summary of the invention
[0010] In order to solve the above problems, the present invention proposes a full Internet port scanning method and system based on regional perception, designs an efficient full Internet port scanning method, assigns appropriate port scanning tasks to the port scanner according to its geographical location, and improves the speed and accuracy of full Internet port scanning.
[0011] According to some embodiments, the present disclosure adopts the following technical solutions:
[0012] The whole Internet port scanning method based on region awareness includes:
[0013] Get the detection task request;
[0014] The region-aware IWPS method is applied to assign detection tasks to scanners according to their regional characteristics. The IWPS task assignment process is divided into two stages, including the pre-operation stage and the main operation stage.
[0015] Among them, in the pre-operation stage, the scanner is divided into different clusters according to the geographical distribution, and an average delay table is built for each cluster based on the historical detection task request records; in the main operation stage, the detection task is split into multiple subtasks according to the IP address, and a two-layer workload balancing mechanism is used to dynamically allocate subtasks between clusters, and a subtask completion list is built to record the completion status of all subtasks until the detection task queue is empty, so as to determine whether the entire detection task is completed and realize the detection task scanning of all Internet ports.
[0016] According to some embodiments, the present disclosure adopts the following technical solutions:
[0017] The whole Internet port scanning system based on zone awareness includes:
[0018] A task acquisition module is used to obtain a detection task request;
[0019] The task allocation module is used to apply the region-aware IWPS method to allocate detection tasks to the scanner according to the regional characteristics of the scanner, and divide the IWPS task allocation process into two stages, including a pre-operation stage and a main operation stage;
[0020] Among them, in the pre-operation stage, the scanner is divided into different clusters according to the geographical distribution, and an average delay table is built for each cluster based on the historical detection task request records; in the main operation stage, the detection task is split into multiple subtasks according to the IP address, and a two-layer workload balancing mechanism is used to dynamically allocate subtasks between clusters, and a subtask completion list is built to record the completion status of all subtasks until the detection task queue is empty, so as to determine whether the entire detection task is completed and realize the detection task scanning of all Internet ports.
[0021] According to some embodiments, the present disclosure adopts the following technical solutions:
[0022] A computer program product includes a computer program, and when the computer program is executed by a processor, the method for scanning the entire Internet port based on regional awareness is implemented.
[0023] According to some embodiments, the present disclosure adopts the following technical solutions:
[0024] A non-transitory computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by a processor, the region-awareness-based full Internet port scanning method is implemented.
[0025] According to some embodiments, the present disclosure adopts the following technical solutions:
[0026] An electronic device comprises: a processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory, so that the electronic device executes the region-awareness-based full Internet port scanning method.
[0027] Compared with the prior art, the present invention has the following beneficial effects:
[0028] The disclosed method for scanning the entire Internet port based on regional awareness considers an Internet-wide WLAN network of the Internet of Things, in which devices use the IEEE 802.11 protocol to connect to the Internet in order to transmit data to service providers and users. In terms of supporting device security, network operators and security administrators use port scanners such as Nmap to conduct a comprehensive scan of connected devices, identify vulnerabilities, and design effective intrusion protection measures. An efficient method for scanning the entire Internet port is designed, and appropriate port scanning tasks are assigned to the port scanner according to its geographical location, so as to achieve efficient and high-precision Internet-wide port scanning, thereby improving the speed and accuracy of the entire Internet port scanning.
[0029] The present invention discloses a full Internet port scanning method based on regional awareness. The system consists of a central server and multiple scanners distributed in various regions. When a user sends a detection task request to the central server, the central server will allocate tasks according to the status of scanners around the world and allocate the detection task to the appropriate scanner. After completing the detection task, the scanner returns the result to the central server and then presents it to the user. IWPS tasks are allocated according to the regional characteristics of the scanner. An efficient IWPS method based on regional awareness is proposed. The method is divided into two stages. The first stage is the pre-operation stage, and the second stage is the main operation stage. The method can reduce the average detection delay and improve the efficiency of task completion.
[0030] The disclosed method for scanning the entire Internet port based on regional awareness has the following stages: the first stage is the pre-operation stage, which is responsible for analyzing the scanner information and historical detection task request records. In this stage, the scanners are divided into different clusters according to their geographical locations, and an average delay table is constructed for each cluster. The average delay table does not need to be updated in real time, but only needs to be updated once every few days or weeks, thereby reducing the computing workload of the central server.
[0031] The present invention discloses a method for scanning the entire Internet port based on regional awareness. The second stage is the main operation stage, which is executed when a user or network administrator submits an IWPS task. The central server will execute the scanner's two-layer workload balancing method to reallocate subtasks. This process will be repeated. The algorithm has two goals. One is to enable the scanner to complete the tasks it is good at, that is, to detect tasks based on regional features. The other is to ensure the workload balance between scanners, thereby improving overall efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings constituting a part of the present disclosure are used to provide a further understanding of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure.
[0033] Figure 1 This is a system architecture diagram for allocating Internet port scanning and detection tasks according to an embodiment of the present disclosure;
[0034] Figure 2 This is a diagram of the execution process of the region-aware efficient full-Internet port scanning algorithm according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.
[0036] It should be noted that the following detailed descriptions are all illustrative and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present disclosure belongs.
[0037] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0038] Example 1
[0039] In one embodiment of the present disclosure, a method for scanning the entire Internet port based on region awareness is provided, and the steps include:
[0040] Step 1: Get the detection task request;
[0041] Step 2: Apply the region-aware IWPS method to assign detection tasks to the scanner according to the regional characteristics of the scanner, and divide the IWPS task assignment process into two stages, including the pre-operation stage and the main operation stage;
[0042] Among them, in the pre-operation stage, the scanner is divided into different clusters according to the geographical distribution, and an average delay table is built for each cluster based on the historical detection task request records; in the main operation stage, the detection task is split into multiple subtasks according to the IP address, and a two-layer workload balancing mechanism is used to dynamically allocate subtasks between clusters, and a subtask completion list is built to record the completion status of all subtasks until the detection task queue is empty, so as to determine whether the entire detection task is completed and realize the detection task scanning of all Internet ports.
[0043] As an embodiment, the present invention discloses a method for scanning the entire Internet port based on regional awareness, designs an efficient method for scanning the entire Internet port, assigns appropriate port scanning tasks to the port scanner according to its geographical location, thereby improving the speed and accuracy of the entire Internet port scanning. The present invention considers the Internet-wide Internet of Things WLAN network, in which devices use the IEEE 802.11 protocol to connect to the Internet in order to transmit data to service providers and users. In terms of supporting device security, network operators and security administrators use port scanners such as Nmap to conduct a comprehensive scan of connected devices, identify vulnerabilities, and design effective intrusion protection measures. The specific system architecture is as follows: Figure 1 As shown, the system is mainly composed of a central server and multiple scanners distributed in various regions. When a user sends a detection task request to the central server, the central server will assign tasks according to the status of scanners around the world and assign the detection task to the appropriate scanner. After completing the detection task, the scanner returns the result to the central server and then presents it to the user.
[0044] The goal of this paper is to reduce the average detection delay and improve the efficiency of task completion. In order to achieve this goal, IWPS tasks are assigned according to the regional characteristics of the scanner, and an efficient regional-aware IWPS method is proposed. The specific implementation process of the method is as follows:
[0045] Step 1: Get the detection task request;
[0046] Step 2: Apply the region-aware IWPS method to assign detection tasks to the scanner according to the regional characteristics of the scanner, and divide the IWPS task assignment process into two stages, including the pre-operation stage and the main operation stage;
[0047] The first stage is the pre-running stage, where the pre-running program is run to analyze scanner information and historical detection task request records. In this stage, scanners are divided into different clusters according to their geographical locations, and an average latency table is built for each cluster.
[0048] Furthermore, the average delay table does not need to be updated in real time, but only needs to be updated once every few days or weeks, thereby reducing the computational workload of the central server.
[0049] The second stage is the main operation stage, which runs the main program and is executed when the user or network administrator submits an IWPS task. When a scanning task is received, the central server first divides the task into multiple subtasks based on the regional information. Then the initial task allocation is performed, and the subtask completion list is maintained to determine whether all tasks have been completed. If not, the central server will execute the scanner workload balancing program to reallocate the subtasks. This process will be repeated until all subtasks are completed. If all subtasks are completed, the central server will return the results to the user. The algorithm has two goals. One is to enable the scanner to complete the tasks it is good at, that is, to detect tasks based on regional features, and the other is to ensure the workload balance between scanners, thereby improving overall efficiency. The specific implementation details are as follows:
[0050] 1) In the pre-operation phase, all scanners are first clustered according to the regional information, and scanner nodes in the same region (country) or area are divided into the same cluster. Furthermore, an average delay table is constructed for each cluster based on the historical detection task request information.
[0051] In the historical detection process of the scanner, the scanner will send detection packets to detection targets in different regions. First, the time when the scanner sends the detection packet is recorded. After receiving the detection packet, the detection target will return the corresponding information. After receiving the returned detection information, the scanner records the receiving time and calculates the delay of the scanner when performing detection tasks in different regions by subtracting the sending time from the receiving time. Since the scanner will scan multiple targets in the same region, such as scanning multiple IP addresses in China, the delay of a single scan is relatively random and cannot objectively reflect the real delay of the scanner to this region. Therefore, the average delay over a period of time is used as the real delay of the scanner to this region. Specifically, the total delay is calculated by adding the delays of all detection tasks performed by all scanners in the cluster in the previous two weeks, and the total number of detection tasks performed by all scanners in the cluster in the region is counted. The average delay is obtained by dividing the total delay by the total number of times. The average delay value is updated every two weeks. The average delay value will be saved in the central server as the average delay of the cluster to the region. By recording the average delays of different clusters to different regions, the central server can obtain an average delay table. Specifically, the horizontal axis of the table is the cluster number, the vertical axis is the region, and the value filled in the table is the average delay. The pre-run phase is completed before the scanning task arrives and belongs to the initialization of the program.
[0052] 2) In the main operation phase, when a detection task request arrives, the central server executes the main program. In order to enable the scanning cluster to scan the detection tasks of the corresponding area, the detection task is first split into multiple subtasks according to the IP address. Then, a subtask completion list will be built to record the completion status of all subtasks to determine whether the entire task is completed. However, assigning tasks based only on regional information can easily lead to an unbalanced workload in the system. In order to solve this problem, the present disclosure designs a two-layer workload balancing mechanism.
[0053] The first layer is workload balancing between clusters. The central server can dynamically assign subtasks to scan clusters multiple times. The central server assigns subtasks to all idle scan clusters for the first time.
[0054] Specifically, for each idle cluster, the central server reads the average delay table of the cluster from the beginning, and determines whether the subtask in the first area of the average delay table of the cluster is completed by checking the completion list. If the subtask has been completed, it will read the next item in the average delay table; if not, it will continue to determine whether the subtask is being processed by other scanning clusters; if not, the detection subtask is assigned to the scanning cluster for processing, and if so, the two clusters are merged to complete the subtask together. After the first allocation, although each scanning cluster is assigned the subtask it is best at, the workload of each cluster is different. When a scanning cluster completes its subtask first, it will report to the central server that the subtask has been completed and the scanning cluster is idle. When the central server receives the information, it updates the subtask completion list and repeats the first allocation process to reallocate the new subtask to the cluster. Repeat this process until all subtasks are completed. Through multiple dynamic allocations, it is guaranteed that the scanning cluster can execute the best subtask every time, and it avoids the idleness of some scanning cluster nodes due to the imbalance of workload between clusters, thereby effectively improving the completion efficiency of the detection task.
[0055] Furthermore, the second layer is the workload balancing of scanners in the same cluster. Each scanning cluster maintains a first-in-first-out task queue, which records the tasks (IP addresses that need to be detected) that are currently assigned to the cluster but not executed. When the cluster is assigned a new task, this task is added to the end of the task queue. When the scanner in the cluster executes a task, it first obtains the target to be detected from the head of the task queue. For example, there are three tasks A, B, and C in the current task queue in order. At a certain moment, when the cluster is assigned a new task D, D will first be added to the end of the queue. That is, at this moment, there are four tasks A, B, C, and D in the queue in order. When the scanner in the cluster executes the task, the first task, task A, will be taken out of the queue for execution. At this time, there are still three tasks B, C, and D in the queue in order. When the cluster is assigned other new tasks E, they will continue to be added after D, and the next task executed by the scanner in the cluster is B, and so on. Each scanner in the cluster obtains a set of targets to be detected from the task queue each time according to the first-in-first-out principle until the task queue is empty. When the queue is empty, it means that the cluster has completed all assigned tasks. By sharing the task queue in this way, the workload of the scanners in the cluster is balanced. The execution process of the above algorithm is as follows: Figure 2 shown.
[0056] Example 2
[0057] In one embodiment of the present disclosure, a region-aware full Internet port scanning system is provided, comprising:
[0058] A task acquisition module is used to obtain a detection task request;
[0059] The task allocation module is used to apply the region-aware IWPS method to allocate detection tasks to the scanner according to the regional characteristics of the scanner, and divide the IWPS task allocation process into two stages, including a pre-operation stage and a main operation stage;
[0060] Among them, in the pre-operation stage, the scanner is divided into different clusters according to the geographical distribution, and an average delay table is built for each cluster based on the historical detection task request records; in the main operation stage, the detection task is split into multiple subtasks according to the IP address, and a two-layer workload balancing mechanism is used to dynamically allocate subtasks between clusters, and a subtask completion list is built to record the completion status of all subtasks until the detection task queue is empty, so as to determine whether the entire detection task is completed and realize the detection task scanning of all Internet ports.
[0061] Example 3
[0062] In one embodiment of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the whole Internet port scanning method based on regional awareness is implemented.
[0063] Example 4
[0064] In one embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed by a processor, the region-awareness-based full Internet port scanning method is implemented.
[0065] Example 5
[0066] In one embodiment of the present disclosure, an electronic device is provided, including: a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory, so that the electronic device executes the region-awareness-based full Internet port scanning method.
[0067] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0068] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0069] Although the above describes the specific implementation methods of the present disclosure in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present disclosure. Technical personnel in the relevant field should understand that on the basis of the technical solution of the present disclosure, various modifications or variations that can be made by those skilled in the art without creative work are still within the scope of protection of the present disclosure.
Claims
1. A full Internet port scanning method based on region awareness, characterized in that: include: Get the detection task request; The region-aware IWPS method is applied to assign detection tasks to scanners according to their regional characteristics. The IWPS task assignment process is divided into two stages, including the pre-operation stage and the main operation stage. In the pre-operation phase, the scanners are divided into different clusters according to their geographical distribution, and an average latency table is built for each cluster based on historical detection task request records; In the main operation phase, the detection task is split into multiple subtasks according to the IP address, and a two-layer workload balancing mechanism is used to dynamically allocate subtasks between clusters. A subtask completion list is built to record the completion status of all subtasks until the detection task queue is empty to determine whether the entire detection task is completed, thereby realizing the detection task scanning of all Internet ports.
2. The method for scanning the entire Internet port based on regional awareness as claimed in claim 1, characterized in that: In the pre-operation phase, scanners are divided into different clusters according to their geographical distribution locations, including: obtaining the geographical information of all scanners, clustering all scanners according to the geographical distribution locations of the scanners in the geographical information, and dividing the scanner nodes in the same area or region into the same cluster.
3. The region-aware full Internet port scanning method according to claim 1, characterized in that: Get the historical detection task request records of the scanner. During the historical task detection process of the scanner, record the delay of the scanner when performing detection tasks in different regions, and calculate the average delay of the scanner to perform detection tasks in different regions. Further calculate the average delay from the cluster where the scanner is located to different regions by averaging the scanner delay within the cluster. Iterate the above method to construct an average delay table for each cluster.
4. The region-aware full Internet port scanning method according to claim 1, characterized in that: In the main operation phase, when a detection task request arrives, the detection task is first split into multiple subtasks according to the IP address, and a two-layer workload balancing mechanism is adopted. The first layer is the workload balancing between clusters. The central server dynamically assigns subtasks to scanning clusters multiple times; the second layer is the workload balancing in the same cluster. Each scanning cluster maintains a first-in-first-out task queue. Each scanner in the cluster obtains a set of targets to be detected from the task queue each time. After completing the detection, it will continue to obtain targets from the cluster's task queue until the task queue is empty.
5. The method for scanning the entire Internet port based on regional awareness as claimed in claim 4, characterized in that: Inter-cluster workload balancing includes: the central server assigns subtasks to all idle scanning clusters for the first time. For each idle cluster, the central server reads the cluster's average delay table from the beginning, and determines whether the subtask in the first item in the cluster's average delay table is completed by checking the completion list. If the subtask has been completed, it will read the next item in the average delay table; if not, it will continue to determine whether the subtask is being processed by other scanning clusters. If not, the detection subtask will be assigned to the scanning cluster for processing. If so, the two clusters will be merged to complete the subtask together.
6. The method for scanning the entire Internet port based on regional awareness as claimed in claim 5, characterized in that: After the first allocation, each scanning cluster is assigned the subtask that it is best at, but considering the different workloads of each cluster, when a scanning cluster completes its subtask first, it will report to the central server that the subtask has been completed and the scanning cluster is in an idle state. When the central server receives the information, it updates the subtask completion list and repeats the first allocation process, dynamically reassigning new subtasks to the cluster, and repeating the process until all subtasks are completed.
7. The whole Internet port scanning system based on regional awareness is characterized by: include: A task acquisition module is used to obtain a detection task request; The task allocation module is used to apply the region-aware IWPS method to allocate detection tasks to the scanner according to the regional characteristics of the scanner, and divide the IWPS task allocation process into two stages, including a pre-operation stage and a main operation stage; In the pre-operation phase, the scanners are divided into different clusters according to their geographical distribution, and an average latency table is built for each cluster based on historical detection task request records; In the main operation phase, the detection task is split into multiple subtasks according to the IP address, and a two-layer workload balancing mechanism is used to dynamically allocate subtasks between clusters. A subtask completion list is built to record the completion status of all subtasks until the detection task queue is empty to determine whether the entire detection task is completed, thereby realizing the detection task scanning of all Internet ports.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the region-aware full Internet port scanning method described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by the processor, the full-Internet port scanning method based on regional awareness is implemented as described in any one of claims 1-6.
10. An electronic device, characterized in that: include: A processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory to enable the electronic device to implement the full Internet port scanning method based on regional awareness as described in any one of claims 1-6.