吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 7245|回复: 0
收起左侧

[转贴] Reflector Error:Module '…' contains zero or multiple module definitions.”

[复制链接]
lkou 发表于 2011-7-21 08:28
This will also prevent loading in Reflector. This happens because inside Tables we have 2 modules while we should have only one (the second one is bad)!

Module Table it's a one row table representing the current assembly.
Columns:
• Generation (2-byte value, reserved, shall be zero)
• Name (index into String heap), can be a word or a dword
• Mvid (index into Guid heap; simply a Guid used to distinguish between two versions of the same module)
• EncId (index into Guid heap, reserved, shall be zero)
• EncBaseId (index into Guid heap, reserved, shall be zero)

What must be done:
A. We load the file inside CFF Explorer, and we go at Metadata Stream->Tables->Module.
We go at second module (the one which must be cleaned) and we note the offset of first member (I’ve note this value1)
We go at last table (usualy Nested Classes) and at last member from this, we add 2 (the size of this member) to offset of him and we keep this value (I’ve note this value2). This is the file offset where Tables ends.

The module table can have the size: (I’ve note this size_of_module_table)
- 0C if Name is an dword (in most cases)
- 0A if Name is an word

We have two options for removing bad module table:
a. We load the file inside WinHex and we copy the hole block between value1 and value2 at the file offset (value1-size_of_module_table)
or b. We load the file inside WinHex and we add zero bytes equals whit the size of module table (0C) at file offset value2 (at the end of Tables).
We delete the table of second module (the table of course has the size 0C).

B. We search for the ASCII string '#Blob'
Now after that will come some other string which starts whit ‘#’, as exemple ‘#US’, ‘#GUID’.
At start of last string which starts whit '#' +020 (we are talking about hexazecimal numbers) is the number of modules (the old value is 2) - set number of modules to 1

免费评分

参与人数 1热心值 +1 收起 理由
Smallhorse + 1 Lkou老大就是牛!虽然没看懂个所以然,不过.

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-5-2 20:50

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

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