sha0 wrote:
Hi, I think it will be easy and useful to do a case-insensitive search
(like grep -i) and unicode search
sample:
[0x00000000]> /i alternategothic2
001 0x00000026 hit0_1 AlternateGothic2 BT
yay :) good idea. I have implemented it in the mercurial repository.
pull it and enjoy :)
abuot the unicode search..it is not an easy thing. there are several
ways to encode a character en utf8,16,32 (and many other weird character
encodings) They are broken by design.
If you need to find a wide-char string just use /w (this is like in w32
strings).
If you need a utf-X search, use iconv, get the bytes and search them. In
r2 i'll write some searching widgets with encoding conversions similar
to what encase does. Implement this in r1 can be a mess...well you can
send me an rsc script that
does the iconv+search in a shot. it shouldnt be that hard :) but i dont
plan to
do it in core.
demo:
[0x08049B20]> /i LIB
001 0x00000155 hit0_1 lib/ld-linux.so.2
002 0x00000ba5 hit0_2 librt.so.1__gmon_st
003 0x00000be1 hit0_3 libselinux.so.1_ini
004 0x00000c11 hit0_4 libacl.so.1acl_exte
005 0x00000c2f hit0_5 libc.so.6_IO_stdin_
006 0x00000f93 hit0_6 libc_start_maindirf
007 0x00000ff6 hit0_7 LIBC_2.2ACL_1.0GLI
008 0x00001008 hit0_8 LIBC_2.2.3GLIBC_2.4
009 0x00001014 hit0_9 LIBC_2.4GLIBC_2.3G
010 0x0000101e hit0_10 LIBC_2.3GLIBC_2.3.4
011 0x00001028 hit0_11 LIBC_2.3.4GLIBC_2.1
012 0x00001034 hit0_12 LIBC_2.1GLIBC_2.1.3
013 0x0000103e hit0_13 LIBC_2.1.3GLIBC_2.0
014 0x0000104a hit0_14 LIBC_2.0
--pancake
_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org