enhance ¤
Attempt to describe the data at a memory address as best as possible.
Only when the data is not a pointer.
Currently prints out code, integers, or strings, in a best-effort manner dependent on page permissions, the contents of the data, and any supplemental information sources (e.g. active IDA Pro connection).
Functions:
enhance ¤
enhance(
value: int,
code: bool = True,
safe_linking: bool = False,
attempt_dereference=True,
enhance_string_len: int = None,
) -> str
Given the last pointer in a chain, attempt to characterize
Note that 'the last pointer in a chain' may not at all actually be a pointer.
Additionally, optimizations are made based on various sources of data for 'value'. For example, if it is set to RWX, we try to get information on whether it resides on the stack, or in a RW section that happens to be RWX, to determine which order to print the fields.
Parameters:
-
value
(int
) –Value to enhance
-
code
(bool
, default:True
) –Hint that indicates the value may be an instruction
-
safe_linking
(bool
, default:False
) –Whether this chain use safe-linking
-
enhance_string_len
(int
, default:None
) –The length of string to display for enhancement of the last pointer