View Full Version : Result of DBH
Anonymous
06-29-2004, 08:11 AM
I can't figure out what dbh does. In the docs it says that it hides the debugger, but I can't figure out what exactly that means. It doesn't make the debugger window go away, it doesn't apear to hide the debugger from the program being debugged.
If it does either of the above, I've gotta assume I'm using it wrong. If so, how do you use it?
-Chris
psyCK0
06-29-2004, 08:43 AM
DBH hides the fact that the program is debugged from the program itself. IsDebuggerPresent returns 0 when called from the debugged program. Just tested this and it works fine.
TheTwo
06-29-2004, 08:46 AM
Sweet, Thanks.
It apears that the program I am working with is a little more subtle in it's debugger detection. dbh does nothing for me. Oh well.
psyCK0
06-29-2004, 08:51 AM
it was only meant for the isdebuggerpresent. of course id be happy to add functionality to it, so if you can email me details on how your target detects olly id be happy to try and add it to dbh. =)
TheTwo
06-29-2004, 09:00 AM
Haha, yeah. I'd love to know how my target detects olly too! I have a feeling it's an int3 detection, but the code is very hard to follow (and I can't seem to find an in depth description of int3 detection).
psyCK0
06-29-2004, 09:17 AM
can it be the usual winclass name / appname detection? rename olly and try again? If the protection is a commercial one named after a small animal then it might work

TheTwo
06-29-2004, 09:28 AM
There are no small animals involved, and renaming didn't do anything. This is a commercial protection, but only a handfull of people have ever seen the program.
Before you get too into this, I gotta say I won't be able to tell you how I defeat this anti-debugger if I do (I'm all about spreading knowledge, but the company I work for isn't). EDIT: I'm really sorry. I know this place is all about spreading information. If there's anything I can do to get some info here I'll do it.
Anonymous
06-29-2004, 01:41 PM
i've tried dbh too, but it does no work! the api isdebuggerpresent returns 1 always, and the nag (vbox) catch me.
i don't know if i'm using right; the script is:
dbh
only?? or
dbh
ret
??
TheTwo
06-29-2004, 01:43 PM
I'm guessing you want:
dbh
run
psyCK0
06-29-2004, 02:33 PM
Anonymous: what program did you test it with? Just DBH should be enough - execute it and IsDebuggerPresent should return 0. If it doesn't please mail me telling what app you tested it on.
TheTwo: well, there are times when you don't spread the info. I'm all for SELECTIVE spreading. All info you are able to give will be appreciated, but of course you are free to not provide any at all. =)
TheTwo
06-29-2004, 02:51 PM
well, there are times when you don't spread the info. I'm all for SELECTIVE spreading.
If that means my suggestion was correct, I'm supprised.... it really was a guess. I've never had dbh block an anti-debugger. If I broke some kind of netiquite, I'd like to know privately. I don't (and can't) have icq, but the email I put in for registration is valid.
psyCK0
06-30-2004, 02:51 AM
TheTwo: I think you are reading hidden meanings where there are none. My comment about selective information spreading had nothing to do with this thread in particular. =)
Anonymous
06-30-2004, 04:25 AM
the apps are a spanish program for printing labels protected with vbox, and another protected with asprotect 1.23
i made a .txt with dbh in a line only, ran debugger till ep, execute the script and f9, and..... nag...
i did it right?
psyCK0
06-30-2004, 05:26 AM
write a test prog that calls IsDebuggerPresent and test with it
TheTwo
06-30-2004, 03:05 PM
I think you are reading hidden meanings where there are none. My comment about selective information spreading had nothing to do with this thread in particular. =)
Ahhhh.. Silly me. I get it now.
Anonymous
07-04-2004, 08:45 AM
i made a test in windows98 and neither dbh nor isdebuggerpresent plugin didnīt work.
in both cases isdebuggerpresent returned 1.
i use ollydbg 1.10b, last version ollyscript, win98, and last version isdebuggerpresent plugin.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.