Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2005, 02:52
DeeYeah
 
Posts: n/a
How to debug Safedisc in OllyDbg

I have already asked this in another forum and they have said that this is impossible, because Safedisc has an own Debugger and can detect other Ring3-Debugger. I have cracked all Debugger-checks but Olly doesn't breakt at the OEP

Is there maybe a possibility for Olly?



Best Regards, DeeYeah
Reply With Quote
  #2  
Old 01-21-2005, 23:39
SystemeD SystemeD is offline
Friend
 
Join Date: Dec 2004
Posts: 68
Rept. Given: 8
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
SystemeD Reputation: 1
Hi,
I tried to do that for long time and now I believe that it's really impossible.
The problem is that Safedisc modifies some bytes of the original program (let's call them stolen bytes) with instructions as int3, ud2, sgdt xxx, etc... and it needs to correct them at runtime, doing some kind of "debugging".
When you load the program in Olly, Safecast fails to start this process and hangs on a WaitForSingleObject.
If you change the value that is pushed before this call, with one of an existing object, you will be able to continue your stepping, to reach the OEP and to dump the full unpacked original program.
In this way you can rebuild completely the IAT with Olly, but for recovering the stolen bytes you still need to use SoftIce and step into the routine that patch them.
That was my experience...
Regards,
SystemeD
Reply With Quote
  #3  
Old 01-31-2005, 05:41
SiNTAX SiNTAX is offline
Friend
 
Join Date: Sep 2002
Posts: 22
Rept. Given: 2
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
SiNTAX Reputation: 0
Quote:
Originally Posted by DeeYeah
I have cracked all Debugger-checks but Olly doesn't breakt at the OEP
Is there maybe a possibility for Olly?
Guess you didn't find them all then!

You _did_ patch secdrv too, right?
Reply With Quote
  #4  
Old 01-31-2005, 17:32
SystemeD SystemeD is offline
Friend
 
Join Date: Dec 2004
Posts: 68
Rept. Given: 8
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
SystemeD Reputation: 1
Quote:
Originally Posted by SiNTAX
You _did_ patch secdrv too, right?
Do you mean that patching secdrv.sys will allow you to debug a 'full working' debugee with Olly?
If yes, patching what?
Thanks,
SystemeD
Reply With Quote
  #5  
Old 01-31-2005, 21:02
sHice
 
Posts: n/a
load your safedisc protected app into olly then set a bpx on DebugActiveProcess with softice and start your protected app with olly.softice will break so step out of DebugActiveProcess in softice and look at the return value it's FALSE.this means safedisc can't start debugging the app because it's already debugged by olly.one app can only be debugged by one ring3 debugger as far as i know ...it's as simple as that.
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
Debug drivers -OllyDBG?SoftICE? winndy General Discussion 6 12-15-2005 22:09
OllyDbg long process Module debug Vulnerability elephant General Discussion 1 04-04-2005 21:49
Safedisc 3.0 gunterg General Discussion 4 09-23-2004 16:45


All times are GMT +8. The time now is 06:48.


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