首页
社区
课程
招聘
[求助]有人逆向改过BIOS里SMM LOCK么?
发表于: 2010-6-6 02:47 7952

[求助]有人逆向改过BIOS里SMM LOCK么?

2010-6-6 02:47
7952
我估计要改个DELL机器的BIOS中的SMM LOCK。如果有人做过,希望能指点下。
其他机器也可以。

多谢。

[培训]科锐逆向工程师培训第53期2025年7月8日开班!

收藏
免费 0
支持
分享
最新回复 (6)
雪    币: 22
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
a32K9s2c8@1M7q4)9K6b7g2)9J5c8W2)9J5c8Y4N6%4N6#2)9J5k6h3y4G2M7X3g2T1L8$3!0@1i4K6u0W2L8%4u0Y4

希望对你有帮助,尽快自己搞明白,看看别人的代码也许就会很快明了了
2010-6-6 10:44
0
雪    币: 186
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
COREBOOT是开源了,不是逆向。主要是COREBOOT支持的主板还是比较少,大部分都是很老的主板。。。

搞硬件相关就是这个麻烦。

不过还是谢谢LS
2010-6-6 13:07
0
雪    币: 23
活跃值: (25)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
不会 还是支持你
2010-6-6 19:16
0
雪    币: 186
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
谢谢LS............
2010-6-6 20:42
0
雪    币: 296
活跃值: (89)
能力值: ( LV15,RANK:340 )
在线值:
发帖
回帖
粉丝
6
在phrack的一篇 A Real SMM Rootkit 中看过如何去除BIOS中D_LCK位,不过讲的是ASUS P5Q的例子,Dell的BIOS可能没有专门的工具来解压缩。
没有实际操作过,怕误导你我就不翻译,直接贴原文:b11K9s2c8@1M7q4)9K6b7g2)9J5c8W2)9J5c8Y4N6%4N6#2)9J5k6i4m8Z5M7X3q4U0K9#2)9J5k6h3y4G2L8g2)9J5c8X3W2K6M7%4g2W2M7#2)9J5k6h3S2@1L8h3I4Q4x3@1k6A6M7%4y4#2k6g2)9K6c8o6j5$3i4K6t1$3K9h3c8Q4x3@1b7I4x3b7`.`.

If you are unfortunate and BIOS locks SMRAM and there are no other flaw
to use then BIOS firmware can be modified such that it doesn't set D_LCK
any more. After re-flashing modified BIOS ROM binary back and booting the
system from this BIOS, SMRAM will not be locked and can be dumped from
the OS. This, surely, works only if BIOS firmware isn't digitally signed.
Oh, we forgot that almost no motherboards use digitally signed non-EFI
BIOS firmware.

Here's a hint how to find where BIOS firmware sets D_LCK bit. BIOS
firmware is most likely using legacy I/O access to PCI configuration
registers using 0xCF8/0xCFC ports. To access SMRAMC register BIOS
should first write value 0x8000009C to 0xCF8 address port and then a
needed value (typically, 0x1A to lock SMRAM) to 0xCFC data port.

2. There's another, probably simpler, way to disassemble SMI handlers, that
doesn't require access to SMRAM at run-time.

2.1. Dump BIOS firmware binary from BIOS ROM using Flash programmer or
simply download the latest BIOS binary from vendor's web site ;). For
ASUS P5Q motherboard download P5Q-ASUS-PRO-1613.ROM file.

2.2. Most of the BIOS firmware including Main BIOS module which
contains SMI handlers is compressed. Use tools provided by vendor to
extract/decompress the Main BIOS module. ASUS BIOS is based on AMI BIOS
so we used AMIBIOS BIOS Module Manipulation Utility, MMTool.exe, to
extract the Main BIOS module. Open downloaded .ROM file in MMTool,
choose to extract "Single Link Arch BIOS" module (ID=1Bh), check "In
uncompressed form" option and save it. This is uncompressed Main BIOS
module containing SMI handlers.

Check out a resource on modifying AMI BIOS on The Rebels Heaven forum
[ami_mod].

2.3. Once the Main BIOS module is extracted you can start disassembling
it to find SMI handlers (for example, using HIEW or IDA Pro). In this
paper we hope to provide a starting point for analyzing SMI handlers.
...


另外,刷这种改过的BIOS有危险,能避免最好避免
2010-6-6 22:14
0
雪    币: 186
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
刚看到LS的帖子,多谢
2010-7-1 11:16
0
游客
登录 | 注册 方可回帖
返回