Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2014, 03:01
Mr.reCoder Mr.reCoder is offline
Friend
 
Join Date: Oct 2014
Location: Binary Land
Posts: 14
Rept. Given: 4
Rept. Rcvd 10 Times in 8 Posts
Thanks Given: 12
Thanks Rcvd at 16 Times in 3 Posts
Mr.reCoder Reputation: 10
Obsidium protection scheme as a target!

Hi all,
now a days i was looking for a trick to set HWBP on obsidium protected target! it clears HWBPs! when using ProtectDRX in phantom it detects debugger. it seems that obsidium detects KiUserExceptionDispatcher routine patch.
any idea to bypass this? or alternate trick?
sincerely.
Reply With Quote
  #2  
Old 10-07-2014, 03:28
sendersu sendersu is offline
VIP
 
Join Date: Oct 2010
Posts: 1,305
Rept. Given: 337
Rept. Rcvd 237 Times in 127 Posts
Thanks Given: 340
Thanks Rcvd at 652 Times in 357 Posts
sendersu Reputation: 200-299 sendersu Reputation: 200-299 sendersu Reputation: 200-299
ScyllaHide plugin for Olly2?
Reply With Quote
  #3  
Old 10-07-2014, 03:39
Mr.reCoder Mr.reCoder is offline
Friend
 
Join Date: Oct 2014
Location: Binary Land
Posts: 14
Rept. Given: 4
Rept. Rcvd 10 Times in 8 Posts
Thanks Given: 12
Thanks Rcvd at 16 Times in 3 Posts
Mr.reCoder Reputation: 10
@sendersu:
So thanks, I tested it. but debugger has been detected! none of ScyllaHide in Olly1, Olly2 working fine with Obsidium! I am using Phantom+StrongOlly in win7-32 bit! and there is no problem except hwbp protection!
Reply With Quote
  #4  
Old 10-12-2014, 07:48
mm10121991 mm10121991 is offline
VIP
 
Join Date: Feb 2011
Posts: 136
Rept. Given: 29
Rept. Rcvd 56 Times in 34 Posts
Thanks Given: 7
Thanks Rcvd at 24 Times in 13 Posts
mm10121991 Reputation: 58
Yes, obsiduim has a custom way to detect hwbp. If I remember well, It sets the hwbp to some specific location in the code to trigger the seh and the seh will set some values in memory.
after returning from the seh, those values will be tested to detect if hwbps were modified.

if you want to get near oep on 4.x targets, you can use this script.
It worked on many targets but I don't guarantee that it will work always.
Use a hidden olly.No hwbp and start it from entrypoint.
Attached Files
File Type: txt ObsiduimOEP.txt (1.6 KB, 32 views)

Last edited by mm10121991; 10-12-2014 at 08:23.
Reply With Quote
The Following User Gave Reputation+1 to mm10121991 For This Useful Post:
  #5  
Old 10-12-2014, 13:53
SubzEro
 
Posts: n/a
@mm10121991 can you tell me how and which plugins to use to hide olly from obsidium
Reply With Quote
  #6  
Old 10-12-2014, 17:35
Mr.reCoder Mr.reCoder is offline
Friend
 
Join Date: Oct 2014
Location: Binary Land
Posts: 14
Rept. Given: 4
Rept. Rcvd 10 Times in 8 Posts
Thanks Given: 12
Thanks Rcvd at 16 Times in 3 Posts
Mr.reCoder Reputation: 10
@mm10121991:
thnx for your share but can't download it! but my problem is not reaching OEP it is easy and I wrote a script that can find Stolen OEP opcodes. my problem is rebuilding IAT in some targets since I can not set hwpb on IAT write! however I will try to patch OBSIDIUM protection layer that detects hwbps! it may be good if you add IAT rebuild feature in your script

@Cyber_Coder:
I use StrongOlly and Phantom Plugins in a fresh and unchanged Olly to Hide from Obsidium! but you should disable ProtectDRX option in phantom.
Reply With Quote
The Following User Gave Reputation+1 to Mr.reCoder For This Useful Post:
  #7  
Old 10-12-2014, 18:42
mm10121991 mm10121991 is offline
VIP
 
Join Date: Feb 2011
Posts: 136
Rept. Given: 29
Rept. Rcvd 56 Times in 34 Posts
Thanks Given: 7
Thanks Rcvd at 24 Times in 13 Posts
mm10121991 Reputation: 58
You don't need hwbp. After reaching oep, you just need to trace every redirected jump or call because there are no direct jumps or calls. Do not use shortcut ways. Trace the code and you will find places where to catch the redirected api.

http://ge.tt/47K8CN12/v/0
here you will find a few helper scripts to unpack obsiduim 4.x targets.
For the iat script, you have to modify this lines
mov iatb, 00B6B1B0 // start of iat
mov iate, 00B6C66C //end of iat
and make eip point to one of the redirected calls or jumps

Those scripts have worked on many 4.x targets but i don't guarantee they will always work.
Reply With Quote
The Following User Gave Reputation+1 to mm10121991 For This Useful Post:
  #8  
Old 10-12-2014, 18:49
SubzEro
 
Posts: n/a
my ollydbg always get detected i try all hide plugins and no use

Edit: ok i got it it work now thx to all

Last edited by SubzEro; 10-12-2014 at 19:44.
Reply With Quote
  #9  
Old 10-12-2014, 20:59
Mr.reCoder Mr.reCoder is offline
Friend
 
Join Date: Oct 2014
Location: Binary Land
Posts: 14
Rept. Given: 4
Rept. Rcvd 10 Times in 8 Posts
Thanks Given: 12
Thanks Rcvd at 16 Times in 3 Posts
Mr.reCoder Reputation: 10
@mm10121991
Perfect answer! so thanks.
OEP finder script needs some changes to work in win 7 32bit:
kernel32.dll -> kernelbase.dll
CreateRemoteThread -> CreateRemoteThreadEx

IAT script need more changes ;-)

@Cyber_Coder:
Disable all options in phantom.
Disable AdvEnumModule in StrongOD.
It works in win7 32bit perfectly.
Reply With Quote
The Following 2 Users Gave Reputation+1 to Mr.reCoder For This Useful Post:
mm10121991 (10-12-2014)
  #10  
Old 10-12-2014, 21:57
SubzEro
 
Posts: n/a
about CreateThread you can

Bp kernel32.CreateThread it work for me
Reply With Quote
  #11  
Old 10-13-2014, 00:45
Carbon Carbon is offline
VIP
 
Join Date: Sep 2013
Posts: 113
Rept. Given: 7
Rept. Rcvd 189 Times in 48 Posts
Thanks Given: 0
Thanks Rcvd at 60 Times in 19 Posts
Carbon Reputation: 100-199 Carbon Reputation: 100-199
ScyllaHide v1.3 should work with Obsidium on plain Olly v1 (or show me a target that doesn't work).

https://bitbucket.org/NtQuery/scyllahide/downloads/ScyllaHide_v1.3fix_Olly1.rar

You need to ignore the exceptions.
__________________
My blog: https://ntquery.wordpress.com
Reply With Quote
The Following User Gave Reputation+1 to Carbon For This Useful Post:
  #12  
Old 10-13-2014, 00:55
SubzEro
 
Posts: n/a
fail my ollydbg crash

Quote:
Originally Posted by Carbon View Post
(or show me a target that doesn't work).

Reply With Quote
  #13  
Old 10-13-2014, 07:02
Mr.reCoder Mr.reCoder is offline
Friend
 
Join Date: Oct 2014
Location: Binary Land
Posts: 14
Rept. Given: 4
Rept. Rcvd 10 Times in 8 Posts
Thanks Given: 12
Thanks Rcvd at 16 Times in 3 Posts
Mr.reCoder Reputation: 10
Quote:
Originally Posted by Cyber_Coder View Post
fail my ollydbg crash
see this video: Click Here!
target: DP Animation Maker
Use fresh copy of original olly and Phantom + StrongOD

--------------------------------------

But "ScyllaHide_v1.3fix_Olly1" fails and debugger detects!: Click Here!

Last edited by Mr.reCoder; 10-13-2014 at 07:19.
Reply With Quote
The Following User Gave Reputation+1 to Mr.reCoder For This Useful Post:
  #14  
Old 10-13-2014, 15:30
SubzEro
 
Posts: n/a
@Mr.reCoder thx you are great
Reply With Quote
  #15  
Old 10-13-2014, 20:29
Carbon Carbon is offline
VIP
 
Join Date: Sep 2013
Posts: 113
Rept. Given: 7
Rept. Rcvd 189 Times in 48 Posts
Thanks Given: 0
Thanks Rcvd at 60 Times in 19 Posts
Carbon Reputation: 100-199 Carbon Reputation: 100-199
I tested ScyllaHide on Windows XP and Windows 7 32bit. Everything works fine.

ScyllaHide on Win 7 64bit doesn't work

Obsidium is really an anti-debug hell. It uses this:
OutputDebugStringA
Illegal Instruction Exception
EnumWindows
NtQuerySystemInformation
NtQueryInformationProcess
NtClose
PEB

OutputDebugStringA is one of the last checks... something is missing on windows x64....

Somebody has any idea?
__________________
My blog: https://ntquery.wordpress.com
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
Adobe protection scheme Dark Intentions General Discussion 0 07-09-2015 03:35
Request for a good protection scheme in Java DaGoN General Discussion 7 02-20-2014 04:42


All times are GMT +8. The time now is 05:38.


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