Register for your free account! | Forgot your password?

You last visited: Today at 08:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



help me :D

Discussion on help me :D within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
Hatish's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 92
Received Thanks: 12
help me :D

Hi how i can change register with ollydbg?
for example i want to change a register at this addres 0012412(is not real)
for example eax register... how i can? and how i can save the file with register at location change?
Hatish is offline  
Old 06/30/2012, 14:51   #2
 
2n0w's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 115
Received Thanks: 18
Just doubleclick the register in the registers window to edit it.
To save this, you must use a mov instruction, I think.
2n0w is offline  
Old 06/30/2012, 14:59   #3
 
elite*gold: 0
Join Date: Jun 2012
Posts: 187
Received Thanks: 58
You cannot safe the register at a location. You can only modify the code where you want a register to have a certain value by replacing opcodes with <mov eax, yourvalue> (or any other suitable way like pop).
tnd0 is offline  
Old 06/30/2012, 20:03   #4


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
Or you place a breakpoint and do it manually via OllyDbg
MrSm!th is offline  
Old 07/01/2012, 12:12   #5
 
Hatish's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 92
Received Thanks: 12
Quote:
Originally Posted by MrSm!th View Post
Or you place a breakpoint and do it manually via OllyDbg
and how? i place breakpoint and how i can do it manually?
Hatish is offline  
Old 07/01/2012, 12:52   #6
 
elite*gold: 0
Join Date: Jun 2012
Posts: 187
Received Thanks: 58
I think what he wants is to 'save' the registerchange he made in OllyDbg to the executable. And that does not work unless you modify the opcodes or leave OllyDbg running every time you launch your application.
tnd0 is offline  
Old 07/01/2012, 20:31   #7


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
Well, since he still asks how to do it manually, he might just want to edit it temporarily.

@Topic:

You can edit the value of a register by doubleclicking on the register you want to edit in the top right corner of ODbg.
If you want to make that change "permanent" so that it is always done automatically without you having to start Olly, then you have to patch at the address and place a "mov register_to_edit, value", as the others already mentioned.
MrSm!th is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 08:16.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.