Here's a stupid demonstration about how to find and replace some strings on a file. you can also replace binary values just using /x and wx command in the cmd.hit eval variable.
there is no support to make the file grow/shrink depending on the length of the entered string. But I plan this for 0.9.5 release too $ cp /bin/ls ls2 $ ./radare -w ls2 warning: Opening file in read-write mode open rw ls2 Message of the day: Print the contents of the current block with the 'p' command [0x00000000]> / lib 001 0x00000155 hit0_0 lib/ld-linux.so.2 002 0x000009e1 hit0_1 librt.so.1clock_get 003 0x00000a1d hit0_2 libc.so.6strcpyioc 004 0x00000d28 hit0_3 libc_start_mainstrl [0x00000000]> eval cmd.hit=w pop [0x00000000]> /lib 001 0x00000155 hit0_0 pop/ld-linux.so.2 002 0x000009e1 hit0_1 poprt.so.1clock_get 003 0x00000a1d hit0_2 popc.so.6strcpyioc 004 0x00000d28 hit0_3 popc_start_mainstrl [0x00000000]> q --pancake _______________________________________________ radare mailing list [email protected] http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org
