Reads the contents of the top of the stack. @type size: int @param size: Number of bytes to read. @type offset: int @param offset: Offset from the stack pointer to begin reading. @rtype: str @return: Stack data. @raise WindowsEr
(self, size=128, offset=0)
| 1323 | return self.get_process().peek(sp, size) |
| 1324 | |
| 1325 | def read_stack_data(self, size=128, offset=0): |
| 1326 | """ |
| 1327 | Reads the contents of the top of the stack. |
| 1328 | |
| 1329 | @type size: int |
| 1330 | @param size: Number of bytes to read. |
| 1331 | |
| 1332 | @type offset: int |
| 1333 | @param offset: Offset from the stack pointer to begin reading. |
| 1334 | |
| 1335 | @rtype: str |
| 1336 | @return: Stack data. |
| 1337 | |
| 1338 | @raise WindowsError: Could not read the requested data. |
| 1339 | """ |
| 1340 | aProcess = self.get_process() |
| 1341 | return aProcess.read(self.get_sp() + offset, size) |
| 1342 | |
| 1343 | def peek_stack_data(self, size=128, offset=0): |
| 1344 | """ |
no test coverage detected