Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for detecting third-party code calling of web application

A code and called technology, which is applied in the field of detection of third-party code calls of web applications, can solve the problems of developing detection programs and the inconvenience of programmers, and achieve the effect of increasing flexibility and ensuring accuracy

Pending Publication Date: 2020-03-31
SECZONE TECH CO LTD
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

After the development of the web application is completed, whether it is later maintenance or adding functions, it is necessary to know which third-party application files will be called by the web application during the startup process. However, no web application has been developed in the prior art. Such a detection program brings inconvenience to the later maintenance and development programmers

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
  • Method and system for detecting third-party code calling of web application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to describe the technical content, structural features, realization principle, purpose and effect of the present invention in detail, the following will be described in detail in conjunction with the embodiments and accompanying drawings.

[0028] The invention discloses a method for detecting a third-party code call of a web application. The web application is based on a Java framework, which includes:

[0029] 1), utilize Java Agent technology, generate the proxy program package based on Javaagent structure, proxy program package includes class file identification program, class file identification program is used to identify all called third-party code class files of web applications to be detected;

[0030] 2), before starting the web application, add the proxy package into the JVM parameters;

[0031] 3), start the web application, the class file identification program obtains all the class files that need to be called by the web application through the In...

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 method and system for detecting calling of a third-party code of a web application. The method comprises the steps: 1), generating an agent package based on a Javagent structure, and enabling the agent package to comprise a class file recognition program and a monitoring program; 2) before the web application is started, adding the agent program package into the JVM parameters, and inserting the monitoring program into an entry method of a web server processing request; 3) starting the web application, and acquiring all class files required to be called by the web application through an Instrumentation interface on the JVM by the class file recognition program; 4) obtaining a third-party library of the web application; (5) comparing all the called class files obtained in the step (3) with the jar files in the third-party library obtained in the step (4) so as to identify third-party class files called by the web application; all the class file data needing tobe called of the web application obtained through the detection method are based on the web application, and therefore the accuracy of the data is effectively guaranteed.

Description

technical field [0001] The invention relates to the technical field of web application code detection, in particular to a method and system for detecting third-party code calls of web applications. Background technique [0002] Web applications are applications based on the browser / server model (also known as B / S architecture). The browser is responsible for displaying data from the server and accepting user input data, also known as "interacting with the user"; the server is responsible for processing the browser's access request and organizing the processing results (data or messages) into a format that the browser can recognize text returned. Web applications generally consist of Java classes, configuration files, static resources, and third-party libraries. When building a project, class files of multiple third-party libraries are introduced to implement various functions, such as unit testing, log management and file operations all require third-party libraries. Thir...

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): G06F11/30
CPCG06F11/302G06F11/3051
Inventor 胡娇娇万振华王颉李华董燕
Owner SECZONE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products