Interface IDebuggerVirtualMemory
- All Superinterfaces:
IVirtualMemory
Extension of the virtual memory interface providing additional methods useful in the context of a
process controlled by a debugger.
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.units.code.asm.memory.IVirtualMemory
ACCESS_EXECUTE, ACCESS_NONE, ACCESS_READ, ACCESS_RW, ACCESS_RWX, ACCESS_RX, ACCESS_WRITE
-
Method Summary
Modifier and TypeMethodDescriptionlong
findBytes
(long address, long maxsize, byte[] pattern) Search a memory area for a specific byte sequence.Methods inherited from interface com.pnfsoftware.jeb.core.units.code.asm.memory.IVirtualMemory
addAllocListener, addFreeListener, addPreWriteListener, addPropertyListener, addProtectionListener, addWriteListener, allocate, allocatePage, check, duplicate, free, freePage, getAllocatedPageBases, getAllocatedPageCount, getAproximateFootprint, getPageBits, getPageProtection, getPageSize, getSpaceBits, getStandardEndianess, isAllocatedPage, isValidAddress, read, read, readBEInt, readBELong, readBEShort, readByte, readInt, readInt, readLEInt, readLELong, readLEShort, readLong, readLong, readPointer, readShort, readShort, removeAllocListener, removeFreeListener, removePreWriteListener, removePropertyListener, removeProtectionListener, removeWriteListener, roundToPage, roundToSize, setLazyMemoryProvider, setPageProtection, setStandardEndianness, write, write, writeBEInt, writeBELong, writeBEShort, writeByte, writeInt, writeInt, writeLEInt, writeLELong, writeLEShort, writeLong, writeLong, writePointer, writeShort, writeShort
-
Method Details
-
findBytes
long findBytes(long address, long maxsize, byte[] pattern) Search a memory area for a specific byte sequence.- Parameters:
address
- base address - in the case of a 64-bit address above 2^63 bytes, the address is theoretically negativemaxsize
- size of the area to be searched, at most 2^63 bytes - consequently, a full 64-bit memory space search must be done in two operationspattern
- a sequence of bytes to look for - at least 1 byte- Returns:
- an offset, relative to the input base address; -1 indicates the pattern was not found
-