内存相关
|
|
|
|
- !vm:显示虚拟内存信息:主要有物理大小,分页文件大小,分页内存大小等信息,用来检查内存使用情况,在进程虚拟内存中,每个进程按照从高到底的顺序排序,很容易看出大内存占用的进程。最后一部分是会话内存空间信息(关系到创建会话,窗口,钩子等)。1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465kd> !vm 4*** Virtual Memory Usage ***Physical Memory: 786300 ( 3145200 Kb)Page File: \??\C:\pagefile.sysCurrent: 2095104 Kb Free Space: 2080612 KbMinimum: 2095104 Kb Maximum: 4190208 KbAvailable Pages: 692972 ( 2771888 Kb)ResAvail Pages: 707973 ( 2831892 Kb)Locked IO Pages: 1264 ( 5056 Kb)Free System PTEs: 161011 ( 644044 Kb)Free NP PTEs: 32766 ( 131064 Kb)Free Special NP: 0 ( 0 Kb)Modified Pages: 721 ( 2884 Kb)Modified PF Pages: 721 ( 2884 Kb)NonPagedPool Usage: 2381 ( 9524 Kb)NonPagedPool Max: 65536 ( 262144 Kb)PagedPool 0 Usage: 5494 ( 21976 Kb)PagedPool 1 Usage: 727 ( 2908 Kb)PagedPool 2 Usage: 714 ( 2856 Kb)PagedPool Usage: 6935 ( 27740 Kb)PagedPool Maximum: 92160 ( 368640 Kb)Shared Commit: 10924 ( 43696 Kb)Special Pool: 0 ( 0 Kb)Shared Process: 2241 ( 8964 Kb)PagedPool Commit: 6935 ( 27740 Kb)Driver Commit: 1196 ( 4784 Kb)Committed pages: 57554 ( 230216 Kb)Commit limit: 1269081 ( 5076324 Kb)Total Private: 35500 ( 142000 Kb)0454 vmtoolsd.exe 4926 ( 19704 Kb)0538 explorer.exe 4466 ( 17864 Kb)05dc SGTool.exe 3414 ( 13656 Kb)03b8 svchost.exe 3072 ( 12288 Kb)0270 winlogon.exe 2973 ( 11892 Kb)06c0 vmtoolsd.exe 2886 ( 11544 Kb)04d4 rundll32.exe 1724 ( 6896 Kb)0470 wuauclt.exe 1644 ( 6576 Kb)065c VGAuthService.e 1591 ( 6364 Kb)05e4 ctfmon.exe 1372 ( 5488 Kb)05ac spoolsv.exe 1102 ( 4408 Kb)02a8 lsass.exe 1003 ( 4012 Kb)077c wmiprvse.exe 985 ( 3940 Kb)034c svchost.exe 777 ( 3108 Kb)0608 svchost.exe 559 ( 2236 Kb)0394 svchost.exe 455 ( 1820 Kb)0258 csrss.exe 452 ( 1808 Kb)029c services.exe 424 ( 1696 Kb)01e8 SohuNews.exe 406 ( 1624 Kb)0428 svchost.exe 390 ( 1560 Kb)03f0 svchost.exe 343 ( 1372 Kb)00b0 alg.exe 314 ( 1256 Kb)0340 vmacthlp.exe 173 ( 692 Kb)0228 smss.exe 42 ( 168 Kb)0004 System 7 ( 28 Kb)Terminal Server Memory Usage By Session: //会话Session Paged Pool Maximum is 4096KSession View Space Maximum is 49152KSession ID 0 @ badca000:Paged Pool Usage: 0KCommit Usage: 2108K
对象相关
!handle:查看句柄信息,包括句柄类型,引用计数,句柄名,0参数等同与默认参数,表示所有句柄!
!handle [0]:
12345678910111213141516kd> !handleprocessor number 0, process 805539a0PROCESS 805539a0 SessionId: none Cid: 0000 Peb: 00000000 ParentCid: 0000DirBase: 00331000 ObjectTable: e1001c88 HandleCount: 250.Image: IdleHandle table at e16fd000 with 250 Entries in use0004: Object: 8a32c830 GrantedAccess: 001f0fff Entry: e1002008Object: 8a32c830 Type: (8a32ce70) ProcessObjectHeader: 8a32c818 (old version)HandleCount: 2 PointerCount: 600008: Object: 8a32b020 GrantedAccess: 00000000 Entry: e1002010Object: 8a32b020 Type: (8a32cca0) ThreadObjectHeader: 8a32b008 (old version)HandleCount: 1 PointerCount: 1!handle xxxxxxx:查看指定进程的句柄信息。
12345678910111213141516kd> !prcess 0 0No export prcess foundkd> !process 0 0**** NT ACTIVE PROCESS DUMP ****PROCESS 8a32c830 SessionId: none Cid: 0004 Peb: 00000000 ParentCid: 0000DirBase: 00331000 ObjectTable: e1001c88 HandleCount: 250.Image: Systemkd> !handle 8a32c830processor number 0, process 805539a0PROCESS 805539a0 SessionId: none Cid: 0000 Peb: 00000000 ParentCid: 0000DirBase: 00331000 ObjectTable: e1001c88 HandleCount: 250.Image: IdleKernel Handle table at e16fd000 with 250 Entries in use8a32c830: free handle, Entry address 8a297a88, Next Entry 00000000!handle [xxx]:显示指定的句柄信息
123456789101112kd> !handle 0550processor number 0, process 89f0ada0PROCESS 89f0ada0 SessionId: 0 Cid: 0190 Peb: 7ffd5000 ParentCid: 0550DirBase: 13680340 ObjectTable: e27288a0 HandleCount: 336.Image: SogouCloud.exeHandle table at e11d1000 with 336 Entries in use0550: Object: 8a14a030 GrantedAccess: 001f0001 (Inherit) Entry: e11d1aa0Object: 8a14a030 Type: (8a3295e0) MutantObjectHeader: 8a14a018 (old version)HandleCount: 1 PointerCount: 2Directory Object: e155ad10 Name: mutex_file_0x006E005D!handle [xxxx] 3 [yyy]:显示指定的进程的指定句柄
123456789101112kd> !handle 0550processor number 0, process 89f0ada0PROCESS 89f0ada0 SessionId: 0 Cid: 0190 Peb: 7ffd5000 ParentCid: 0550DirBase: 13680340 ObjectTable: e27288a0 HandleCount: 336.Image: SogouCloud.exeHandle table at e11d1000 with 336 Entries in use0550: Object: 8a14a030 GrantedAccess: 001f0001 (Inherit) Entry: e11d1aa0Object: 8a14a030 Type: (8a3295e0) MutantObjectHeader: 8a14a018 (old version)HandleCount: 1 PointerCount: 2Directory Object: e155ad10 Name: mutex_file_0x006E005D
!object:查看对象
- !object xxxxxx:[表示对象的地址]12345678910110550: Object: 8a14a030 GrantedAccess: 001f0001 (Inherit) Entry: e11d1aa0Object: 8a14a030 Type: (8a3295e0) MutantObjectHeader: 8a14a018 (old version)HandleCount: 1 PointerCount: 2Directory Object: e155ad10 Name: mutex_file_0x006E005Dkd> !object 8a14a030Object: 8a14a030 Type: (8a3295e0) MutantObjectHeader: 8a14a018 (old version)HandleCount: 1 PointerCount: 2Directory Object: e155ad10 Name: mutex_file_0x006E005D
- !object xxxxxx:[表示对象的地址]
驱动相关
!drvobj:显示驱动信息,主要显示DRIVER_OBJECT结构信息
- !drvobj xxxxx yy:xxxx表示的是设备驱动地址或者名称,yy表示掩码,一般为7,不加掩码,则显示粗略信息。123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173kd> !object \Driver //显示\Driver下的对象信息Object: e101c918 Type: (8a3603b0) DirectoryObjectHeader: e101c900 (old version)HandleCount: 0 PointerCount: 81Directory Object: e1000160 Name: DriverHash Address Type Name---- ------- ---- ----00 89e9a438 Driver Beep8a3592d0 Driver NDIS8a2a7f38 Driver KSecDD01 89dcad38 Driver Mouclass8a1997f0 Driver FsVga8a1eb6d8 Driver Raspti8a13ee40 Driver es137102 8a13f778 Driver vmx_svga03 8a050ce8 Driver Fips8a173bf8 Driver Kbdclass04 8a05c030 Driver VgaSave8a1dadd8 Driver NDProxy89e00f38 Driver Compbatt05 8a1ebe08 Driver Ptilink89e196e8 Driver MountMgr8a105ac0 Driver wdmaud07 8a2a92d8 Driver dmload8a2ad1c8 Driver isapnp08 89df5030 Driver redbook89dcaf38 Driver vmmouse8a297f38 Driver atapi09 8a234a08 Driver vmscsi10 89a099c8 Driver RasAcd8a13e958 Driver PSched8a30e980 Driver dmio8a050950 Driver IpNat11 899b7e30 Driver mouhid89e881b8 Driver audstub8a13f2a0 Driver usbuhci8a151da0 Driver Win32k12 89aafda0 Driver usbhub89e7de80 Driver swenum8a167370 Driver rdpdr13 89fd5258 Driver usbccgp89e1ddb0 Driver mchInjDrv89ed6548 Driver RDPCDD89e7d9c8 Driver Update89df51b8 Driver RasPppoe8a1cb3b8 Driver HTTP14 8a11de30 Driver TermDD8a2a8160 Driver Ftdisk8a1c97b8 Driver sysaudio15 8a173e18 Driver Rasl2tp16 8a24a480 Driver vsock17 8a30d1a0 Driver vmci18 8a19a338 Driver PptpMiniport8a19acd8 Driver vmxnet8a3132f0 Driver WMIxWDM8a313878 Driver ACPI_HAL19 89ac8458 Driver vmusbmouse21 89e1dca8 Driver NetBT8a3126d0 Driver agp44022 8a262d18 Driver Cdrom89e7e858 Driver mssmbios24 8a10da70 Driver Wanarp89a07808 Driver Tcpip89e20338 Driver mnmdd89ea68d8 Driver gameenum25 8a24a790 Driver VolSnap26 8a199ec8 Driver intelppm27 89dca318 Driver Imapi28 8a050be0 Driver WS2IFSL89e21358 Driver Null8a13e7a0 Driver usbehci89ed2c08 Driver VMMEMCTL29 89a09438 Driver IPSec8a147938 Driver Disk8a2b1218 Driver PCI30 89dca508 Driver NdisTapi8a262f38 Driver NdisWan8a30d298 Driver PartMgr31 8a13e550 Driver Gpc32 8a30f030 Driver ACPI33 8a35e2f8 Driver PnpManager34 8a0507f8 Driver AFD8a106b10 Driver Ndisuio35 899dc498 Driver hidusb36 8a173f10 Driver i8042prt8a13e448 Driver CmBatt8a313780 Driver IntelIdekd> !drvobj 8a313780 7 //显示InterIde的驱动信息Driver object (8a313780) is for:\Driver\IntelIdeDriver Extension List: (id , addr)(bab2c410 8a30f7c8)Device Object list:8a1a2570 8a1a2740 8a30e030DriverEntry: badacf05 intelide!GsDriverEntryDriverStartIo: 00000000DriverUnload: bab2c6dc PCIIDEX!PciIdeUnloadAddDevice: bab2a7d2 PCIIDEX!ControllerAddDeviceDispatch routines:[00] IRP_MJ_CREATE 804f454a nt!IopInvalidDeviceRequest[01] IRP_MJ_CREATE_NAMED_PIPE 804f454a nt!IopInvalidDeviceRequest[02] IRP_MJ_CLOSE 804f454a nt!IopInvalidDeviceRequest[03] IRP_MJ_READ 804f454a nt!IopInvalidDeviceRequest[04] IRP_MJ_WRITE 804f454a nt!IopInvalidDeviceRequest[05] IRP_MJ_QUERY_INFORMATION 804f454a nt!IopInvalidDeviceRequest[06] IRP_MJ_SET_INFORMATION 804f454a nt!IopInvalidDeviceRequest[07] IRP_MJ_QUERY_EA 804f454a nt!IopInvalidDeviceRequest[08] IRP_MJ_SET_EA 804f454a nt!IopInvalidDeviceRequest[09] IRP_MJ_FLUSH_BUFFERS 804f454a nt!IopInvalidDeviceRequest[0a] IRP_MJ_QUERY_VOLUME_INFORMATION 804f454a nt!IopInvalidDeviceRequest[0b] IRP_MJ_SET_VOLUME_INFORMATION 804f454a nt!IopInvalidDeviceRequest[0c] IRP_MJ_DIRECTORY_CONTROL 804f454a nt!IopInvalidDeviceRequest[0d] IRP_MJ_FILE_SYSTEM_CONTROL 804f454a nt!IopInvalidDeviceRequest[0e] IRP_MJ_DEVICE_CONTROL 804f454a nt!IopInvalidDeviceRequest[0f] IRP_MJ_INTERNAL_DEVICE_CONTROL bab2c4f2 PCIIDEX!PciIdeInternalDeviceIoControl[10] IRP_MJ_SHUTDOWN 804f454a nt!IopInvalidDeviceRequest[11] IRP_MJ_LOCK_CONTROL 804f454a nt!IopInvalidDeviceRequest[12] IRP_MJ_CLEANUP 804f454a nt!IopInvalidDeviceRequest[13] IRP_MJ_CREATE_MAILSLOT 804f454a nt!IopInvalidDeviceRequest[14] IRP_MJ_QUERY_SECURITY 804f454a nt!IopInvalidDeviceRequest[15] IRP_MJ_SET_SECURITY 804f454a nt!IopInvalidDeviceRequest[16] IRP_MJ_POWER bab28692 PCIIDEX!DispatchPower[17] IRP_MJ_SYSTEM_CONTROL bab2c46e PCIIDEX!DispatchWmi[18] IRP_MJ_DEVICE_CHANGE 804f454a nt!IopInvalidDeviceRequest[19] IRP_MJ_QUERY_QUOTA 804f454a nt!IopInvalidDeviceRequest[1a] IRP_MJ_SET_QUOTA 804f454a nt!IopInvalidDeviceRequest[1b] IRP_MJ_PNP bab2c43a PCIIDEX!DispatchPnpkd> !drvobj IntelIde 7 //显示InterIde的驱动信息Driver object (8a313780) is for:\Driver\IntelIdeDriver Extension List: (id , addr)(bab2c410 8a30f7c8)Device Object list:8a1a2570 8a1a2740 8a30e030DriverEntry: badacf05 intelide!GsDriverEntryDriverStartIo: 00000000DriverUnload: bab2c6dc PCIIDEX!PciIdeUnloadAddDevice: bab2a7d2 PCIIDEX!ControllerAddDeviceDispatch routines:[00] IRP_MJ_CREATE 804f454a nt!IopInvalidDeviceRequest[01] IRP_MJ_CREATE_NAMED_PIPE 804f454a nt!IopInvalidDeviceRequest[02] IRP_MJ_CLOSE 804f454a nt!IopInvalidDeviceRequest[03] IRP_MJ_READ 804f454a nt!IopInvalidDeviceRequest[04] IRP_MJ_WRITE 804f454a nt!IopInvalidDeviceRequest[05] IRP_MJ_QUERY_INFORMATION 804f454a nt!IopInvalidDeviceRequest[06] IRP_MJ_SET_INFORMATION 804f454a nt!IopInvalidDeviceRequest[07] IRP_MJ_QUERY_EA 804f454a nt!IopInvalidDeviceRequest[08] IRP_MJ_SET_EA 804f454a nt!IopInvalidDeviceRequest[09] IRP_MJ_FLUSH_BUFFERS 804f454a nt!IopInvalidDeviceRequest[0a] IRP_MJ_QUERY_VOLUME_INFORMATION 804f454a nt!IopInvalidDeviceRequest[0b] IRP_MJ_SET_VOLUME_INFORMATION 804f454a nt!IopInvalidDeviceRequest[0c] IRP_MJ_DIRECTORY_CONTROL 804f454a nt!IopInvalidDeviceRequest[0d] IRP_MJ_FILE_SYSTEM_CONTROL 804f454a nt!IopInvalidDeviceRequest[0e] IRP_MJ_DEVICE_CONTROL 804f454a nt!IopInvalidDeviceRequest[0f] IRP_MJ_INTERNAL_DEVICE_CONTROL bab2c4f2 PCIIDEX!PciIdeInternalDeviceIoControl[10] IRP_MJ_SHUTDOWN 804f454a nt!IopInvalidDeviceRequest[11] IRP_MJ_LOCK_CONTROL 804f454a nt!IopInvalidDeviceRequest[12] IRP_MJ_CLEANUP 804f454a nt!IopInvalidDeviceRequest[13] IRP_MJ_CREATE_MAILSLOT 804f454a nt!IopInvalidDeviceRequest[14] IRP_MJ_QUERY_SECURITY 804f454a nt!IopInvalidDeviceRequest[15] IRP_MJ_SET_SECURITY 804f454a nt!IopInvalidDeviceRequest[16] IRP_MJ_POWER bab28692 PCIIDEX!DispatchPower[17] IRP_MJ_SYSTEM_CONTROL bab2c46e PCIIDEX!DispatchWmi[18] IRP_MJ_DEVICE_CHANGE 804f454a nt!IopInvalidDeviceRequest[19] IRP_MJ_QUERY_QUOTA 804f454a nt!IopInvalidDeviceRequest[1a] IRP_MJ_SET_QUOTA 804f454a nt!IopInvalidDeviceRequest[1b] IRP_MJ_PNP bab2c43a PCIIDEX!DispatchPnp
- !drvobj xxxxx yy:xxxx表示的是设备驱动地址或者名称,yy表示掩码,一般为7,不加掩码,则显示粗略信息。
!devobj:显示驱动设备信息。主要显示DEVICE_OBJECT结构
- !devobj xxxx:xxxx为驱动地址或者名称1234567891011121314kd> !drvobj Beep //得到beep设备驱动的DEVICE_OBJECT的地址Driver object (89e9a438) is for:\Driver\BeepDriver Extension List: (id , addr)Device Object list:89e9a2c8kd> !devobj 89e9a2c8 //查看Beep驱动的DEVICE_OBJECT的信息Device object (89e9a2c8) is for:Beep \Driver\Beep DriverObject 89e9a438Current Irp 00000000 RefCount 0 Type 00000001 Flags 00000044Dacl e13bd73c DevExt 89e9a380 DevObjExt 89e9a3d8ExtensionFlags (0000000000)Device queue is not busy.
- !devobj xxxx:xxxx为驱动地址或者名称
蓝屏分析
- !analyze -v:显示蓝屏相关信息,如蓝屏原因,系统上下文等