Method and system for injecting new code into existing application code
US6141698A · kind A · utility
Assignee
Inventors
Key dates
| Filing date | Jan 29, 1997 |
| Grant date | Oct 31, 2000 |
| Priority date | — |
| Expiry date | Jan 29, 2017 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F2211/007
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
A method and system for modifying the behavior of existing executable code by injecting new code into an executable file is provided. The injection mechanism injects a reference to new code contained in a DLL into an existing executable file such that, when the code of the executable file is executed, the DLL is automatically loaded and the new code is automatically executed. A reference to the DLL is injected into the executable file by either modifying an import table of the file, which causes automatic loading of the DLLs referred to therein, or by adding DLL loader code to the file. The DLLs loader code uses an underlying operating system call to load the DLL. Further, the injection mechanism provides enhanced security by injecting security code and data into the executable file. The injected security code mechanism uses an incremental encryption and decryption process to encrypt and decrypt portions of the executable file in a more secure manner.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.