angr.codenode¶
- class angr.codenode.CodeNode¶
Bases:
GenericThe base class of nodes in a function graph.
- addr
- size: int
- thumb
- property owner: Function | None¶
The Function this node belongs to, or None if it was never registered with one or that Function is gone.
- is_hook = None¶
- class angr.codenode.BlockNode¶
-
Represents a block of code in a function graph.
- is_hook = False¶
- __init__(addr, size, bytestr=None, thumb=False, delta=None)¶
- Parameters:
bytestr (
bytes|None) – The bytes of the block, given only when the bytes are from user-specified binary code.delta (
int|None) – The block’s bytes are ataddr + delta. Defaults to -1 for ARM Thumb nodes. Note that delta is not part of the identity of a BlockNode.addr (K)
size (int)
thumb (bool)
- delta
- property manual_bytes: bool¶
True if the node has user-supplied bytes rather than reading bytes from the loader.
- property raw_bytestr: bytes | None¶
The bytes of the block if they were supplied by the user. None otherwise.
- bytestr(project, original=True)¶
Get the bytes of the block.
- class angr.codenode.SootBlockNode¶
Bases:
BlockNode[SootMethodDescriptor]Represents a Soot block of code in a function graph.
- stmts
- class angr.codenode.FuncNode¶
-
Represents a function callee in a function graph.
- func_name
- class angr.codenode.HookNode¶
-
Represents a hook in a function graph.
- is_hook = True¶
- __init__(addr, size, sim_procedure, **kwargs)¶
- Parameters:
sim_procedure (
SimProcedure|None) – the the sim_procedure class
- sim_procedure