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

Injection prevention method and system

An anti-injection and data packet technology, applied in transmission systems, instruments, electrical digital data processing, etc., can solve problems such as system performance degradation, multi-context switching, etc., and achieve the effect of improving performance

Inactive Publication Date: 2013-03-13
山东中创软件商用中间件股份有限公司
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The problem to be solved by the present invention is to provide an anti-injection method and system, which solves the problem of frequent switching between the user state and the kernel state in the prior art, which will bring more context switches, thereby bringing about a negative impact on system performance. falling problem

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
  • Injection prevention method and system
  • Injection prevention method and system
  • Injection prevention method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0032] Embodiment 1 of the present invention discloses an anti-injection method, see figure 1 As shown, the method is applied in a kernel mode environment, and the steps include:

[0033] Step S101: receiving data packets, wherein each data packet corresponds to each network connection;

[0034] Step S102: Combining data packets of the same network connection among the received data packets into a complete data packet and storing it;

[0035] Ste...

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 an injection prevention method and system. The method comprises the following steps of: receiving data packets, wherein all the data packet correspond to all network connections; combining data packets with the same network connections in the received data packets into a complete data packet and storing; judging whether the complete data packet conforms to the preset injection rule or not; if the complete data packet conforms to the preset injection rule, judging that the injection occurs; and if the complete data packet does not conform to the preset injection rule, judging that the injection does not occur. When the method is applied to the system, in an environment of a pure kernel mode, the judgment can be realized on structured query language (SQL) injection prevention without using context switch, and therefore, the performance of the system is improved.

Description

technical field [0001] The invention relates to the technical field of software, in particular to an anti-injection method and system. Background technique [0002] At present, in the method of preventing injection of Structured Query Language (SQL), users usually use to set up a reverse proxy. The method of setting up a reverse proxy is to intercept the request of the website through reverse proxy technology, and then request Process before reaching the website, which reduces the possibility of the website being attacked and reduces the load on the website itself. What's more, the kernel module is used to capture packets in the kernel state, and then passed to the user state for package assembly. Finally, the reverse proxy mechanism is used to process the packet, and then return from the user state to the kernel state to process the connection corresponding to the packet. In this case, it is necessary to switch frequently between the user state and the kernel state, which i...

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
IPC IPC(8): G06F21/00H04L29/06
Inventor 张权刘鹏张涛张青陆国祥
Owner 山东中创软件商用中间件股份有限公司