For the complete documentation index, see llms.txt. This page is also available as Markdown.

db, dc, dd, dq, dw, da, dds, dps, dqs (read virtual memory)

Description of 'db, dc, dd, dq, dw, da, dds, dps, dqs' commands in HyperDbg.

Command

db : read memory as Byte values and ASCII characters

dc : read memory as Double-word values (4 bytes) and ASCII characters

dd : read memory as Double-word values (4 bytes)

dq : read memory as Quad-word values (8 bytes)

dw : read memory as Word values (2 bytes)

da : read memory as printable ASCII characters (null-terminated string)

dds : read memory as Double-word values (4 bytes), with each value resolved to a symbol name (module!symbol+offset) where possible

dps : read memory as pointer-sized values (8 bytes), with each value resolved to a symbol name (module!symbol+offset) where possible

dqs : read memory as Quad-word values (8 bytes), with each value resolved to a symbol name (module!symbol+offset) where possible

Syntax

db [Address (hex)] [l Length (hex)] [pid ProcessId (hex)]

dc [Address (hex)] [l Length (hex)] [pid ProcessId (hex)]

dd [Address (hex)] [l Length (hex)] [pid ProcessId (hex)]

dq [Address (hex)] [l Length (hex)] [pid ProcessId (hex)]

dw [Address (hex)] [l Length (hex)] [pid ProcessId (hex)]

da [Address (hex)] [l Length (hex)] [pid ProcessId (hex)]

dds [Address (hex)] [l Length (hex)] [pid ProcessId (hex)]

dps [Address (hex)] [l Length (hex)] [pid ProcessId (hex)]

dqs [Address (hex)] [l Length (hex)] [pid ProcessId (hex)]

Description

Shows the virtual address memory content in hex form.

The 'dw' command shows Word (2 bytes) values. The 'da' command shows a printable ASCII (null-terminated) string. The 'dds', 'dps', and 'dqs' commands show Double-word (4 bytes), pointer-sized (8 bytes), and Quad-word (8 bytes) values respectively, and each value is additionally resolved to a symbol name (module!symbol+offset) where possible.

Parameters

[Address (hex)]

The virtual address of where we want to read its memory.

[l Length (hex)] (optional)

The length (byte) in hex format.

[pid ProcessId (hex)] (optional)

The Process ID in hex format that we want to see the memory from its context (cr3).

If you don't specify the pid, then the default pid is the current process (HyperDbg) process layout of memory.

Examples

The following command is used when we want to read the content of memory at nt!Kd_DEFAULT_Mask with length of 0x50from the memory layout view of process (4 a.k.a. system process) in a hex byte format.

The following command is used when we want to read the content of memory at nt!Kd_DEFAULT_Mask+@rax+10 with length of 0x30from the memory layout view of process (4 a.k.a. system process) in a hex byte format.

Note that @rax is 0x10 in this case.

The following command is used when we want to read the content of memory at fffff800`3ad6f010 with length of 0x50 from the memory layout view of process (4 a.k.a. system process) in a hex byte format.

The following example shows the content of memory at fffff800`3ad6f010 from current process layout in a Double-word value (4 bytes) and ASCII characters format.

The following example shows the content of memory at fffff800`3ad6f010 from current process layout in a Double-word values (4 bytes) format with the length of 0x10.

The following example shows the content of memory at fffff800`3ad6f010 from current process layout in a Quad-word values (8 bytes) format.

The following example shows the content of memory at fffff805`c4305880 in a Word values (2 bytes) format.

The following example shows the content of memory at nt!Kd_DEFAULT_Mask in a Word values (2 bytes) format with the length of 0x4.

The following example shows the content of memory at fffff805`c4305880 as a printable ASCII (null-terminated) string.

The following example shows the content of memory at fffff805`c34da250 in a Double-word values (4 bytes) format, with each value resolved to a symbol name where possible.

The following example shows the content of memory at nt!ExpFirmwareTableResource in pointer-sized values (8 bytes) format, with each value resolved to a symbol name where possible.

The following example shows the content of memory at fffff805`c42f5060 in a Quad-word values (8 bytes) format, with each value resolved to a symbol name where possible.

SDK

To read the memory in the target debuggee, you need to use the following function in libhyperdbg:

Remarks

Starting from HyperDbg v0.24, the 'dw', 'da', 'dds', 'dps', and 'dqs' commands are available.

If you don't specify the length, the default length for HyperDbg is 0x80 Bytes.

This command is guaranteed to keep debuggee in a halt state (in Debugger Mode); thus, nothing will change during its execution.

Requirements

None

!db, !dc, !dd, !dq, !dw, !da, !dds, !dps, !dqs (read physical memory)

dl (traverse through linked list using virtual address)

dt (display and map virtual memory to structures)

Last updated