Tries to read some bytes of the code currently being executed. @type size: int @param size: Number of bytes to read. @type offset: int @param offset: Offset from the program counter to begin reading. @rtype: str @return: Bytes read from
(self, size=128, offset=0)
| 1493 | return self.get_process().read(self.get_pc() + offset, size) |
| 1494 | |
| 1495 | def peek_code_bytes(self, size=128, offset=0): |
| 1496 | """ |
| 1497 | Tries to read some bytes of the code currently being executed. |
| 1498 | |
| 1499 | @type size: int |
| 1500 | @param size: Number of bytes to read. |
| 1501 | |
| 1502 | @type offset: int |
| 1503 | @param offset: Offset from the program counter to begin reading. |
| 1504 | |
| 1505 | @rtype: str |
| 1506 | @return: Bytes read from the process memory. |
| 1507 | May be less than the requested number of bytes. |
| 1508 | """ |
| 1509 | return self.get_process().peek(self.get_pc() + offset, size) |
| 1510 | |
| 1511 | def peek_pointers_in_registers(self, peekSize=16, context=None): |
| 1512 | """ |
no test coverage detected