The dt command displays information about a local variable, global variable or data type. This can display information about simple data types, as well as structures and unions.
dt命令看可以显示局部变量、全局变量或数据类型的信息。它也可以仅显示数据类型。即结构和联合(union)的信息。
#查看当前线程块
dt _teb
复制代码
d 查看数据
默认格式如下
d [type] [address range]
复制代码
d这个命令能够查看指定地址和内存的内容,其中常用的有dd(使用双字节来查看内存内容),如:
dd 77400000
复制代码
!peb
可以查看当前进程中的peb的基本情况。
[img=720,425.7670273711012]https://m-1254331109.cos.ap-guangzhou.myqcloud.com/202312181545087.png[/img]
bp
The bp, bu, and bm commands set one or more software breakpoints. You can combine locations, conditions, and options to set different kinds of software breakpoints.
指令格式如下
bp <address>
复制代码
常见的下断点的方式。对应的清除断点的方式为bc num,而列出断点的方法为bl
g
最基本的指令,运行当前程序。
u
将指定的地址反汇编:
u[u|b] address(.表示当前的程序执行地址)
复制代码
uu Address L[Length]
复制代码
其中uu和ub可以指定当前反汇编的长度(暂时没看出什么区别,似乎是ub的话使用.会自动计算从函数开始的地址进行汇编)。可以使用以下的语法进行长度的指定
使用L表示后面的数字表示的是长度
r