Reverse Engineering RET Homepage RET Members Reverse Engineering Projects Reverse Engineering Papers Reversing Challenges Reverser Tools RET Re-Search Engine Reverse Engineering Forum Reverse Engineering Links

Go Back   Reverse Engineering Team Board > Reverse Engineering Board > .NET Reverse Engineering
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 02-09-2011, 05:20 AM
golubev golubev is offline
Junior Member
 
Join Date: Feb 2011
Posts: 2
Default enum fields

Hello all......
Greeting from a newbie

This is decompiled with Reflector:
Quote:
public enum AttributeTargets
{
All = 0x7fff,
Assembly = 1,
Class = 4,
Constructor = 0x20,
Delegate = 0x1000,
Enum = 0x10,
Event = 0x200,
Field = 0x100,
GenericParameter = 0x4000,
Interface = 0x400,
Method = 0x40,
Module = 2,
Parameter = 0x800,
Property = 0x80,
ReturnValue = 0x2000,
Struct = 8
}
I want to learn to change a constant value within enum.
Where are those constants located in an exe/dll? with ida I can only see FF FF FF FF FF on that position. Reflexil shows nothing
Reply With Quote
  #2  
Old 02-09-2011, 05:46 AM
kao kao is offline
Senior Member
 
Join Date: Sep 2007
Posts: 184
Default

Look in .NET assembly metadata, tables Field and Constant to find which enum member is stored where, then change the value in #Blob stream.
In my opinion, the best tool for such task is CFF Explorer, best reference: ECMA-335 specification.
Reply With Quote
  #3  
Old 02-09-2011, 06:36 AM
golubev golubev is offline
Junior Member
 
Join Date: Feb 2011
Posts: 2
Default

Thanks, I really am learning something from this!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump





Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.