Method and system for inserting floating code hooks into multiple versions of code

A method and system of inserting a floating code hook at a proper position within a program's code having unknown length is provided. The method comprises the steps of estimating an insertion point for a code hook in a computer program loaded in a computer's memory and determining whether...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: MICLETTE, DECEASED, DARREN, ROGALSKI, MARK D
Format: Patent
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:A method and system of inserting a floating code hook at a proper position within a program's code having unknown length is provided. The method comprises the steps of estimating an insertion point for a code hook in a computer program loaded in a computer's memory and determining whether expected code is located at the estimated insertion point. If the expected code is located at the estimated insertion point, the method inserts the code hook into the program code at the insertion point. If the expected code is not located at the estimated insertion point, the method moves the estimated insertion point a predetermined number of bytes from the estimated insertion point to a new estimated insertion point, and again determines whether expected code is located at the estimated insertion point. This process continues until the proper insertion point is located, and the floating code hook is inserted.