Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2014, 02:51
ahmadmansoor's Avatar
ahmadmansoor ahmadmansoor is offline
Coder
 
Join Date: Feb 2006
Location: Syria
Posts: 1,045
Rept. Given: 509
Rept. Rcvd 373 Times in 142 Posts
Thanks Given: 336
Thanks Rcvd at 407 Times in 119 Posts
ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399
Question When Hardware BP fail's ?

Hi guys :
through my work in dll injection I found something strange .
when I use Hardware-BP on my PC on my ( all OS from xp till win8.1)
it work fine without any problem .
when I send this file to another PC's ( friend PC from other Country ) .
maybe this PC's have different in :
- OS lang (non English or multi lan OS ( Arabic + Englsih ).
- Hardware : CPU is different ( AMD maybe ) or intel with different speed or core- or less memory .
the Hardware BP could not reach ( or not happen ) .
so any one have any IDea's what could be happen here ?
Thanks
__________________
Ur Best Friend Ahmadmansoor
Always My Best Friend: Aaron & JMI & ZeNiX
Reply With Quote
  #2  
Old 07-06-2014, 03:02
DMichael's Avatar
DMichael DMichael is offline
Family
 
Join Date: Apr 2012
Location: Israel
Posts: 197
Rept. Given: 138
Rept. Rcvd 281 Times in 72 Posts
Thanks Given: 13
Thanks Rcvd at 31 Times in 25 Posts
DMichael Reputation: 200-299 DMichael Reputation: 200-299 DMichael Reputation: 200-299
im dont know if it helps but as i find out not all processor have support to hardware breakpoints(according to ollydbg manual)
Reply With Quote
  #3  
Old 07-06-2014, 03:12
ahmadmansoor's Avatar
ahmadmansoor ahmadmansoor is offline
Coder
 
Join Date: Feb 2006
Location: Syria
Posts: 1,045
Rept. Given: 509
Rept. Rcvd 373 Times in 142 Posts
Thanks Given: 336
Thanks Rcvd at 407 Times in 119 Posts
ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399
yes .. yes I note this .
so what could be the alternative for HW-BP on this processor except "CC"
__________________
Ur Best Friend Ahmadmansoor
Always My Best Friend: Aaron & JMI & ZeNiX
Reply With Quote
  #4  
Old 07-06-2014, 05:31
DMichael's Avatar
DMichael DMichael is offline
Family
 
Join Date: Apr 2012
Location: Israel
Posts: 197
Rept. Given: 138
Rept. Rcvd 281 Times in 72 Posts
Thanks Given: 13
Thanks Rcvd at 31 Times in 25 Posts
DMichael Reputation: 200-299 DMichael Reputation: 200-299 DMichael Reputation: 200-299
you can try memory-breakpoint or debugger breakpoint maybe there more but better listen someone who more know in this topic
Reply With Quote
The Following User Gave Reputation+1 to DMichael For This Useful Post:
ahmadmansoor (07-06-2014)
  #5  
Old 07-06-2014, 06:01
Mahmoudnia's Avatar
Mahmoudnia Mahmoudnia is offline
Family
 
Join Date: Nov 2012
Posts: 228
Rept. Given: 64
Rept. Rcvd 142 Times in 49 Posts
Thanks Given: 198
Thanks Rcvd at 283 Times in 97 Posts
Mahmoudnia Reputation: 100-199 Mahmoudnia Reputation: 100-199
ahmadmansoor,
I doubt that understand your mean , but when I have a strong target that detect any type of break points like software, hardware, memory etc, I use “EB FE” trick. maybe, you can use “EB FE” in your target.
Reply With Quote
The Following User Gave Reputation+1 to Mahmoudnia For This Useful Post:
ahmadmansoor (07-06-2014)
  #6  
Old 07-06-2014, 18:22
Kerlingen Kerlingen is offline
VIP
 
Join Date: Feb 2011
Posts: 324
Rept. Given: 0
Rept. Rcvd 276 Times in 98 Posts
Thanks Given: 0
Thanks Rcvd at 309 Times in 96 Posts
Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299 Kerlingen Reputation: 200-299
My guess would be you've disabled UAC or are logged in as admin, while your friend is using a normal user account to run your software. The debug privilege is by default only enabled for the admin user group.

The next possibility would be that one of you is running the software inside a virtual machine and the software takes a different execution path depending on the environment either for compatibility or protection reasons.

It also could be that some IPS is running on your friend's system blocking this kind of action. Or it's some poorly configured anti-virus solution. If it really is the former, he shouldn't be running some software from some friend anyways.
Reply With Quote
The Following User Gave Reputation+1 to Kerlingen For This Useful Post:
ahmadmansoor (07-06-2014)
  #7  
Old 07-06-2014, 20:25
ahmadmansoor's Avatar
ahmadmansoor ahmadmansoor is offline
Coder
 
Join Date: Feb 2006
Location: Syria
Posts: 1,045
Rept. Given: 509
Rept. Rcvd 373 Times in 142 Posts
Thanks Given: 336
Thanks Rcvd at 407 Times in 119 Posts
ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399 ahmadmansoor Reputation: 300-399
@Mahmoudnia : yes I know this trick EB FE loop but it is not as professional work ,and in another hande for hook a lot of places this is not effective and will slow programs (which is already heavy in loaded -like graphic prog- ).

@Kerlingen :
Quote:
My guess would be you've disabled UAC or are logged in as admin
put sometimes it happen on XP , I try it on my XP then send it to another friend with different OS Lang ( Spain ) (OS=XP) ,and it not work ( it have another CPU AMD ) and he use user with admin right .
Quote:
The next possibility would be that one of you is running the software inside a virtual machine and the software takes a different execution path depending on the environment either for compatibility or protection reasons.
this is right ,but what could be this affect on behaviorof the injeced dll ,and prevent hardware -BP.
Quote:
It also could be that some IPS is running on your friend's system blocking this kind of action
How could be that ...any example !!
Quote:
. Or it's some poorly configured anti-virus solution. If it really is the former,
no he not using any anti-virus .
Quote:
he shouldn't be running some software from some friend anyways.
Lol I am trust guy
__________________
Ur Best Friend Ahmadmansoor
Always My Best Friend: Aaron & JMI & ZeNiX
Reply With Quote
  #8  
Old 07-07-2014, 09:52
ZeNiX's Avatar
ZeNiX ZeNiX is offline
Administrator
 
Join Date: Feb 2009
Posts: 732
Rept. Given: 177
Rept. Rcvd 773 Times in 259 Posts
Thanks Given: 213
Thanks Rcvd at 886 Times in 243 Posts
ZeNiX Reputation: 700-899 ZeNiX Reputation: 700-899 ZeNiX Reputation: 700-899 ZeNiX Reputation: 700-899 ZeNiX Reputation: 700-899 ZeNiX Reputation: 700-899 ZeNiX Reputation: 700-899
It depends on what type/method of dll injection you use.
Reply With Quote
The Following User Gave Reputation+1 to ZeNiX For This Useful Post:
ahmadmansoor (07-11-2014)
  #9  
Old 07-07-2014, 11:53
qkumba qkumba is offline
Friend
 
Join Date: Nov 2011
Posts: 14
Rept. Given: 0
Rept. Rcvd 4 Times in 4 Posts
Thanks Given: 0
Thanks Rcvd at 3 Times in 3 Posts
qkumba Reputation: 4
I agree with Kerlingen's suggestion that a different code path is taken. In that case, it's not that the hardware breakpoints are not working, but that the addresses are never reached. You can test this by breaking at OEP+next instead, you will probably find that it works on both machines. If so, then it confirms that the environment is different between the two machines. It might be the presence or absence of other software, for example missing DLLs or similar.
So, try the OEP break and tell us what happens.
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



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


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