Thanks.It works well.
Sorry for the type mistake of ~/radare.rc,I do mean I have modified
~/radarerc.But you know I migrated from Windows and could not help to add file
extention for the file name.
Actually I have downloaded the newest source code with hg.But it did not work
well.No matter which options (-w / -d) to open file,the radare editor would
always automatically change the first byte of the regular file or the
instruction of the disassemblied elf file.So I had to switched back to
20090722 edition.
------------------ Original ------------------
From: "radare-request"<[email protected]>;
Date: Wed, Nov 11, 2009 05:06 AM
To: "radare"<[email protected]>;
Subject: radare Digest, Vol 33, Issue 3
Send radare mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of radare digest..."
Today's Topics:
1. How to make radare automatically follow the eip?
(=?ISO-8859-1?B?amN5YW5n?=)
2. Re: How to make radare automatically follow the eip? (pancake)
----------------------------------------------------------------------
Message: 1
Date: Tue, 10 Nov 2009 20:11:37 +0800
From: "=?ISO-8859-1?B?amN5YW5n?=" <[email protected]>
To: "=?ISO-8859-1?B?cmFkYXJl?=" <[email protected]>
Subject: [radare] How to make radare automatically follow the eip?
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
I downloaded the radare source code
http://www.radare.org/get/shot/radare-20090722.tar.gz and installed it,but when
I try to follow the tut http://www.radare.org/swf/01. I get stuck setting
asm.follow.Radare returns,
Quote:
(config-locked: 'asm.follow' no new keys could be created
I have tried to modify the ~./radare.rc and add e asm.follow=eip to it,but this
method doesn't work.
I glanced at the config part in source code repository,the code line Code:
config_set("asm.follow", "")
is comment out and it seems this problem was caused by file lock.
I do not know much about the techniques(hash or lock) radare used to do
configuration.And learning these right away is overkill for me now.
So the question is there any solution to make radare automatically follow the
eip?
ps.My enviroment is Debian Linux/i386.The version of radare is 1.4.2b.
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.nopcode.org/private.cgi/radare-nopcode.org/attachments/20091110/caedb5ba/attachment.html>
------------------------------
Message: 2
Date: Tue, 10 Nov 2009 16:28:57 +0100
From: pancake <[email protected]>
To: toolchain to work with binary files <[email protected]>
Subject: Re: [radare] How to make radare automatically follow the eip?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
I have already read your question in woodmann, but i was quite busy at
work this
morning to reply, so here's the answer :)
in short: asm.follow has been deprecated many releases ago.
in long:
It was deprecated because following a register has no relation with
'asm', so we
moved to scr.seek, which forces to seek if the resulting number of the given
expression is far from the current screen seek.
The problem in this situation is that sometimes you loss the pointer.
Because the
screen can get many different sizes, and the internal block size doesnt
needs to
reflect the screen height (different opcode sizes, etc..) so actually
with the current
implementation of the console handle the disassembly engine has no way
to know
if the given value is far enought to seek.
If you press '.' in visual mode you will seek to the program counter
address.
If you want to follow the program counter strictly you can use the
cmd.vprompt*
environment variables to execute a seek to the address you like. f.ex:
> e cmd.vprompt=s eip
> V
You can put more complex expressions in this eval field.
The other problem you face is that you are editing the ~/.radare.rc
which is not the
rc file. You should edit the ~/.radarerc
About the source code I recommend you to always get it from mercurial. I
will
try to push snapshots after every release, but you should check if the last
snapshot is newer than the last release or what, snapshots are just for
testing
purposes. This is why you are using 1.4.2b (b is for beta) and the last
release was 1.4.2
Thanks for the feedback. Hope this helps :)
jcyang wrote:
> Hi,
> I downloaded the radare source code
> /_http://www.radare.org/get/shot/radare-20090722.tar.gz_/ and
> installed it,but when I try to follow the tut
> /_http://www.radare.org/swf/01_/. I get stuck setting
> *asm.follow*.Radare returns,
> Quote:
> (config-locked: 'asm.follow' no new keys could be created
>
> I have tried to modify the ~./radare.rc and add e asm.follow=eip to
> it,but this method doesn't work.
>
> I glanced at the config part in source code repository,the code line
> Code:
> config_set("asm.follow", "")
> is comment out and it seems this problem was caused by file lock.
>
> I do not know much about the techniques(hash or lock) radare used to
> do configuration.And learning these right away is overkill for me now.
>
> So the question is there any solution to make radare automatically
> follow the eip?
>
> ps.My enviroment is Debian Linux/i386.The version of radare is 1.4.2b.
>
> thanks.
> ------------------------------------------------------------------------
>
> _______________________________________________
> radare mailing list
> [email protected]
> http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org
>
------------------------------
_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org
End of radare Digest, Vol 33, Issue 3
*************************************_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org