凡凡一书农 深居都市中 工作写代码 闲来爱捉虫 都言此道苦 我觉乐无穷 如不遇软件 此身何所用

Similar documents
Understanding IO patterns of SSDs

第二小题 : 逻辑隔离 (10 分 ) OpenFlow Switch1 (PC-A/Netfpga) OpenFlow Switch2 (PC-B/Netfpga) ServerB PC-2. Switching Hub

Operating Systems. Chapter 4 Threads. Lei Duan

AvalonMiner Raspberry Pi Configuration Guide. AvalonMiner 树莓派配置教程 AvalonMiner Raspberry Pi Configuration Guide

H3C CAS 虚拟机支持的操作系统列表. Copyright 2016 杭州华三通信技术有限公司版权所有, 保留一切权利 非经本公司书面许可, 任何单位和个人不得擅自摘抄 复制本文档内容的部分或全部, 并不得以任何形式传播 本文档中的信息可能变动, 恕不另行通知

ICP Enablon User Manual Factory ICP Enablon 用户手册 工厂 Version th Jul 2012 版本 年 7 月 16 日. Content 内容

Spark Standalone 模式应用程序开发 Spark 大数据博客 -

云计算入门 Introduction to Cloud Computing GESC1001

Silverlight 3 概览 俞晖市场推广经理微软 ( 中国 ) 有限公司

Lecture 23 Introduction to Paging

上汽通用汽车供应商门户网站项目 (SGMSP) User Guide 用户手册 上汽通用汽车有限公司 2014 上汽通用汽车有限公司未经授权, 不得以任何形式使用本文档所包括的任何部分

Microsoft RemoteFX: USB 和设备重定向 姓名 : 张天民 职务 : 高级讲师 公司 : 东方瑞通 ( 北京 ) 咨询服务有限公司

实验三十三 DEIGRP 的配置 一 实验目的 二 应用环境 三 实验设备 四 实验拓扑 五 实验要求 六 实验步骤 1. 掌握 DEIGRP 的配置方法 2. 理解 DEIGRP 协议的工作过程

Vista 程序员的好帮手. XXX DPE, Microsoft China

如何查看 Cache Engine 缓存中有哪些网站 /URL

Chapter 1 (Part 2) Introduction to Operating System

CHINA VISA APPLICATION CONCIERGE SERVICE*

三 依赖注入 (dependency injection) 的学习

密级 : 博士学位论文. 论文题目基于 ScratchPad Memory 的嵌入式系统优化研究

Command Dictionary CUSTOM

<properties> <jdk.version>1.8</jdk.version> <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties>

FLIGHT INSTRUMENT PANEL

Chapter 7: Deadlocks. Operating System Concepts 9 th Edition

测试基础架构 演进之路. 茹炳晟 (Robin Ru) ebay 中国研发中心

DEV Office 客户端开发增强

新一代 ODA X5-2 低调 奢华 有内涵

Chapter 11 SHANDONG UNIVERSITY 1

PCU50 的整盘备份. 本文只针对操作系统为 Windows XP 版本的 PCU50 PCU50 启动硬件自检完后, 出现下面文字时, 按向下光标键 光标条停在 SINUMERIK 下方的空白处, 如下图, 按回车键 PCU50 会进入到服务画面, 如下图

Apache Kafka 源码编译 Spark 大数据博客 -

Previous on Computer Networks Class 18. ICMP: Internet Control Message Protocol IP Protocol Actually a IP packet

: Operating System 计算机原理与设计

OTAD Application Note

软件和支持订订 1.1 订阅单位定义 订阅服务费用以称为 单位 的计量标准为依据 下表 1.1 定义了用于计量贵方使用的软件订阅的数量的各种单位 在贵方购买行为所适用的订单中以及在附件中包含了各种软件订阅所适用的具体单位

1. DWR 1.1 DWR 基础 概念 使用使用 DWR 的步骤. 1 什么是 DWR? Direct Web Remote, 直接 Web 远程 是一个 Ajax 的框架

NetScreen 概念与范例. ScreenOS 参考指南 第 7 卷 : 虚拟系统. ScreenOS 编号 SC 修订本 E

Logitech G302 Daedalus Prime Setup Guide 设置指南

Open Office Pdf Editor Extension Download ->>> DOWNLOAD

Oracle 一体化创新云技术 助力智慧政府信息化战略. Copyright* *2014*Oracle*and/or*its*affiliates.*All*rights*reserved.** *

CA Application Performance Management

TW5.0 如何使用 SSL 认证. 先使用 openssl 工具 1 生成 CA 私钥和自签名根证书 (1) 生成 CA 私钥 openssl genrsa -out ca-key.pem 1024

Safety Life Cycle Model IEC61508 安全生命周期模型 -IEC61508

Build a Key Value Flash Disk Based Storage System. Flash Memory Summit 2017 Santa Clara, CA 1

nbns-list netbios-type network next-server option reset dhcp server conflict 1-34

Color LaserJet Pro MFP M477 入门指南

计算机科学与技术专业本科培养计划. Undergraduate Program for Specialty in Computer Science & Technology

Triangle - Delaunay Triangulator

Keygen Codes For Photoshop Cs6 ->>> DOWNLOAD

操作系统原理与设计. 第 13 章 IO Systems(IO 管理 ) 陈香兰 2009 年 09 月 01 日 中国科学技术大学计算机学院

CloudStack 4.3 API 开发指南!

Smart Services Lucy Huo (Senior Consultant, UNITY Business Consulting) April 27, 2016

Mobile & Embedded DevCon 2005

Cisco IP Phone 8800 系列和 Cisco IP Conference Phone 8832 多平台 电话设置指南

Autodesk Backburner 2011 安装手册

<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <configuration> <!--- global properties --> <property>

Java Jdk 6 For Windows 7 32 Bit Filehippo

display portal server display portal user display portal user count display portal web-server

3dvia Composer Solidworks

Supplementary Materials on Semaphores

XPS 8920 Setup and Specifications

朱晔和你聊 Spring 系列 S1E2: SpringBoot 并不神秘

计算机组成原理第二讲 第二章 : 运算方法和运算器 数据与文字的表示方法 (1) 整数的表示方法. 授课老师 : 王浩宇

Ganglia 是 UC Berkeley 发起的一个开源集群监视项目, 主要是用来监控系统性能, 如 :cpu mem 硬盘利用率, I/O 负载 网络流量情况等, 通过曲线很容易见到每个节点的工作状态, 对合理调整 分配系统资源, 提高系统整体性能起到重要作用

B c e k c h k o h f o f f

SNMP Web Manager. User s Manual

[ 电子书 ]Spark for Data Science PDF 下载 Spark 大数据博客 -

Apache OpenWhisk + Kubernetes:

学习沉淀成长分享 EIGRP. 红茶三杯 ( 朱 SIR) 微博 : Latest update:

2. Introduction to Digital Media Format

Parallel Programming Principle and Practice Lecture 7

EqualLogic Best Practices for SQL Server Deployments

Digital Asset Management 数字媒体资源管理理 2. Introduction to Digital Media Format

libde265 HEVC 性能测试报告

测试 SFTP 的 问题在归档配置页的 MediaSense

未有现场回答的问题及其解答 如果我不需要所有的平台, 我可否只安装我想使用的平台?

Skill-building Courses Business Analysis Lesson 3 Problem Solving

智能终端与物联网应用 课程建设与实践. 邝坚 嵌入式系统与网络通信研究中心北京邮电大学计算机学院

#MDCC Swift 链式语法应 用 陈乘

漂亮的测试. By Alberto Savoia 代码之美 第七章 史际帆

MeeGo : An Open Source OS Solution For Client Devices

Air Speaker. Getting started with Logitech UE Air Speaker. 快速入门罗技 UE Air Speaker. Wireless speaker with AirPlay. 无线音箱 (AirPlay 技术 )

Specifications 产品规格书 USB-D M X 控制器. DESCRIPTION: USB-D M X Control 产品名称 : MODEL NO: USB-DMX512-CONTROL 产品型号 :

武汉大学 学年度第 1 学期 多核架构及编程技术 试卷(A)

Machine Vision Market Analysis of 2015 Isabel Yang

: Operating System 计算机原理与设计

Multiprotocol Label Switching The future of IP Backbone Technology

上海泛腾电子科技有限公司徐鹤军 上海张江高科技园区碧波路 500 号 306 室. Tel :

Green Computing Cloud Computing LSD Tech Co., Ltd SSD server & SSD Storage Cloud SSD Supercomputer LSD Tech Co., LTD

我们应该做什么? 告知性分析 未来会发生什么? 预测性分析 为什么会发生 诊断性分析 过去发生了什么? 描述性分析 高级分析 传统 BI. Source: Gartner

云计算入门 Introduction to Cloud Computing GESC1001

梁永健. W K Leung. 华为企业业务 BG 解决方案销售部 CTO Chief Technology Officer, Solution Sales, Huawei

Presentation Title. By Author The MathWorks, Inc. 1

The Design of Everyday Things

Technology: Anti-social Networking 科技 : 反社交网络

Virtual Memory Management for Main-Memory KV Database Using Solid State Disk *

PTZ PRO 2. Setup Guide 设置指南

IPv4/IPv6 协议 清华大学研究生课程

Microsemi - Leading Innovation for China s Hyperscale Data Centers

Safe Memory-Leak Fixing for C Programs

VAS 5054A FAQ ( 所有 5054A 整合, 中英对照 )

Transcription:

软件调试 和 格蠹汇编 作者

WHO AM I 凡凡一书农 深居都市中 工作写代码 闲来爱捉虫 都言此道苦 我觉乐无穷 如不遇软件 此身何所用 张银奎 Raymond Zhang 格蠹老雷 软件调试 和 格蠹汇编 作者 http://advdbg.org http://weibo.com/dbgger 格友公众号

1993.7.27 NT 3.1 Windows NT 3.1 NT OS 1994.9.21 NT 3.5 Windows NT 3.5 Daytona 1995.5.30 NT 3.51 Windows NT 3.51 1996.7.29 NT 4.0 Windows NT 4.0 Cairo, SUR 2000.2.17 NT 5.0 Windows 2000 2001.10.25 NT 5.1 Windows XP Whistler 2003.4.24 NT 5.2 Server 2003 Whistler Srvr 2004.8.6 NT 5.1 Windows XP SP2 Springboard 2005.4.25 NT 5.2 Windows XP x64 2006.11.8 NT 6.0 Windows Vista Longhorn 2008.02.04 NT 6.0 Server 2008 2009.07.22 NT 6.1 Windows 7 Windows 7 2012.10.26 NT 6.2 Windows 8 2015.7.29 10.0.10240 Windows 10 Threshold 2016.8.2 10.0.14393 Windows 10 Redstone 1

系统支持进程 环境子系统服务进程 系统支持进程 服务管理器 服务 应用程序 Session Manager (SMSS.EXE) Windows Subsystem (CSRSS.EXE) OS/2 Subsystem (OS2SS.EXE) POSIX Subsystem (PSXSS.EXE) Logon Process (WinLogon.EXE) Local Security Authentication Server (LSASS.EXE) Service Control Manager (SERVICES.EXE) SvcHost.exe MDM.exe SpoolSv.exe Windows Subsystem DLL (KERNEL32.DLL, USER32.DLL, ADVAPI32.DLL, GDI32.DLL) ctfmon.exe MMC.exe Shell Application (Explorer.exe) NTDLL.DLL System Process 用户空间系统空间 System Thread 系统调用 系统服务分发例程 I/O Mgr I/O System PnP Mgr Power Mgr File and Device Drivers WMI Memory Mgr Object Mgr Process&Thread Mgr Kernel (NTOSKRNL.EXE) File Cache Mgr Configuration Mgr (Registry) Local Procedure Call Security Mgr Windows Subsystem Driver (USER, GDI) (Win32K.SYS) Graphics Drivers Hardware Abstraction Layer (HAL.DLL) Hardware 内核执行体 (executive)(ntoskrnl.exe) 可能运行的进程

Vista Win7 Win8 Win10 WDDM WDF UAC Session 0 MinWin ReadyBoost WDI WRE Metro WinRT KDNET KDUSB3 UWP IUM 内存压缩 WDDM2.0

SecureKernel.EXE

VM 0 VM App App 1 App App Windows XP... Linux VMM VMCS VMCS Shadow Shadow Shadow Shadow Page Page Table Page Table Page Table Table

与 Windows 10 和 Server 2016 对应的版本是 Hyper-V 5.0, 内建 VSM(VIRTUAL SECURE MODE) 支持

Ke 内核 Ob 对象管理器 Mm 内存管理器 Ps 进程管理器 Se 安全

EFI BootMgFW WinLoad OsLoader.exe WinLoad HvLoader.efi WinLoad OsLoader.exe WinLoad OsLoader.exe 加载 SecureKernel 加载 NT

HvlpLaunchHvLoader

HvlMain

kd> du r8 fffff800`5039ff90 "\Windows\system32\securekernel.e" fffff800`5039ffd0 "xe" kd> du r8 fffff800`503a14f0 "\Windows\system32\skci.dll" kd> du r8 fffff800`503a14f0 "\Windows\system32\cng.sys" fffff800`503a4250 "\Windows\System32\drivers\secure" fffff800`503a4290 "kernel.exe"

winload!blbdprint winload!blstatusprint winload!oslpvsmloadmodules winload!oslvsmsetup winload!oslpreparetarget winload!oslpmain winload!oslmain 0x0

权力隔离 Hypervisor 具有最高权利, 但是其职能单一, 逻辑很少, 攻击面小 虚拟机分区, 机器边界, 普通 OS 和安全 OS 运行在不同分区 角色隔离 IUM 运行在特别设计的安全内核之上, 不依赖普通内核 IUM 中的多个 Trustlet 相互隔离, 不可以相互访问

0000000140000000 image base 1000 section alignment 200 file alignment 1 subsystem (Native) 10.00 operating system version 10.00 image version 10.00 subsystem version 7F000 size of image 400 size of headers 7D069 checksum 0000000000080000 size of stack reserve 0000000000002000 size of stack commit 0000000000100000 size of heap reserve 0000000000001000 size of heap commit 160 DLL characteristics High entropy VA supported Dynamic base NX compatible 52150 [ 16E4] address [size] of Export Directory 53834 [ 50] address [size] of Import Directory 7D000 [ 410] address [size] of Resource Directory 60000 [ 2D9C] address [size] of Exception Directory 6D200 [ 2160] address [size] of Security Directory 7E000 [ 180] address [size] of Base Relocation Directory 4D5D0 [ 38] address [size] of Debug Directory 0 [ 0] address [size] of Description Directory 0 [ 0] address [size] of Special Directory

线性地址 31 Dir 21 11 Table Offset 0 页表,1024 个表项 (PTE) CR3 上面是以 4KB 内存页 ( 未启用 PAE) 为例 1024PDE*1024PTE=2 20 页 页目录,1024 个表项 (PDE)

Modified list Default Store

PROCESS ffffc483a8ca7040 SessionId: none Cid: 044c Peb: 00000000 ParentCid: 0004 DirBase: 82eac000 ObjectTable: ffff9d0dcb2b7780 HandleCount: 0. Image: MemCompression VadRoot ffffc483a18f7180 Vads 206 Clone 0 Private 6529. Modified 3441. Locked 0. DeviceMap 0000000000000000 Token ffff9d0dce53f2f0 ElapsedTime 03:00:46.311 UserTime 00:00:00.000 KernelTime 00:00:00.000 QuotaPoolUsage[PagedPool] 4224 QuotaPoolUsage[NonPagedPool] 0 Working Set Sizes (now,min,max) (0, 0, 0) (0KB, 0KB, 0KB) PeakWorkingSetSize 0 VirtualSize 25 Mb PeakVirtualSize 27 Mb PageFaultCount 0 MemoryPriority BACKGROUND BasePriority 8 CommitCharge 16 线程 :SmKmStoreHelperWorker 多个,SMKM_STORE<SM_TRAITS>::SmStReadThread 多个

SmFpInitialize SmFpPreAllocate SmFree SmGetRegistrationInfo SmGlobals SmGlobalsInitialize SmInitSystem SmInvalidPeristId SmIoRequestComplete SmIssueIo SMKM_STORE_MGR<SM_TRAITS>::SmEmptyQueueToStores SMKM_STORE_MGR<SM_TRAITS>::SmEmptyStores

1 2 3

0: kd>!memusage *** CacheSize too low - increasing to 128 MB Max cache size is : 134217728 bytes (0x20000 KB) Total memory in cache : 276575 bytes (0x10f KB) Number of regions cached: 719 1970 full reads broken into 2625 partial reads counts: 1582 cached/1043 uncached, 60.27% cached bytes : 140590 cached/230591 uncached, 37.88% cached ** Transition PTEs are implicitly decoded ** Prototype PTEs are implicitly decoded loading PFN database loading (11% complete)

*** Virtual Memory Usage *** Physical Memory: 1025089 ( 4100356 Kb) Page File: \??\C:\pagefile.sys Current: 1441792 Kb Free Space: 1441784 Kb Minimum: 1441792 Kb Maximum: 12582912 Kb Page File: \??\C:\swapfile.sys Current: 262144 Kb Free Space: 262136 Kb Minimum: 262144 Kb Maximum: 6150532 Kb

2: kd> lm vm lx* Browse full module list start end module name fffff808`d0fe0000 fffff808`d0fea000 lxss (deferred) Image path: \SystemRoot\system32\drivers\lxss.sys Image name: lxss.sys Browse all global symbols functions data Timestamp: Sat Jul 16 10:28:26 2016 (57899BCA) CheckSum: 0000F628 ImageSize: 0000A000 Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4 fffff808`d0ff0000 fffff808`d10b6000 LXCORE (deferred) Image path: \SystemRoot\system32\drivers\LXCORE.SYS Image name: LXCORE.SYS Browse all global symbols functions data Timestamp: Sat Jul 16 10:20:02 2016 (578999D2) CheckSum: 000C59C5 ImageSize: 000C6000 Translations: 0000.04b0 0000.04e4 0409.04b0 0409.04e4

Memory.dmp in KB % Compared to Complete Complete Dump: 16,683,673 Active Dump (no VMs): 1,586,493 10% Active Dump (VMs with 8GB RAM total): 1,629,497 10% Kernel Dump (VMs with 8GB RAM total) 582,261 3% Automatic Dump (VMs with 8GB RAM total) 587,941 4% https://blogs.msdn.microsoft.com/clustering/2015/05/18/windows-server-2016-failover-clustertroubleshooting-enhancements-active-dump/

Servicing option Version OS build Availability date Current Branch (CB) Current Branch (CB) Current Branch (CB) Latest revision date 1607 14393.351 8/2/2016 10/27/2016 1511 10586.633 11/12/2015 10/11/2016 1507 (RTM) 10240.17146 7/29/2015 10/11/2016 Microsoft recommends Current Branch for Business (CBB) Current Branch for Business (CBB) Long-Term Servicing Branch (LTSB) 1511 10586.633 4/8/2016 10/11/2016 1507 (RTM) 10240.17146 7/29/2015 10/11/2016 1507 (RTM) 10240.17146 7/29/2015 10/11/2016

https://technet.microsoft.com/en-us/itpro/windows/whats-new/index https://blogs.technet.microsoft.com/sebastianklenk/2015/05/12/brand-newwindows-10-content-from-microsoft-ignite/ http://advdbg.org