Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2005, 18:02
peleon peleon is offline
Friend
 
Join Date: Sep 2003
Posts: 174
Rept. Given: 0
Rept. Rcvd 7 Times in 1 Post
Thanks Given: 0
Thanks Rcvd at 7 Times in 7 Posts
peleon Reputation: 7
Olly & .NET

Hello,

I have started playing with .NET and I'd like to debug a bit inside them to have a closer inside using Ollydbg.

When I load a .NET EXE in Olly, it won't stop in .NET entry point (Jmp _CorExeMain). I have tried with all kind of stops options when application loaded but nothing, the application just starts running and Olly does not break on it.

Anyone has managed to do it?

Thanks.
Reply With Quote
  #2  
Old 11-09-2005, 20:47
Human
 
Posts: n/a
im not expert in .net field, but isnt .net something like java? so really this pe exe isnt exe its just like dos info in PE file, this program cant be run under dos, so same here with pe, you need .net enviroment like java. so only way is wait for olly2 or debug .net tools that start this exe, or maybe look on .net exe specification and it maybe has additional structure like tls in execryptor
Reply With Quote
  #3  
Old 11-09-2005, 23:42
Hero Hero is offline
VIP
 
Join Date: Jan 2005
Posts: 226
Rept. Given: 2
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 5
Thanks Rcvd at 2 Times in 2 Posts
Hero Reputation: 1
It is strange....
As I remember .NET is IL not normal assembly,then I don't think that you could debug it using olly.
Isn't it?

sincerely yours
__________________
I should look out my posts,or JMI gets mad on me!
Reply With Quote
  #4  
Old 11-10-2005, 21:12
omega_red
 
Posts: n/a
The _CorExeMain function is indeed the main entrypoint of .NET runtime loader. However, things are a little more complicated. On Windows 2000, the Windows PE loader treated .NET exes just like normal ones regarding this import - you could put a BP there and it would stop. With XP though, the Windows PE loader handles .NET assemblies internally, and don't call/use that entry in import table.

Besides, like others said, .NET assemblies are just bytecode compiled to native instructions in runtime. So, you can't use x86 debuggers (well, you can, but you'd be tracing framework's compiler/runtime Use, for example, cordbg from .NET SDK (MSDN article)
Reply With Quote
  #5  
Old 11-11-2005, 14:56
vodu
 
Posts: n/a
You could not trace dot net file by OllyDbg or SoftICE. It is not a normal PE files. Indeed program runs in Virtual Machine of dot net core. It is clear by normal assembly debugger, you do not have any success to trace by OllyDbg. It has IL assembly langauge codes which run in a VM such as Java VM. If you want to trace a dot net program, the following link might be useful to you:

http://www.smidgeonsoft.prohosting.com/pebrowse-pro-interactive-debugger.html
Reply With Quote
  #6  
Old 11-11-2005, 17:09
peleon peleon is offline
Friend
 
Join Date: Sep 2003
Posts: 174
Rept. Given: 0
Rept. Rcvd 7 Times in 1 Post
Thanks Given: 0
Thanks Rcvd at 7 Times in 7 Posts
peleon Reputation: 7
Hello guys,

Thanks for your feedbacks.

Well, I know about Olly is not the one to trace over assemblies, but I just wanted to debug inside the .NET framework (mscorlib, etc), so I can see how metadata is read, strong name bullshit, etc Just to have an internal look how the misterious .NET runs inside

Vodu: thanks for the pebrowse link, I used it but I have to learn more about it. I am so used to the nice Olly that is difficult for the to debug with other debuggers

Thanks.
Reply With Quote
  #7  
Old 11-11-2005, 22:44
vodu
 
Posts: n/a
Quote:
Originally Posted by peleon
Vodu: thanks for the pebrowse link, I used it but I have to learn more about it. I am so used to the nice Olly that is difficult for the to debug with other debuggers
For tracing .NET file it has also a tutorial:
http://www.smidgeonsoft.prohosting.com/documentation/pebrowse-pro-interactive-debugger-tutorial-introduction.html

or you can take a look at:
http://www.smidgeonsoft.prohosting.com/documentation.html

Last edited by vodu; 11-11-2005 at 22:47.
Reply With Quote
  #8  
Old 11-13-2005, 10:15
NeOXOeN NeOXOeN is offline
Friend
 
Join Date: Jan 2005
Posts: 273
Rept. Given: 2
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 2
Thanks Rcvd at 18 Times in 18 Posts
NeOXOeN Reputation: 3
vodu thx i was looking for something like this for long time...

I think pebrowse-pro-interactive-debugger.html isnt good for debuger NeT.. but it would be nice to see this option in olly.. i think some plugin would be nice :P

thx..
bye
Reply With Quote
  #9  
Old 06-21-2007, 09:13
nimda2k3
 
Posts: n/a
Unhappy

Quote:
Originally Posted by NeOXOeN
vodu thx i was looking for something like this for long time...

I think pebrowse-pro-interactive-debugger.html isnt good for debuger NeT.. but it would be nice to see this option in olly.. i think some plugin would be nice :P

thx..
bye
So do I !
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Olly pdk 1.08 ragdog General Discussion 4 01-05-2014 21:16
Any news on Olly? theCaller General Discussion 24 10-11-2012 15:02
try to open this with olly taos General Discussion 6 07-14-2005 07:58
Olly BPM apex General Discussion 1 02-25-2005 15:02


All times are GMT +8. The time now is 00:16.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )