Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2005, 13:57
peleon peleon is offline
Friend
 
Join Date: Sep 2003
Posts: 174
Rept. Given: 0
Rept. Rcvd 7 Times in 1 Post
Thanks Given: 0
Thanks Rcvd at 7 Times in 7 Posts
peleon Reputation: 7
Attaching a process with Olly

Hello,

This might be a lame question for many of you...but it's killing me

I have a simple test application which executes an infinite loop with "JMP EIP"

Now, I attach the process with Olly and it breaks OK. If I press run, the application keeps executing the "JMP EIP". Ok, this is what I expects.

Now it comes my problem. I pause the application and I change the register EIP to point to the next instruciton after the "JMP EIP" to allow the application keep going as normal.

When I change the EIP and I press "Run", Olly shows a message "Your program is suspended and can't run. Please, resume main thread". So, Olly shows the Threads Window and I select "Resume" in the main thread. After this, Olly shows the process as "Running" but the process does not go further from the instruction after the JMP EIP. If I pause the process again, I can see that it is in the same address after the JMP EIP and the Trap Flag is set!!!

Does anyone know what's going on in here? Am I missing something or this is a Olly bug?

Thanks.
Reply With Quote
  #2  
Old 09-26-2005, 16:49
suddenLy suddenLy is offline
Friend
 
Join Date: Jan 2005
Posts: 60
Rept. Given: 2
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 1
Thanks Rcvd at 7 Times in 7 Posts
suddenLy Reputation: 3
the same phenomena occured to me.

When we click "Pause" command in the debug menu, the current control is on the olly debugger process not on the target process.

So the target process is suspended after "Pause" command, and need to "Resume" command.

I guess
Reply With Quote
  #3  
Old 09-26-2005, 18:57
peleon peleon is offline
Friend
 
Join Date: Sep 2003
Posts: 174
Rept. Given: 0
Rept. Rcvd 7 Times in 1 Post
Thanks Given: 0
Thanks Rcvd at 7 Times in 7 Posts
peleon Reputation: 7
Hello suddenLy,

Thanks for the info.

I'm a bit confused about your explanation. By "resume" command you mean when you right-click on the threads window and press "resume"? Becuase it does not work for me

More help will be welcome

THanks.
Reply With Quote
  #4  
Old 09-27-2005, 01:48
WerEsT
 
Posts: n/a
peleon
press F9 (Run)
Reply With Quote
  #5  
Old 09-27-2005, 02:01
Nacho_dj's Avatar
Nacho_dj Nacho_dj is offline
Lo*eXeTools*rd
 
Join Date: Mar 2005
Posts: 207
Rept. Given: 14
Rept. Rcvd 179 Times in 34 Posts
Thanks Given: 44
Thanks Rcvd at 135 Times in 40 Posts
Nacho_dj Reputation: 100-199 Nacho_dj Reputation: 100-199
Hello:

I do not know if that is a normal way of running of OllyDbg. I have seen the same a lot of times.

To follow the normal execution of the program, after a pause, use the CTRL+F9. Even though is stopping at every RET, it is working fine.

Try this and then tell us what happens.


Cheers

Nacho_dj
Reply With Quote
  #6  
Old 09-27-2005, 02:52
gabri3l's Avatar
gabri3l gabri3l is offline
Parity Error 0x0FF2131D
 
Join Date: Aug 2003
Location: Eastern Shore
Posts: 118
Rept. Given: 0
Rept. Rcvd 5 Times in 1 Post
Thanks Given: 8
Thanks Rcvd at 21 Times in 10 Posts
gabri3l Reputation: 5
There IS a bug in Olly's attach routine. I had a problem awhile back. The issue is that basically you can only attach with Olly once per session.
This means run your prog... attach... do whatever... Press RUN and it works... NOW if you do-not close Olly and try and attach to something else. Your threads will be suspended with no hope of resuming.
Instead you need to close Olly after attaching once to a program. And re-open it to attach correctly again.
I do not know if this will solve your problem since it sounds a little different than mine. But you can always give it a try. :/
__________________
-=RETIRED=--=http://cracking.accessroot.com=--=RETIRED=-
Reply With Quote
  #7  
Old 09-27-2005, 07:20
Jay Jay is offline
VIP
 
Join Date: Feb 2002
Posts: 249
Rept. Given: 31
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 15
Thanks Rcvd at 13 Times in 5 Posts
Jay Reputation: 3
Am I missing something, if its running in the infinite loop why pause?, F2 on it change bytes to what they should be then run.
Reply With Quote
  #8  
Old 09-27-2005, 11:41
peleon peleon is offline
Friend
 
Join Date: Sep 2003
Posts: 174
Rept. Given: 0
Rept. Rcvd 7 Times in 1 Post
Thanks Given: 0
Thanks Rcvd at 7 Times in 7 Posts
peleon Reputation: 7
Hello guys,

Thanks for your replies.

gabri3l: You are right, there seem to be a bug in Olly that only the FIRST time works

Nacho_dj: You are also right with your CTRL+F9! It stops in a few RET...but after that it works fine again. Though I have seen that if you pause it again after being attached, the CTRL+F9 command will not work again and I get the eternal suspended process message.

I guess that I will have to close Olly everytime to make it work just the FIRST time I'm happy with this, I can be very patience closing and opening

Thanks
Reply With Quote
  #9  
Old 09-28-2005, 17:28
shoooo shoooo is offline
Friend
 
Join Date: Apr 2005
Posts: 49
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
shoooo Reputation: 0
en

I found when I debug a process used IPC, I need do this with ollydbg

Quote:
Originally Posted by suddenLy
the same phenomena occured to me.

When we click "Pause" command in the debug menu, the current control is on the olly debugger process not on the target process.

So the target process is suspended after "Pause" command, and need to "Resume" command.

I guess
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
Problem debugging 32 bit system process with Olly MCKSys Argentina General Discussion 4 02-11-2015 03:35


All times are GMT +8. The time now is 21:47.


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