Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

19 results about "Java bytecode" patented technology

Java bytecode is the instruction set of the Java virtual machine (JVM).

Mock platform construction method for travel saas platform

The invention provides a mock platform construction method oriented to a travel saas platform. The mock platform construction method comprises the following steps: demand analysis: determining a target and a demand of a Mock platform; environment preparation: ensuring that the Java environment of the target SaaS platform meets the operation of the java byte code instrumentation technology; integration of a java byte code instrumentation technology: the java byte code instrumentation technology is integrated into an SaaS platform; according to the invention, a Java byte code instrumentation technology is utilized to construct a software as a service (SaaS) platform interface Mock platform which is powerful in function, flexible and easy to use, and the Mock platform can dynamically perform Mock on the interface of the SaaS platform without restarting an application, so that the development and test efficiency is greatly improved, and the development cost is reduced. And the Mock platform also has the characteristics of non-invasiveness, dynamic plugging, class isolation, flexible AOP support, self-definition, real-time monitoring and fault simulation, easiness in integration and use, safety, fault positioning and performance optimization.
Owner:BEIJING BAIJU YIXING TECH CO LTD

Incremental code coverage rate acquisition device based on Java bytecode dynamic instrumentation technology

PendingCN120407398AError detection/correctionJava syntaxData acquisition
The invention discloses an incremental code coverage rate acquisition device based on a Java bytecode dynamic instrumentation technology, and relates to the technical field of software testing and quality control. Comprising a code difference analysis module, a byte code instrumentation module, a coverage rate data acquisition module, a coverage rate data integration module, a coverage rate report generation module and a test trigger and threshold control module, and a syntax tree structure of incremental codes is generated based on a Java syntax analysis tool, so that line level analysis of code differences is realized. According to the method, incremental codes are accurately analyzed through Git and JavaParser, coverage rate data are collected through dynamic instrumentation, a unified report is generated in combination with path analysis, missing scenes are marked in a highlighted mode, and the test efficiency and the code quality control capacity are improved.
Owner:BEIJING BAIJU YIXING TECH CO LTD

AI service intelligent fault tolerance and degradation method and device based on Java bytecode enhancement technology, equipment, medium and product

The invention discloses an AI service intelligent fault tolerance and degradation method, device and equipment based on a Java bytecode enhancement technology, a medium and a product, and relates to the technical field of AI service integration. According to the method, in a class loading period of Java application starting, a loaded class is scanned to identify target methods marked with declarative fault-tolerant annotations, a bytecode operation framework is utilized to enhance the target methods so as to implant a unified fault-tolerant logic interception entry, and then in a running period, when the target methods are called, the target methods are subjected to fault-tolerant annotation processing. And triggering a fault-tolerant interceptor through the interception entrance to analyze the annotation to obtain a fault-tolerant strategy, allocating an independent fault-tolerant component instance to the fault-tolerant interceptor based on the unique identifier of the method, constructing and executing an enhanced call chain containing a fusing check and retry mechanism, and finally, if the execution of the call chain fails, executing the fault-tolerant interceptor. And if yes, a preset degradation method in the fault-tolerant strategy is automatically executed, so that complete non-intrusive decoupling of AI service fault-tolerant management and service logic can be realized, and the reliability of the system is remarkably improved.
Owner:BEIJING INSIGHT NETWORK CO LTD

A decompilation processing method and device, electronic equipment and storage medium

The application discloses a decompilation processing method and device, electronic equipment and a storage medium, and relates to the field of computers.The method comprises the following steps: creating three dynamic arrays in the form of class objects, namely a first dynamic array, a second dynamic array and a third dynamic array; traversing each Java Card bytecode, and based on the operation code and the operand of the Java Card bytecode, dynamically filling the Java Card bytecode and the generated Java bytecode information after conversion into the first dynamic array, the second dynamic array and the third dynamic array; and reading the Java Card bytecode in the dynamic array in sequence, and performing linkage address conversion mapping of the Java Card bytecode, so as to realize decompilation processing of the Java Card bytecode.The application can normally process decompilation operations in a scenario where the length of an operation object exceeds the agreed length.
Owner:WUHAN TIANYU INFORMATION IND

Java bytecode injection methods and apparatuses, electronic devices, and storage media

This specification provide example Java bytecode injection methods, apparatuses and machine-readable storage media, which can be applied to a Javaagent framework deployed in a Java virtual machine. In an example, a to-be-injected Java bytecode submitted by a target service module in at least one service module is obtained, and a target implementation class corresponding to the to-be-injected Java bytecode is determined. A target injection point type corresponding to the target implementation class is determined, and the target injection point type is respectively matched with mapping relationships maintained in the Java virtual machine to determine a target injection mode corresponding to the target injection point type. A globally unique class transformer is invoked so that the class transformer injects, based on the target injection mode, the Java bytecode into a class file that corresponds to the target service module and that is to be loaded by the Java virtual machine.
Owner:ALIPAY (HANGZHOU) INFORMATION TECH CO LTD

Intermediate representation construction method for Java program analysis

PendingCN120315756AReverse engineeringCreation/generation of source codeLattice algorithmTranslation algorithm
The invention discloses a Java program analysis-oriented intermediate representation construction method, which comprises the following steps of: performing single assignment form conversion on a Java bytecode to be processed to obtain a single assignment Java bytecode, and constructing a typeless intermediate representation through an abstract interpretation translation algorithm based on the single assignment Java bytecode. Constructing a type constraint and a type constraint graph by using the typeless intermediate representation based on a Java type check rule, and solving the type constraint graph by using a pruned lattice algorithm to obtain a typeless intermediate representation; according to the method, a common byte code mode is well utilized through single assignment transformation and a pruning-based lattice algorithm. Java byte codes based on a stack type virtual machine are converted into typeless three-address code intermediate representation based on a register virtual machine based on abstract interpretation, and generation of redundant statements is avoided as much as possible. And a pruning lattice algorithm is adopted, so that the type of an unknown type variable can be accurately and quickly determined, and a type reasoning result is ensured to be safe.
Owner:NANJING UNIV

Online pricing method, device, equipment and storage medium

The application relates to an online pricing method, device, equipment and storage medium, and particularly relates to the field of financial calculation. The method comprises the following steps: obtaining target transaction data and a target formula statement; when it is detected that a JAVA class of the target formula statement exists in a cache, calling the JAVA class corresponding to the target formula statement, processing the target transaction data to obtain a target pricing result, and the JAVA class corresponding to the target formula statement is obtained by loading a JAVA bytecode file corresponding to the target formula statement; the JAVA bytecode file is generated based on the arrangement order of operators and operation components in a reverse polish expression of the target formula statement. The above scheme separates the compiling process and the calculation process, avoids the tedious operation of interpreting a sentence and then executing the sentence by the computer equipment, simplifies the calculation logic, and improves the operation speed of online pricing.
Owner:GLODON CO LTD

A test method for an application system

The application relates to the technical field of testing, and discloses a test method for an application system, which comprises the following steps: acquiring a system configuration file, a local application program package and a corresponding local Java bytecode file of a local application system, and determining a target full-amount corresponding relationship of the local application system; acquiring different Java bytecode files of different versions of application program packages, and determining a program difference list; acquiring an outbound configuration file, and combining the target full-amount corresponding relationship and the program difference list to determine a first full-amount test range of the local application system and a plurality of second full-amount test ranges of a plurality of other application systems, and then testing the application system to obtain a target test result of the application system, which realizes bidirectional accurate analysis of a test range of a local program change on itself and other systems and of other system changes on the local system, comprehensively covers transaction interface and business function test requirements among multiple systems in an enterprise, and guarantees the overall operation stability of the application system.
Owner:BEIJING RONGXIN YIAN INFORMATION TECH CO LTD

Semi-random automatic testing method and system for Android local library

PendingCN121364997AError detection/correctionProgramming languageJava bytecode
The embodiment of the invention provides a semi-random automatic testing method and system for an Android local library, and the method comprises the steps: taking an Android APK as input, and generating a local library function list; c / C + + codes in the APK are converted into Java byte codes, and the Java byte codes are repackaged to obtain a cross-language unified APK; based on the cross-language unified APK, constructing a composite call relation graph containing App states, UIs and cross-language function calls; according to the composite calling relation graph, guiding random testing so as to generate a state transition event library; based on the state transition event library, generating a test case pool by adopting a permutation and combination strategy; and selecting a test case from the test case pool, and executing a semi-random automatic test on the Android local library function. According to the invention, the pertinence, the coverage rate and the efficiency of the test can be obviously improved.
Owner:BEIJING UNIV OF TECH

Log tracking method and device based on bytecode enhancement, equipment and medium

The embodiment of the invention provides a log tracking method and device based on bytecode enhancement, equipment and a medium, and relates to the technical field of data processing. The method comprises the following steps: determining a log tracking rule; obtaining a Java bytecode file, and converting the Java bytecode file into an abstract syntax tree structure by utilizing the bytecode operation framework; inserting a log recording instruction at a position corresponding to the log content of the target method in the abstract syntax tree structure, and converting the abstract syntax tree structure in which the instruction is inserted into an enhanced Java bytecode file by utilizing a bytecode operation framework; and running a Java application program according to the enhanced Java bytecode file, and when a log recording instruction is executed, collecting log contents of the target method to obtain a log tracking result. Therefore, the method can improve the log tracking efficiency and improve the stability and availability of the Java application program on the basis of not influencing the readability and maintenance cost of the code.
Owner:ABC FINANCIAL TECH CO LTD

A method, apparatus, device, and storage medium for encrypting and deploying bytecode files

The present invention discloses a method, device, equipment and storage medium for encrypting and deploying bytecode files, belonging to the technical fields of information security and software encryption. The method includes: obtaining the creation time of the secret key file and the physical address of the target server, generating an encryption key and storing it in the secret key file; compiling and packaging the Java source file to obtain a target archive file set; determining the archive file set to be encrypted and the non-encrypted archive file set; using the DES data encryption algorithm to perform symmetric encryption on the archive files to be encrypted; copying the non-encrypted archive file set and the encrypted archive file set to a specified directory; executing data decryption of the target binary file set, and loading the successfully decrypted archive files and the non-encrypted archive files into the JVM memory of the target server. This application solves the technical problem in the prior art that Java bytecode files are easily decompiled, which may lead to the leakage and illegal use of the enterprise's core business logic.
Owner:BEISHANG GUANGSHENG TECHNOLOGY (BEIJING) CO LTD +1

Function call analysis method and device based on ASM bytecode and medium

The invention discloses a function call analysis method and device based on ASM byte codes and a medium, belongs to the technical field of computer software code development, and aims to solve the technical problem of how to analyze Java byte codes and accurately deduce a call relation between functions on the premise of not running a program.The technical scheme includes that a Jav a program analysis configuration file is newly added; function method calling information is collected; regular matching of function method calling information is carried out, wherein an InvokeMetal Matcher class is newly added to define a function matching expression; the method comprises the following steps of: analyzing function method substitute information: calling a newly added InvokeMedia Analyser class analysis function, and calling the newly added InvokeMedia Analyser class analysis function; a function method is output to call an information analysis result; an InvokeMetal ResultOutput class output function call result is newly added to a specified file; and a Java program code analysis process is executed, specifically, the InvokeMedia AnalyserUtils tool class is newly added to load the corresponding configuration file, and the Java program code analysis process is executed.
Owner:SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD

Method and device for generating Java byte code hidden watermarking based on latent semantic adversarial

The invention discloses a Java byte code hidden watermarking method and device based on latent semantic adversarial generation, and belongs to the technical field of software watermarking. The method comprises the following steps: constructing a training data set containing a plurality of semantic equivalence code pairs; constructing a generative adversarial network based on a Transform architecture, wherein the generative adversarial network comprises a feature embedding layer, a generator, a latent semantic space virtual obfuscator and a discriminator; based on the training data set, applying disturbance to an output feature sequence of the generator by using a latent semantic space virtual obfuscator, performing watermark signal identification on the disturbed feature sequence by using a discriminator as a confrontation condition, and performing alternate confrontation training on the generator and the discriminator; and inputting the original Java bytecode instruction sequence to be protected and the target watermark information into the generative adversarial network, and outputting the Java bytecode instruction sequence which is semantically equivalent and embedded with the target watermark information by a generator. According to the invention, the concealment of the watermark is improved.
Owner:COLASOFT

Log desensitization method and system based on Java bytecode rewriting, storage medium and product

The invention discloses a log desensitization method and system based on Java bytecode rewriting, a storage medium and a product, and relates to the technical field of log desensitization, the log desensitization method based on Java bytecode rewriting comprises the following steps: scanning folder paths of all Java source files in a compiling stage, and temporarily storing scanned class files; when the character string conversion algorithm of the class file is traversed, updating byte codes in the character string conversion algorithm into a preset desensitization algorithm to obtain a target character string conversion algorithm; if the to-be-recorded log contains the sensitive information, matching a sensitive field corresponding to the sensitive information based on a desensitization configuration file of a configuration center; and when the configuration center does not contain the sensitive field, acquiring and calling a newly added desensitization strategy to perform desensitization processing on the sensitive field. On the basis, the code does not need to be put into production again, dynamic desensitization is carried out on the newly added desensitization content, and the efficient and timely desensitization effect is achieved.
Owner:CHINA MERCHANTS BANK

Java bytecode steganography method and device based on latent semantic adversarial generation

The application discloses a Java bytecode hidden watermarking method and device based on latent semantic generative adversarial, and belongs to the technical field of software watermarking. The method comprises the following steps: constructing a training data set comprising a plurality of semantic equivalent code pairs; constructing a generative adversarial network based on a Transformer architecture, wherein the generative adversarial network comprises a feature embedding layer, a generator, a latent semantic space virtual confuser and a discriminator; based on the training data set, applying disturbance to an output feature sequence of the generator by the latent semantic space virtual confuser, and performing watermark signal identification on the disturbed feature sequence by the discriminator as an adversarial condition, and alternately training the generator and the discriminator; inputting an original Java bytecode instruction sequence to be protected and target watermark information into the generative adversarial network, and outputting a Java bytecode instruction sequence which is semantic equivalent and embedded with the target watermark information by the generator. The application improves the concealment of the watermark.
Owner:COLASOFT

Java application program generation method and device, Java application program operation method and device, equipment and medium

The invention discloses a Java application program generation method and device, a Java application program operation method and device, equipment and a medium, which are used for enhancing the reverse analysis prevention capability of a Java application program, are safe and efficient in protection effect and have good service compatibility. The method comprises the following steps: acquiring a Java bytecode file to be encrypted from a target namespace; for each Java byte code file to be encrypted, generating an encryption parameter, and encrypting a Java byte code by using the encryption parameter to obtain a Java byte code ciphertext; function bodies of all functions in the Java bytecode file are emptied, declarations of all the functions are reserved, and for each function, a default return value of the function is filled according to the return type of the function; encrypting the encryption parameter to obtain an encryption parameter ciphertext; using the Java byte code ciphertext and the encryption parameter ciphertext to generate a Java byte code encryption file; and based on all the Java byte code encryption files, generating a Java application ciphertext program package.
Owner:ZHEJIANG DAHUA TECH CO LTD

Java cryptography static analysis tool and method based on Soot

The invention discloses a Soot-based Java cryptography static analysis tool and method, and belongs to the field of software static analysis, and the method comprises the following steps: S1, environment initialization: inputting a JAR file or class folder path by a user, and starting and initializing Soot configuration by using an Entry class main method; s2, traversing application program classes by using a Soot analysis worker, pre-loading byte code representation of a method body, and constructing a call graph by using the Soot analysis worker at the same time; s3, task allocation and parallel processing are carried out, a plurality of independent detectors are constructed, and the detectors execute the allocated task queues in parallel; s4, generating a vulnerability report; s5, cleaning and exiting; according to the method, the powerful analysis function of Soot on Java bytecodes is utilized, on the basis of key technologies such as data flow tracing, control flow analysis and call graph construction, the tool performance is optimized in combination with programming technologies such as method-level multithreading, and efficient cryptographic detection is conducted on the Java codes.
Owner:NANJING UNIV OF SCI & TECH

A Java bytecode encryption method based on secure password module

The present invention relates to the technical field of code encryption, and in particular to a Java bytecode encryption method based on a secure password module, comprising: a key management module pre-stores a one-to-one correspondence between an encrypted service operating environment, a key, and a key identifier; a code encryption module receives a source code package of a current encrypted service operating environment, determines a key identifier, and sends the source code package and the key identifier to the key management module; the key management module retrieves a corresponding key to encrypt the source code package, and returns the encrypted code package to the code encryption module; the code encryption module deploys the encrypted code package to a corresponding terminal; when the terminal encrypted code package needs to be started, the code decryption module sends the encrypted code package to the key management module after passing a trusted authentication; the key management module uses an internal key to decrypt the encrypted code package, and returns the decryption result to the code decryption module. The present invention can improve the security of the code encryption and decryption process.
Owner:BEIJING SANSEC TECH DEV +1

API (Application Program Interface) document generation method and system based on Java bytecode static analysis

The invention relates to an API (Application Program Interface) document generation method and system based on Java bytecode static analysis, which thoroughly get rid of the dependence on the environment when an application program runs by directly reading a JAR / WAR packet and carrying out static analysis on a bytecode file. This means that the API document can be generated immediately after the code is compiled and packaged, the efficiency and flexibility of document generation are greatly improved, and the API document can be more easily integrated into a DevOps process. All complex data types in the input parameter and the output parameter of the method can be recursively analyzed by utilizing the method signature, the field information and the generic information obtained by the byte code level. Through accurate analysis of method signatures and mapping of class generic parameters, even a deep nested generic structure can be accurately identified and analyzed to class definitions in a dependency library. And based on analysis of the annotations in the byte codes, the flexibility is high, and the expansibility is high.
Owner:SHANGHAI FINANCIAL FUTURES INFORMATION TECH CO LTD