Abstract: A method and system for injecting code into an existing HTML document that enables the conditional generation and incorporation of an injectable component is provided. The injection mechanism provided enables a user to display an add-on user interface component within a web page using a technique that is transparent to the normal processing within a browser application. The injection mechanism installs interceptor code as a proxy server between a client browser and a server. The interceptor code monitors all HTTP messages sent from the client browser and injects code into each HTML document that is sent from a server to the client browser. The injected code when executed by the client browser conditionally inserts HTML code into the received HTML document. The inserted HTML code is then used by the client browser to generate a new component, for example a user interface component.
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.