Example #1
0
 def get_arg(self, arg_index):
     """Assumes that each parameter on the stack is 4-bytes in size.
     Returns the n-th of those parameters.
     @param arg_index: Index of function parameters
     @type arg_index: int
     @return: (unsigned) int containing the value of the parameter
     """
     return memorymanager.read_dword_from_addr(self.stack_params +\
                                            (arg_index << 2))
Example #2
0
 def get_arg(self, arg_index):
     """Assumes that each parameter on the stack is 4-bytes in size.
     Returns the n-th of those parameters.
     @param arg_index: Index of function parameters
     @type arg_index: int
     @return: (unsigned) int containing the value of the parameter
     """
     return memorymanager.read_dword_from_addr(self.stack_params +\
                                            (arg_index << 2))
Example #3
0
 def get_return_addr(self):
     """@return: return address (int)"""
     return memorymanager.read_dword_from_addr(self.retaddr_p)
Example #4
0
 def get_return_addr(self):
     """@return: return address (int)"""
     return memorymanager.read_dword_from_addr(self.retaddr_p)