!dh:扩展显示指定映像的头部

-h 在调试器命令窗口中显示该扩展命令的帮助文本。

0:004> !dh -h
Usage: dh [options] addressDumps headers from an image based at addressOptions:-a      Dump everything-f      Dump file headers-s      Dump section headers

也就这三个属性,默认是使用-a

0:004> !dh ntdllFile Type: DLL
FILE HEADER VALUES14C machine (i386)5 number of sections
4EC49B60 time date stamp Thu Nov 17 13:28:00 20110 file pointer to symbol table0 number of symbolsE0 size of optional header2102 characteristicsExecutable32 bit word machineDLLOPTIONAL HEADER VALUES10B magic #9.00 linker versionD5000 size of code63200 size of initialized data0 size of uninitialized data0 address of entry point1000 base of code----- new -----
775a0000 image base1000 section alignment200 file alignment3 subsystem (Windows CUI)6.01 operating system version6.01 image version6.01 subsystem version13C000 size of image400 size of headers141016 checksum
00040000 size of stack reserve
00001000 size of stack commit
00100000 size of heap reserve
00001000 size of heap commit36190 [    F018] address [size] of Export Directory0 [       0] address [size] of Import DirectoryE0000 [   560D8] address [size] of Resource Directory0 [       0] address [size] of Exception Directory137000 [    3918] address [size] of Security Directory137000 [    4C50] address [size] of Base Relocation DirectoryD5D5C [      38] address [size] of Debug Directory0 [       0] address [size] of Description Directory0 [       0] address [size] of Special Directory0 [       0] address [size] of Thread Storage Directory1E0A8 [      40] address [size] of Load Configuration Directory0 [       0] address [size] of Bound Import Directory0 [       0] address [size] of Import Address Table Directory0 [       0] address [size] of Delay Import Directory0 [       0] address [size] of COR20 Header Directory0 [       0] address [size] of Reserved DirectorySECTION HEADER #1.text nameD4DBA virtual size1000 virtual addressD4E00 size of raw data400 file pointer to raw data0 file pointer to relocation table0 file pointer to line numbers0 number of relocations0 number of line numbers
60000020 flagsCode(no align specified)Execute ReadDebug Directories(2)Type       Size     Address  Pointercv           22       d5d98    d5198  Format: RSDS, guid, 2, ntdll.pdb(    10)       4       d5d94    d5194SECTION HEADER #2RT name1DC virtual sizeD6000 virtual address200 size of raw dataD5200 file pointer to raw data0 file pointer to relocation table0 file pointer to line numbers0 number of relocations0 number of line numbers
60000020 flagsCode(no align specified)Execute ReadSECTION HEADER #3.data name8064 virtual sizeD7000 virtual address6C00 size of raw dataD5400 file pointer to raw data0 file pointer to relocation table0 file pointer to line numbers0 number of relocations0 number of line numbers
C0000040 flagsInitialized Data(no align specified)Read WriteSECTION HEADER #4.rsrc name560D8 virtual sizeE0000 virtual address56200 size of raw dataDC000 file pointer to raw data0 file pointer to relocation table0 file pointer to line numbers0 number of relocations0 number of line numbers
40000040 flagsInitialized Data(no align specified)Read OnlySECTION HEADER #5.reloc name4C50 virtual size137000 virtual address4E00 size of raw data132200 file pointer to raw data0 file pointer to relocation table0 file pointer to line numbers0 number of relocations0 number of line numbers
42000040 flagsInitialized DataDiscardable(no align specified)Read Only

可以比对LoadPE工具,可以发现完全一样:

!lmi 扩展显示某个模块的详细信息

0:004> !lmi ntdll
Loaded Module Info: [ntdll] Module: ntdllBase Address: 775a0000Image Name: C:\Windows\SYSTEM32\ntdll.dllMachine Type: 332 (I386)Time Stamp: 4ec49b60 Thu Nov 17 13:28:00 2011Size: 13c000CheckSum: 141016
Characteristics: 2102
Debug Data Dirs: Type  Size     VA  PointerCODEVIEW    22, d5d98,   d5198 RSDS - GUID: {093D2CD7-F95B-4CC6-B531-8D405CC31566}Age: 2, Pdb: ntdll.pdbCLSID     4, d5d94,   d5194 [Data not mapped]Image Type: FILE     - Image read successfully from debugger.C:\Windows\SYSTEM32\ntdll.dllSymbol Type: EXPORT   - PDB not foundLoad Report: export symbols

转载于:https://www.cnblogs.com/hgy413/archive/2013/01/08/3693440.html

windbg学习22(!dh和!lmi)相关推荐

  1. Windbg学习 (0x0012) 命令-批处理命令程序

    Windbg学习 (0x0012) 命令-批处理命令 转载于:https://www.cnblogs.com/ywnwa417/p/5678344.html

  2. WinDbg学习笔记(二)--字符串访问断点

    标 题: [原创]WinDbg学习笔记(二)--字符串访问断点 作 者: gaorqing 时 间: 2009-07-25,21:39:04 链 接: http://bbs.pediy.com/sho ...

  3. WinDbg学习笔记(一)--认识WinDbg

    标 题: [原创]WinDbg学习笔记(一)--认识WinDbg 作 者: gaorqing 时 间: 2009-07-27,20:45:27 链 接: http://bbs.pediy.com/sh ...

  4. JQuery学习22篇(事件委托)

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  5. Python学习22:Python之禅和PEP 8规范

    笔者:风起怨江南 出处:https://blog.csdn.net/JackMengJin 笔者原创,文章转载需注明,如果喜欢请点赞+关注,感谢支持! 导读:Python之禅和PEP 8规范,值得所有 ...

  6. python爬虫学习22

    python爬虫学习22 这里写目录标题 python爬虫学习22 三.正则表达式 3.search方法 三.正则表达式 3.search方法 之前我们学习了正则表达式中的match方法,请大家回想一 ...

  7. Windbg学习使用

    WinDbg是微软发布的一款相当优秀的源码级(source-level)调试工具,可以用于Kernel模式调试和用户模式调试,还可以调试Dump文件. 1. WinDbg介绍:     Debuggi ...

  8. windbg学习笔记

    写与2014年6月3日 Default Workspace 默认工作空间 implicit Workspace 隐含工作空间 Named Workspace 命名工作空间 explicit Works ...

  9. Windbg学习 (0x0002) 命令基础

    命令分为三种:基本命令,元命令,扩展命令,其中基本命令和元命令都是内建在Windbg中的,扩展命令通过加载扩展模块提供的 基本命令: 包括但不限于以下: 调试器控制:g(go) t(trace) p( ...

最新文章

  1. Linux shell 脚本报错:/bin/bash^M: bad interpreter: No such file or directory
  2. jvm垃圾回收机制和常见算法
  3. 第十六周项目一-小玩文件(1)
  4. 邮政社招笔试题库_工商银行招聘考试题库13套和参考答案
  5. linux利用grep查看打印匹配的下几行或前后几行的命令
  6. SAP UI5不支持delta render
  7. python模拟点击网页按钮_网页自动化开发(第一章)
  8. Docker最全教程之使用 Visual Studio Code玩转Docker(二十一)
  9. ubuntu修改root密码
  10. Spring Boot————Spring Boot启动流程分析
  11. uniapp ios时间戳获取不到_2折甩卖、货架被抢空…青岛这家大超市要关门,开业不到两年!停业时间戳...
  12. Python 基于pykafka简单实现KAFKA消费者
  13. 树莓派linux i2c通信,树莓派与i2c设备的通信
  14. zabbix---agent安装
  15. torch.FloatTensor和torch.Tensor、torch.tensor
  16. Windows+Linux 双系统安装教程
  17. 增长量计算n+1原则_事业单位行测:巧解增长量计算公式
  18. 计算机二级考试公共基础知识都是一样的吗,计算机二级公共基础知识全国一样吗?...
  19. LaTex的图文安装--TexLife+SumtraPDF+WinEdt
  20. 为酒店设计一套计算机网络管理系统,酒店管理系统设计与方案.doc

热门文章

  1. Java相关资源下载路径
  2. @sql 单元测试_10个最常见SQL单元测试错误
  3. 德鲁伊 oltp oltp_深入研究内存中OLTP表的非聚集索引
  4. sql server重命名_在Linux上SQL Server中重命名逻辑和物理文件名
  5. azure云数据库_在Azure Cosmos DB中使用PowerShell创建和删除数据库
  6. 如何将链接的服务器从SQL Server“调试”到Oracle数据库实例
  7. SpringBoot整合freemarker找不到静态资源ftl文件解决办法
  8. Silverlight/WPF中DependencyProperty使用陷阱一枚
  9. Python选修课第二届Turtle绘图大赛
  10. Storm入门(七)可靠性机制代码示例