CN109582830A - A kind of generation method and device of port list - Google Patents
A kind of generation method and device of port list Download PDFInfo
- Publication number
- CN109582830A CN109582830A CN201811560216.8A CN201811560216A CN109582830A CN 109582830 A CN109582830 A CN 109582830A CN 201811560216 A CN201811560216 A CN 201811560216A CN 109582830 A CN109582830 A CN 109582830A
- Authority
- CN
- China
- Prior art keywords
- port
- generation
- list
- port list
- range
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
Abstract
The invention discloses a kind of generation methods of port list, which comprises receives the relevant parameter of the generation port list of user's input, comprising: generates port number and generates number;According to the generation port number and number is generated, generates port list at random.Scheme through the invention, realizes and automatically generates port list.
Description
Technical field
The present invention relates to measuring technology, the generation method and device of espespecially a kind of port list.
Background technique
Nowadays, computer system network Protection Product is more and more, these products can be by corresponding in guard system
IP address (Internet Protocol Address, Internet protocol address are translated into internet protocol address again) and port come
It realizes and the orientation that grid communicates is protected.If IP address is compared to a house, port is exactly to enter and leave this house
Door.Real house only has several doors, but the port of an IP address can have as many as 65536 (0-65535)!If people
Work tests these ports one by one manually, it will expends a large amount of manpower and time.Therefore, in view of the above-mentioned problems, there is an urgent need for realizations
A method of random port list is automatically generated, random port list is generated to realize to automate, can substantially increase certainly
Dynamicization testing efficiency saves a large amount of human cost and time cost, while also improving the accuracy rate of test.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of generation method of port list and device, Neng Gou
Realize that automation generates random port list in test process.
In order to reach the object of the invention, the present invention provides a kind of generation methods of port list, which is characterized in that described
Method includes:
Receive the relevant parameter of the generation port list of user's input, comprising: generate port number, generate number;
According to the generation port number, number is generated, generates port list at random.
In a kind of exemplary embodiment, described according to generating port number, generating number, random the generations port is arranged
Before table further include:
Determine the numberical range of port when carrying out port list generation.
In a kind of exemplary embodiment, the relevant parameter further include: port range;
The numberical range of port includes: when the determining progress port list generation
When port range is full port, determine that the numberical range of port when carrying out port list generation is 0-N;Wherein, N
For the maximum number of port;
When port range is not full port, determine that the numberical range of port when carrying out port list generation is the correlation
The port range specified in parameter.
In a kind of exemplary embodiment, the relevant parameter further include: whether exclude;
The numberical range of port includes: when the determining progress port list generation
When relevant parameter is exclusive segment port, determine that the numberical range of port when carrying out port list generation is to exclude
The numberical range of the port of section ports;
When relevant parameter is to be not excluded for section ports, determine that the numberical range of port when carrying out port list generation is not
The numberical range of the port of exclusive segment port.
In a kind of exemplary embodiment, the relevant parameter further include: whether duplicate removal;
The random generation port list includes:
When relevant parameter is duplicate removal, the random port list that generates is the numerical value model by generated port ordered series of numbers from port
Port list after enclosing the duplicate removal after deleting in list;
When relevant parameter is not duplicate removal, the port list generated at random is the port list of non-duplicate removal.
To solve the above-mentioned problems, the present invention also provides the devices of the generation of port list, comprising: memory and processing
Device;It is characterized by:
The memory, for saving the program for being used for the generation of port list;
The processor is performed the following operations for reading the program for executing the generation for port list:
Receive the relevant parameter of the generation port list of user's input, comprising: generate port number, generate number;
According to the generation port number, number is generated, generates port list at random.
In a kind of exemplary embodiment, the processor reads the program for executing the generation for port list,
Also perform the following operations:
It is described according to generating port number, generating number, progress port list is determined before random the generations port list
The numberical range of port when generation.
In a kind of exemplary embodiment, the processor reads the program for executing the generation for port list,
Also perform the following operations:
The relevant parameter further include: port range;
The numberical range of port includes: when the determining progress port list generation
When port range is full port, determine that the numberical range of port when carrying out port list generation is 0-N;Wherein, N
For the maximum number of port;
When port range is not full port, determine that the numberical range of port when carrying out port list generation is the correlation
The port range specified in parameter.
In a kind of exemplary embodiment, the processor reads the program for executing the generation for port list,
Also perform the following operations:
The relevant parameter further include: whether exclude;
The numberical range of port includes: when the determining progress port list generation
When relevant parameter is exclusive segment port, determine that the numberical range of port when carrying out port list generation is to exclude
The numberical range of the port of section ports;
When relevant parameter is to be not excluded for section ports, determine that the numberical range of port when carrying out port list generation is not
The numberical range of the port of exclusive segment port.
In a kind of exemplary embodiment, the processor reads the program for executing the generation for port list,
Also perform the following operations:
The relevant parameter further include: whether duplicate removal;
The random generation port list includes:
When relevant parameter is duplicate removal, the random port list that generates is the numerical value model by generated port ordered series of numbers from port
Port list after enclosing the duplicate removal after deleting in list;
When relevant parameter is not duplicate removal, the port list generated at random is the port list of non-duplicate removal.
Compared with prior art, a kind of generation method of port list of the present invention, comprising: receive the generation end of user's input
The relevant parameter of mouth list, comprising: generate port number, generate number;According to the generation port number and number is generated, with
Machine generates port list.Scheme through the invention, can be realized and automatically generate port list in automatic test course.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right
Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of the generation method of port list of the present invention;
Fig. 2 is the schematic diagram of the generating means of port list of the present invention;
Fig. 3 is the flow chart of the generation method of an example port list of the invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable
Sequence executes shown or described step.
Fig. 1 is the flow chart of the generation method of port list of the invention, and according to the flow chart, the port of the present embodiment is arranged
The generation method of table, comprising:
Step 100: receiving the relevant parameter of the generation port list of user's input, comprising: generate port number, generation time
Number.
In the present embodiment, the relevant parameter of the generation port list of user's input may include generating port number and life
It also may include parameter required for other users at number.The relevant parameter of user's input can use more based on the received
Kind port generates mode or various ports combination generates port list.Such as: it generates port number (ports_count),
Positive integer;It can be 2,4 etc. according to the parameter of user's input;It generates number (create_time), non-zero positive integer;According to user
The parameter of input can be 2,4 etc..
In a kind of exemplary embodiment, described according to generating port number, generating number, random the generations port is arranged
Before table further include: determine the numberical range of port when carrying out port list generation.
In a kind of exemplary embodiment, the relevant parameter of the generation port list of user's input can also include: port
Range;The port range parameter, that is, port range (all_ports), data type is Boolean type, the parameter may include True or
False.When further including port range in the relevant parameter, the numberical range of port when carrying out port list generation is determined,
It may include: to determine that the numberical range of port when carrying out port list generation is 0-N when port range is full port;Wherein,
N is the maximum number of port;Such as: when an IP address has 65536 ports, the value of the N is 65536.Work as port range
When not being full port, determine that the numberical range of port when carrying out port list generation is the specified port range of user's input.
The realization process of the embodiment of above-mentioned example can be with are as follows: judge received port range parameter whether be True or
False;When the received port parameter of institute is True, determine that the numberical range of port when carrying out port list generation is 0-N,
In, N is the maximum number of port, such as: when an IP address has 65536 ports, the value of the N is 65536.When being received
Port range when being False, determine that the numberical range of port when carrying out port list generation is the specified of user's input
Port range;That is, if when the received port parameter of institute is False, the specified port model that can be inputted according to user
Enclose the minimum value ports_range_min of i.e. port interval range and the maximum value ports_range_max of port interval range
Determine that the interval range of port determines the numberical range of port when port list generates;Such as: as the ports_ of user's input
Range_min is 20, ports_range_max 100;End is so determined according to the specified port range that user pre-enters
The numberical range of port is 20-100 when mouth list generates.
In a kind of exemplary embodiment, the relevant parameter of the generation port list of user's input further include: whether exclude;
Determine the numberical range of port when carrying out port list generation, comprising: when relevant parameter is exclusive segment port, determines and carry out
The numberical range of port is the numberical range of the port of exclusive segment port when port list generates;When relevant parameter is to be not excluded for
When section ports, determine that the numberical range of port when carrying out port list generation is the numerical value model for being not excluded for the port of section ports
It encloses.Wherein, which excludes (exclude), and data type is Boolean type, which may include True or False.Sentence
It is disconnected whether exclusive segment port can be by judging whether exclude parameter is True, if it is determined that exclude parameter is
True, then from the ordered series of numbers removed in port range list in exclude_ports list;Such as: judge that exclude parameter is
True, the port list exclude_ports of the exclusion are [10,100];Then exclude_ is removed from port range list
The ordered series of numbers of [10,100] is in ports list to generate port list.
Step 101: according to the generation port number, generating number, generate port list at random.
In the present embodiment, the port number of the generation inputted according to user generates number, can use random algorithm
Generate port list.The principle of the random algorithm is similar to the random number generated in specified range, exactly generates 0-65535 range
The random number series of interior specified requirement are simultaneously returned to the random number series of specified requirement with tabular form, the input as other functions.
It is can not to be any random generation by having to seek survival into random number difference.According to random algorithm, circulation takes out port number
Column, the ordered series of numbers of taking-up is put into list, when meeting the port number of generation in list, carries out following for construction list information next time
Ring generates number until meeting, stops circulation.The random module for generating port list may include: that single-port generates at random,
Multiport generates at random, duplicate removal mode, and specified range generates mode, and full port generates mode, exclusive segment port mode.Its
In, single-port generates mode at random are as follows: the specified port number that generates is 1, and generating number is 3, then from 0-65535 port
3 port information lists are taken out at random, only include 1 port information in each list, such as: [233], [5778],
[22356];
Multiport generates mode at random are as follows: the specified port number 3 generated, generating number is 4, then holds from 0-65535
4 port list information are taken out in mouthful at random, include 3 port informations in each list, such as: [23,189,5578],
[123,12,567],[4455,1290,33],[5577,2234,809];
Duplicate removal mode are as follows: if selecting the mode, duplicate port information is not included in the port list generated at random;
It include duplicate port information in the port list generated if not selecting the mode;
Specified range generates mode are as follows: if selection designated port range, the port generated at random is only in range
It generates.For example, designated port range is 1-10000, then the port generated at random only generates in range, not outside formation range
Port.
Full port generates mode are as follows: is defaulted as full port and generates mode, if selecting full port to generate mode, at random
The port of generation is to be randomly generated in full port (0-65535).
Exclusive segment port mode are as follows: specified port information is inserted, such as: 345,666;So port 345,666 will
It will not be generated.
In a kind of exemplary embodiment, the relevant parameter further include: whether duplicate removal;The random generation port list
It include: when relevant parameter is duplicate removal, the random port list that generates is the numberical range by generated port ordered series of numbers from port
The port list after duplicate removal after being deleted in list;When relevant parameter is not duplicate removal, the port list generated at random is not go
The port list of weight.Specific implementation process can be with are as follows: judges whether duplicate removal parameter repeat is False, if duplicate removal parameter
Repeat is False, then not allow to repeat, implementation method is the port ordered series of numbers generated from port value range list
Middle deletion, in this way next time would not be repeated when taking out port ordered series of numbers from port range;If duplicate removal parameter repeat is
True, then to allow to repeat, the port ordered series of numbers of generation, which exists, repeatedly generates identical port.
In addition, this application provides a kind of one embodiment of the generating means of port list, the Installation practice and Fig. 1
Shown in embodiment of the method it is corresponding, which specifically can be applied in various electronic equipments.
To solve the above-mentioned problems, as shown in Fig. 2, the present invention also provides the generating means of port list, comprising: storage
Device and processor;
Receive the relevant parameter of the generation port list of user's input, comprising: generate port number, generate number;
According to the generation port number, number is generated, generates port list at random.
In a kind of exemplary embodiment, the processor reads the program for executing the generation for port list,
Also perform the following operations:
It is described according to generating port number, generating number, progress port list is determined before random the generations port list
The numberical range of port when generation.
In a kind of exemplary embodiment, the processor reads the program for executing the generation for port list,
Also perform the following operations:
The relevant parameter further include: port range;
The numberical range of port includes: when the determining progress port list generation
When port range is full port, determine that the numberical range of port when carrying out port list generation is 0-N;Wherein, N
For the maximum number of port;
When port range is not full port, determine that the numberical range of port when carrying out port list generation is the correlation
The port range specified in parameter.
In a kind of exemplary embodiment, the processor reads the program for executing the generation for port list,
Also perform the following operations:
The relevant parameter further include: whether exclude;
The numberical range of port includes: when the determining progress port list generation
When relevant parameter is exclusive segment port, determine that the numberical range of port when carrying out port list generation is to exclude
The numberical range of the port of section ports;
When relevant parameter is to be not excluded for section ports, determine that the numberical range of port when carrying out port list generation is not
The numberical range of the port of exclusive segment port.
In a kind of exemplary embodiment, the processor reads the program for executing the generation for port list,
Also perform the following operations:
The relevant parameter further include: whether duplicate removal;
The random generation port list includes:
When relevant parameter is duplicate removal, the random port list that generates is the numerical value model by generated port ordered series of numbers from port
Port list after enclosing the duplicate removal after deleting in list;
When relevant parameter is not duplicate removal, the port list generated at random is the port list of non-duplicate removal.
As shown in figure 3, a kind of implementation process of exemplary embodiment of the invention is as follows:
Step 300: the incoming relevant parameter for generating port list of user, comprising: generate port number, generate number, end
Mouth range, if duplicate removal, if exclude port.
Step 301: judging whether it is full port.
Step 302: when port range is full port, determining that the numberical range of port when carrying out port list generation is 0-
N;Wherein, N is the maximum number of port;Such as: when port range parameter is full port, when determining progress port list generation
The numberical range of port is full port 0-65535, and is continued to execute in next step, and step 304 is jumped to.
Step 303: when port range is not full port, determining that the numberical range of port when carrying out port list generation is
The port range specified in the relevant parameter, and continue to execute in next step, jump to step 305.
Step 304: judging whether exclusive segment port, when relevant parameter is exclusive segment port, determines and carry out port
The numberical range of port is the numberical range of the port of exclusive segment port when list generates, i.e., when the parameter for excluding port is
True, then from the ordered series of numbers removed in port range list in exclude_ports list, and jump procedure 3041;When correlation is joined
The numberical range of port is to be not excluded for the end of section ports when number is when being not excluded for section ports, determines progress port list generation
The numberical range of mouth is when the parameter for excluding port is False, however not excluded that section ports, and jump 3042.
Step 305: judging whether exclusive segment port;When relevant parameter is exclusive segment port, determines and carry out port
The numberical range of port is the numberical range of the port of exclusive segment port when list generates, i.e., when the parameter for excluding port is
True, then from the ordered series of numbers removed in specified port range list in exclude_ports list, and jump procedure 3051;When
Relevant parameter is to determine that the numberical range of port when carrying out port list generation is to be not excluded for part end when being not excluded for section ports
The numberical range of the port of mouth is when the parameter for excluding port is False, however not excluded that section ports, and jump 3052.
Step 3041: the port of exclusion, jump procedure 3043 are got rid of from full port 0-65535 range;Such as: it excludes
Port be 345,666;In the port list so generated, port 345,666 will not be generated.
Step 3042: being not excluded for section ports, generate port list according to full port, and continue to execute in next step, jump
To step 3046;
Step 3043: judging whether duplicate removal, when relevant parameter is duplicate removal, random generation port list is will be generated
If the port list after duplicate removal of the port ordered series of numbers after deleting in the numberical range list of port is that duplicate removal parameter repeat is
False, then not allow to repeat, and jump procedure 3044;When relevant parameter is not duplicate removal, the port list generated at random is
The port list of non-duplicate removal to allow to repeat, and jumps 3045 that is, if duplicate removal parameter repeat is True;
Step 3044: remove the port of exclusion from 0-65535, according to specified generation port number, generate number with
Machine generates port list (there is no repeat port information);
Step 3045: remove the port of exclusion from 0-65535, according to specified generation port number, generate number with
Machine generates port list (there are duplicate port informations);
Step 3046: judging whether duplicate removal, when relevant parameter is duplicate removal, random generation port list is will be generated
If the port list after duplicate removal of the port ordered series of numbers after deleting in full port range list is that duplicate removal parameter repeat is
False, then not allow to repeat, and jump procedure 3047;When relevant parameter is not duplicate removal, the port list generated at random is
The full port range list of non-duplicate removal to allow to repeat, and jumps 3048 that is, if duplicate removal parameter repeat is True;
Step 3047: according to specified generation port number in full port 0-65535, generating number and generate port column at random
Table (there is no repeat port information);
Step 3048: according to specified generation port number in full port 0-65535, generating number and generate port column at random
Table (there are duplicate port informations);
Step 3051: the port of exclusion, jump procedure 3053 are got rid of from designated port range;Such as: the end of exclusion
Mouth is 345,666;In the port list so generated, port 345,666 will not be generated.
Step 3052: being not excluded for section ports, generate port list according to designated port range port, and continue to execute down
One step, jumps to step 3056;
Step 3053: behind the port for getting rid of exclusion in designated port range, judging whether duplicate removal, when relevant parameter is
When duplicate removal, the random port list that generates is will to get rid of the port of exclusion after deleting in the numberical range list of designated port
If it is False that the port list after duplicate removal, which is duplicate removal parameter repeat, not allow to repeat, and jump procedure 3054;When
Relevant parameter be not duplicate removal when, the port list generated at random is the port list of non-duplicate removal, i.e., if duplicate removal parameter repeat
For True, then to allow to repeat, and 3055 are jumped;
Step 3054: remove the port of exclusion from specified range, according to specified generation port number, generate number with
Machine generates port list (there is no repeat port information);
Step 3055: remove the port of exclusion from specified range, according to specified generation port number, generate number with
Machine generates port list (there are duplicate port informations);
Step 3056: judging whether duplicate removal, when relevant parameter is duplicate removal, the random port list that generates is by designated port
If numberical range list in delete after duplicate removal after port list be duplicate removal parameter repeat be False, not permit
Perhaps it repeats, and jump procedure 3057;When relevant parameter is not duplicate removal, the port list generated at random is designated port ends of range
The port list of the non-duplicate removal of mouth to allow to repeat, and jumps 3058 that is, if duplicate removal parameter repeat is True;;
Step 3057: according to specified generation port number in specified range port, generating number and generate port column at random
Table (there is no repeat port information);
Step 3058: according to specified generation port number in specified range port, generating number and generate port column at random
Table (there are duplicate port informations).
A specific example based on the present embodiment selects automated randomized generation end according to the relevant parameter that user inputs
Mouth list information, the methods that can be more adapted to according to test scene from a variety of generation model selections, improve network information neck
Domain test efficiency and test accuracy.Above-mentioned example is realized by by using the automated randomized side for generating port list information
Formula solves in information network testing field, and port number is more, and port information work is filled in manually in permutation and combination enormous amount
Work amount is big, is easy the problems such as omitting and malfunctioning, improves the testing efficiency of information network testing field, also improve the standard of test
True property and validity.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove
Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment,
Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one
Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups
Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by
It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable
On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily
Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as
Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non-
Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its
His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other
Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This
Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould
Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information
Delivery media.
Claims (10)
1. a kind of generation method of port list, which is characterized in that the described method includes:
Receive the relevant parameter of the generation port list of user's input, comprising: generate port number, generate number;
According to the generation port number, number is generated, generates port list at random.
2. the generation method of port list according to claim 1, which is characterized in that it is described according to generate port number,
Number is generated, before the random generation port list further include:
Determine the numberical range of port when carrying out port list generation.
3. the generation method of port list according to claim 2, which is characterized in that
The relevant parameter further include: port range;
The numberical range of port includes: when the determining progress port list generation
When port range is full port, determine that the numberical range of port when carrying out port list generation is 0-N;Wherein, N is end
The maximum number of mouth;
When port range is not full port, determine that the numberical range of port when carrying out port list generation is the relevant parameter
In specify port range.
4. the generation method of port list according to claim 2, which is characterized in that
The relevant parameter further include: whether exclude;
The numberical range of port includes: when the determining progress port list generation
When relevant parameter is exclusive segment port, determine that the numberical range of port when carrying out port list generation is exclusive segment
The numberical range of the port of port;
When relevant parameter is to be not excluded for section ports, determine that the numberical range of port when carrying out port list generation is to be not excluded for
The numberical range of the port of section ports.
5. the generation method of port list according to claim 2, which is characterized in that
The relevant parameter further include: whether duplicate removal;
The random generation port list includes:
When relevant parameter is duplicate removal, the random port list that generates is to arrange generated port ordered series of numbers from the numberical range of port
The port list after duplicate removal after being deleted in table;
When relevant parameter is not duplicate removal, the port list generated at random is the port list of non-duplicate removal.
6. a kind of device of the generation of port list, comprising: memory and processor;It is characterized by:
The memory, for saving the program for being used for the generation of port list;
The processor is performed the following operations for reading the program for executing the generation for port list:
Receive the relevant parameter of the generation port list of user's input, comprising: generate port number, generate number;
According to the generation port number, number is generated, generates port list at random.
7. the device of the generation of port list according to claim 6, which is characterized in that the processor is read described in execution
The program of generation for port list, also performs the following operations:
It is described according to generating port number, generating number, progress port list generation is determined before random the generations port list
When port numberical range.
8. the device of the generation of port list according to claim 7, which is characterized in that the processor is read described in execution
The program of generation for port list, also performs the following operations:
The relevant parameter further include: port range;
The numberical range of port includes: when the determining progress port list generation
When port range is full port, determine that the numberical range of port when carrying out port list generation is 0-N;Wherein, N is end
The maximum number of mouth;
When port range is not full port, determine that the numberical range of port when carrying out port list generation is the relevant parameter
In specify port range.
9. the device of the generation of port list according to claim 7, which is characterized in that the processor is read described in execution
The program of generation for port list, also performs the following operations:
The relevant parameter further include: whether exclude;
The numberical range of port includes: when the determining progress port list generation
When relevant parameter is exclusive segment port, determine that the numberical range of port when carrying out port list generation is exclusive segment
The numberical range of the port of port;
When relevant parameter is to be not excluded for section ports, determine that the numberical range of port when carrying out port list generation is to be not excluded for
The numberical range of the port of section ports.
10. the device of the generation of port list according to claim 7, which is characterized in that the processor, which is read, executes institute
The program for stating the generation for port list, also performs the following operations:
The relevant parameter further include: whether duplicate removal;
The random generation port list includes:
When relevant parameter is duplicate removal, the random port list that generates is to arrange generated port ordered series of numbers from the numberical range of port
The port list after duplicate removal after being deleted in table;
When relevant parameter is not duplicate removal, the port list generated at random is the port list of non-duplicate removal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811560216.8A CN109582830A (en) | 2018-12-20 | 2018-12-20 | A kind of generation method and device of port list |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811560216.8A CN109582830A (en) | 2018-12-20 | 2018-12-20 | A kind of generation method and device of port list |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109582830A true CN109582830A (en) | 2019-04-05 |
Family
ID=65931099
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811560216.8A Pending CN109582830A (en) | 2018-12-20 | 2018-12-20 | A kind of generation method and device of port list |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109582830A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104380245A (en) * | 2013-02-28 | 2015-02-25 | 皇家飞利浦有限公司 | Random number generator and stream cipher |
CN105306294A (en) * | 2015-10-20 | 2016-02-03 | 上海斐讯数据通信技术有限公司 | Test case generation system and method for switch |
CN105306307A (en) * | 2015-11-13 | 2016-02-03 | 浪潮电子信息产业股份有限公司 | Automatic testing method aiming at large-capacity rule table of packet filtering device |
CN105721442A (en) * | 2016-01-22 | 2016-06-29 | 耿童童 | Spurious response system and method based on dynamic variation and network security system and method |
-
2018
- 2018-12-20 CN CN201811560216.8A patent/CN109582830A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104380245A (en) * | 2013-02-28 | 2015-02-25 | 皇家飞利浦有限公司 | Random number generator and stream cipher |
CN105306294A (en) * | 2015-10-20 | 2016-02-03 | 上海斐讯数据通信技术有限公司 | Test case generation system and method for switch |
CN105306307A (en) * | 2015-11-13 | 2016-02-03 | 浪潮电子信息产业股份有限公司 | Automatic testing method aiming at large-capacity rule table of packet filtering device |
CN105721442A (en) * | 2016-01-22 | 2016-06-29 | 耿童童 | Spurious response system and method based on dynamic variation and network security system and method |
Non-Patent Citations (1)
Title |
---|
陈希章: "动态取得本机可用的端口", 《博客园》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108345642B (en) | Method, storage medium and server for crawling website data by proxy IP | |
CN104580451B (en) | Realize the method and system and electronic equipment of multi-platform account synchronization | |
CN103886376B (en) | System and method for rule-based information filtering | |
CN108090198B (en) | Graph database creating method, graph database creating device, graph database loading device, and graph database loading medium | |
CN110276060B (en) | Data processing method and device | |
CN105577799B (en) | A kind of fault detection method and device of data-base cluster | |
CN108063725B (en) | Message pushing method | |
CN105404631B (en) | Picture identification method and device | |
CN106790727A (en) | Information push method and device | |
WO2017101751A1 (en) | Checking and killing method and apparatus for backdoor file, program, and readable medium | |
CN112187710A (en) | Method and device for sensing threat intelligence data, electronic device and storage medium | |
CN105117499A (en) | File display method and device based on cloud disk | |
CN105809066B (en) | The storage method and terminal of encryption data | |
CN107526636B (en) | Resource identification method and device | |
CN106713242A (en) | Data request processing method and device | |
CN113098852B (en) | Log processing method and device | |
CN104901833A (en) | Method for finding abnormal device and device | |
CN104539449B (en) | A kind of failure information processing method and relevant apparatus | |
CN109582830A (en) | A kind of generation method and device of port list | |
CN106383908A (en) | Data object pushing method and device | |
CN106603701A (en) | Method and device for sending message based on long connection platform | |
CN108111475A (en) | Auth method and device | |
CN104010078B (en) | Method and device for processing intercepted information through terminal | |
CN110968382A (en) | Method, system, electronic device and medium for updating view | |
CN110737578A (en) | test application method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190405 |
|
RJ01 | Rejection of invention patent application after publication |