Unlock instant, AI-driven research and patent intelligence for your innovation.

Data labeling, packaging and obtaining method and system

A technology of data acquisition and data encapsulation, which is applied in the field of data labeling, encapsulation, acquisition methods and systems, can solve problems such as high complexity, script execution errors, and low efficiency, and achieve the effect of reducing complexity and improving efficiency

Pending Publication Date: 2022-05-13
四维创智(北京)科技发展有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of the present invention provides a method and system for data labeling, encapsulation, and acquisition, which are used to solve the defects of high complexity, low efficiency, and easy script execution errors existing in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data labeling, packaging and obtaining method and system
  • Data labeling, packaging and obtaining method and system
  • Data labeling, packaging and obtaining method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] Such as figure 1 As shown, the data labeling method provided by the embodiment of the present invention includes the following steps:

[0050] S101. Determine the attribute of the data according to the type of the data.

[0051] Specifically, the attribute of the data is the type of the data, for example: if the data http: / / www.xxx.com is used as a uniform resource locator (URL for short) in the script, the attribute of the data is url; For another example, there is a user name and password as admin / admin, the attribute of the first data admin is username, and the attribute of the second data admin is password.

[0052] S102. Determine the label of the data according to the characteristics of the data.

[0053] Specifically, the label of the data is expressed as the characteristics of the data. In simple terms, the label is the description of the use of the data in the infiltration process. For example: the data http: / / www.xxx.com / login is a url. After visiting the u...

Embodiment approach

[0054] As an optional implementation of the present invention, the process includes:

[0055] According to the surface characteristics of the data, the label of the data is determined.

[0056] Specifically, the data http: / / www.xxx.com / asd.jsp? id=123 is a url. By observing the surface features of this url, it is found that this url has the risk of injection, so the label of this url is defined as sql_inj_pre_test.

[0057] As an optional implementation of the present invention, the process also includes:

[0058] According to the operating characteristics of the data, the label of the data is determined.

[0059]Specifically, to obtain the running characteristics of the data, if the data http: / / www.xxx.com / asd.jsp? If id=123 can indeed complete the injection, create a new label for this url as sql_inj_success.

[0060] When using tags and attributes to describe data, the "what" and "what it is used for" of the data can be described at the same time. These two dimensions ...

Embodiment 2

[0063] Such as figure 2 As shown, the data encapsulation method provided by the embodiment of the present invention includes the following steps:

[0064] S201. Construct a first dictionary structure for the data according to the attributes and labels of the data, and generate first dictionary type data;

[0065] S202. Convert the format of the first dictionary type data into a json format.

[0066] Such as Figure 4 As shown, as an optional implementation of the present invention, the first dictionary structure is: {tag:{param:[data]}}, wherein, tag is a tag, which is the key of the first-level dictionary; param is attribute information, is the key of the second-level dictionary.

[0067] Specifically, when encapsulating data, assuming that the data is data1, data2..., where data1, data2... are the specific contents of the data generated by the script, a two-layer dictionary storage structure {tag:{param :[data]}}, where tag is the tag information, which is the key of th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data labeling, packaging and obtaining method and system, and relates to the field of data processing, and the method comprises the steps: determining the attributes of data according to the types of the data, determining the labels of the data according to the characteristics of the data, and labeling the data according to the attributes and the labels of the data; the method comprises the steps of generating second dictionary type data according to the requirement condition of a script for data and attributes and labels of the data, associating the script with the second dictionary type data, obtaining data needed by executing the script from a database according to the second dictionary type data, and obtaining data needed by a new script through keywords when the new script is added. The complexity is reduced, the efficiency is improved, and it can be guaranteed that the script is correctly executed.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a method and system for labeling, encapsulating and acquiring data. Background technique [0002] In the process of using penetration tools to automate the penetration of data, it is necessary to transfer data between scripts with different functions. These data include the data entered by the user and the data obtained by executing the previous script. In common penetration tools, the data required for the script to run is confirmed in advance. After the execution of the previous script is completed, the obtained data will be automatically sent to the next determined script and executed. In this mode, scripts are highly coupled to data. In this mode, if you want to add or delete scripts, you need to do a lot of operations, which is complex, inefficient and easy to cause errors in script execution. Contents of the invention [0003] Embodiments of the present invention provide...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/907G06F16/906G06F16/9035
CPCG06F16/907G06F16/906G06F16/9035
Inventor 司红星鲍晨阳
Owner 四维创智(北京)科技发展有限公司