Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2014, 13:33
BlackWhite BlackWhite is offline
Friend
 
Join Date: Apr 2013
Posts: 85
Rept. Given: 4
Rept. Rcvd 14 Times in 6 Posts
Thanks Given: 14
Thanks Rcvd at 56 Times in 25 Posts
BlackWhite Reputation: 14
different DLLs have same udd name in OllyDbg

There are 2 DLLs which have same names but have different paths.
OllyDbg will put only one udd file for these DLLs in its udd folder.
If I first set some breakpoints on one DLL, then I set some breakpoints
on the other, conflicts will occur. When I'm back with the first DLL,
the beakpoints set before all disapear.
Anyone knows how to solve this problem?
Thank you.
Reply With Quote
  #2  
Old 07-29-2014, 15:19
Codeman's Avatar
Codeman Codeman is offline
Family
 
Join Date: May 2014
Posts: 80
Rept. Given: 15
Rept. Rcvd 38 Times in 15 Posts
Thanks Given: 58
Thanks Rcvd at 85 Times in 27 Posts
Codeman Reputation: 38
I haven't encountered such a software before. I don't know the actual solution, but I really also wonder it.

BTW if it isn't necessary to analyze both of them simultaneously, you can do it one by one.
Reply With Quote
  #3  
Old 07-29-2014, 16:12
wilson bibe wilson bibe is offline
VIP
 
Join Date: Nov 2012
Posts: 506
Rept. Given: 493
Rept. Rcvd 439 Times in 180 Posts
Thanks Given: 1,166
Thanks Rcvd at 179 Times in 114 Posts
wilson bibe Reputation: 400-499 wilson bibe Reputation: 400-499 wilson bibe Reputation: 400-499 wilson bibe Reputation: 400-499 wilson bibe Reputation: 400-499
Try use the DLLLoader01 tool developed by Mr.eXodia in attached for this two dll files and attach the process in olly, it's only an idea.
Regards
Attached Files
File Type: rar DLLLoader01.rar (6.7 KB, 6 views)
Reply With Quote
The Following User Gave Reputation+1 to wilson bibe For This Useful Post:
BlackWhite (07-29-2014)
  #4  
Old 07-29-2014, 20:37
TempoMat TempoMat is offline
Friend
 
Join Date: Jan 2006
Posts: 89
Rept. Given: 10
Rept. Rcvd 6 Times in 6 Posts
Thanks Given: 4
Thanks Rcvd at 28 Times in 21 Posts
TempoMat Reputation: 6
That is really strange, because the file paths (in this case the dll) and the respective sizes are stored in the udd.
Normally Olly appends "_x" where x is a number to a new file with different path.
Example with MyDll.dll from 2 different paths, you should find in the UDD-Directory MyDll.udd and MyDll_1.udd.

Here is a suggestion:

Check the option "Backup old .udd files" under the Menu Options->Appearance->Directories

Restart Olly and run two sections with each of the dlls. After that there should be at least one MyDll.udd and another MyDll.bak in your current situation.
Open these two files in a HexEditor and check from Offset 62 (decimal) for their paths and size.

Regards
Reply With Quote
The Following User Gave Reputation+1 to TempoMat For This Useful Post:
BlackWhite (07-29-2014)
  #5  
Old 07-29-2014, 21:54
BlackWhite BlackWhite is offline
Friend
 
Join Date: Apr 2013
Posts: 85
Rept. Given: 4
Rept. Rcvd 14 Times in 6 Posts
Thanks Given: 14
Thanks Rcvd at 56 Times in 25 Posts
BlackWhite Reputation: 14
Quote:
Originally Posted by Codeman View Post
I haven't encountered such a software before. I don't know the actual solution, but I really also wonder it.

BTW if it isn't necessary to analyze both of them simultaneously, you can do it one by one.
I actually analyze them one by one,
when I'm done with the 2nd one and
back to the 1st one, the breakpoints
dispear for they are actually breakpoints
set for the 2nd dll and thus be disabled
by OllyDbg.
Reply With Quote
  #6  
Old 07-29-2014, 22:00
BlackWhite BlackWhite is offline
Friend
 
Join Date: Apr 2013
Posts: 85
Rept. Given: 4
Rept. Rcvd 14 Times in 6 Posts
Thanks Given: 14
Thanks Rcvd at 56 Times in 25 Posts
BlackWhite Reputation: 14
Quote:
Originally Posted by TempoMat View Post
That is really strange, because the file paths (in this case the dll) and the respective sizes are stored in the udd.
Normally Olly appends "_x" where x is a number to a new file with different path.
Example with MyDll.dll from 2 different paths, you should find in the UDD-Directory MyDll.udd and MyDll_1.udd.

Here is a suggestion:

Check the option "Backup old .udd files" under the Menu Options->Appearance->Directories

Restart Olly and run two sections with each of the dlls. After that there should be at least one MyDll.udd and another MyDll.bak in your current situation.
Open these two files in a HexEditor and check from Offset 62 (decimal) for their paths and size.

Regards
Yes, there are MyDll.udd and MyDll.bak in udd folder,
but, OllyDbg seems not able to switch between them
correctly. Is there any settings that can force OllyDbg
to create both MyDll.udd and MyDll_1.udd?
Or will you please send me a copy of OlldyDbg used by
yourself? Thank you.
Reply With Quote
  #7  
Old 07-30-2014, 17:36
wilson bibe wilson bibe is offline
VIP
 
Join Date: Nov 2012
Posts: 506
Rept. Given: 493
Rept. Rcvd 439 Times in 180 Posts
Thanks Given: 1,166
Thanks Rcvd at 179 Times in 114 Posts
wilson bibe Reputation: 400-499 wilson bibe Reputation: 400-499 wilson bibe Reputation: 400-499 wilson bibe Reputation: 400-499 wilson bibe Reputation: 400-499
Hi
Do you have this PLUGIN? "Break Point Manager", you can save your breakpoints for the first dll file and use for the second dll fie, only for suggestion uncheck in the path dirctories the "backcup old .udd files". To use this plugin you need set it for your olly changing "OLLYDBG.EXE" for the name of your olly(executable) in any hexeditor ok?
Regards
Attached Files
File Type: rar Break Point Manager.rar (36.6 KB, 10 views)
Reply With Quote
  #8  
Old 07-31-2014, 00:59
quygia128's Avatar
quygia128 quygia128 is offline
Family
 
Join Date: Apr 2011
Location: SomeWhere
Posts: 109
Rept. Given: 243
Rept. Rcvd 182 Times in 47 Posts
Thanks Given: 122
Thanks Rcvd at 30 Times in 19 Posts
quygia128 Reputation: 100-199 quygia128 Reputation: 100-199
The first recommended u use LCB Plugin to save your bps. The best plugin.

when you load a file into ollydbg(also so load import library from mainmodule), but imagebase maybe changes on the next loading one's library. OllyDbg have been stored info of Breakpoint by address(VA) which isn't valid with new imagebase.
Reply With Quote
The Following User Gave Reputation+1 to quygia128 For This Useful Post:
BlackWhite (08-04-2014)
  #9  
Old 07-31-2014, 03:04
RedBlkJck RedBlkJck is offline
Family
 
Join Date: Oct 2011
Posts: 99
Rept. Given: 64
Rept. Rcvd 80 Times in 43 Posts
Thanks Given: 25
Thanks Rcvd at 11 Times in 9 Posts
RedBlkJck Reputation: 80
a plus 1 for the LCB plugin, it works good for this.
You can also run a second copy of olly and share some of the same paths (plugins scripts symbols) except for the udd folder. This might be better if you are trying to do debug both at the same time.
Reply With Quote
Reply


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
DLLs loading sequence te$ter General Discussion 6 10-30-2013 18:52
How to patch .NET DLLs? Newbie_Cracker General Discussion 28 09-26-2005 04:52
Unpacking DLLs thomasantony General Discussion 22 08-18-2005 05:34
DLLs armmad8 General Discussion 2 06-09-2005 22:13


All times are GMT +8. The time now is 15:36.


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