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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


