找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 5018|回复: 3

[PDF]The Art of Bootkit Development

[复制链接]

857

主题

2632

回帖

2

精华

管理员

此生无悔入华夏,  长居日耳曼尼亚。  

积分
36130
发表于 2013-1-23 01:40:06 | 显示全部楼层 |阅读模式
一本比较新的PDF,里面内容涉及到WIN8的BOOTKIT设计,以及一些神秘的BIOS模拟器函数(x86BiosXXXX)的用法以及注意事项。可惜只有32位的内容,没有64位的内容。

精彩片段:
MBR Verification on Bugcheck
Verification on bugcheck is way more complicated, since the bugcheck handler runs with DIRQL and therefore cannot use nearly
the complete kernel API.
Registering a bugcheck callback can be done through KeRegisterBugCheckCallback.
Normal Windows functions (such as ZwReadFile) or direct calling of the disk driver cannot be used – but the Vista internal BIOS
emulation can. Originally this BIOS emulation was written to support graphic functions (VESA BIOS Extension) for 64-bit in case
a dedicated driver is not available. It is a full emulator (technically an interpreter) that keeps certain memory ranges from the
16-bit mode and executes BIOS functions sandboxed.
It only reserves 4 KB of memory to allocate (using x86BiosAllocateBuffer), so that is everything someone has to deal with. Even
if this seems unbelievable, this actually works in the bugcheck handler:
    // read the MBR
DiskAddressPacket.op = 0x10;
DiskAddressPacket.zero = 0;
DiskAddressPacket.nsector = 1;
DiskAddressPacket.addr = Offset;
DiskAddressPacket.segment = Segment;
DiskAddressPacket.s1 = 0;
DiskAddressPacket.s2 = 0;
// copy the disk address packet
x86BiosWriteMemory(DapSegment, DapOffset, &DiskAddressPacket, 0x10);
// execute the read command (Extended Read)
regs.Eax = 0x4200;
regs.Edx = 0x0080;
regs.SegDs = DapSegment;
regs.Esi = DapOffset;
Status = x86BiosCall(0x13, &regs);

感慨一句:玩WINDOWS KERNEL,要多上洋人的网站淘宝,好过去一些国内网站吃某些所谓“大牛”吐出来的残渣剩羹。

The Art of Bootkit Development.rar

1.47 MB, 下载次数: 7310

0

主题

94

回帖

0

精华

钻石会员

积分
3031
发表于 2013-1-24 10:39:05 | 显示全部楼层
虽然内容对我来说还太艰深,但谢谢分享。

7

主题

414

回帖

1

精华

铂金会员

积分
2173
发表于 2013-4-8 21:25:37 | 显示全部楼层
感謝分享

0

主题

8

回帖

0

精华

铜牌会员

积分
76
发表于 2013-4-9 09:13:01 | 显示全部楼层
希望楼主可以推荐一些国外比较好的论坛或者网站,新手知识面太窄,很多时候都找不到门路
您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

快速回复 返回顶部 返回列表