Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- beet:/tmp$ cat helloworld.c
- #include <stdio.h>
- int main()
- {
- char * hw = "Hello, World!\n";
- printf("%s",hw);
- return 0;
- }
- beet:/tmp$ gcc helloworld.c -o helloworld_variable
- beet:/tmp$ ./helloworld_variable
- Hello, World!
- beet:/tmp$ cp helloworld_variable modified_helloworld_variable
- beet:/tmp$ ./modified_helloworld_variable
- Hello, World!
- beet:/tmp$ r2 -w modified_helloworld_variable
- -- Remember to maintain your ~/.radare_history
- [0x00400430]> iz
- vaddr=0x004005e4 paddr=0x000005e4 ordinal=000 sz=15 len=14 section=.rodata type=ascii string=Hello, World!\n
- [0x00400430]> s 0x4005e4
- [0x004005e4]> w Good, Bye!!!!
- [0x004005e4]> q
- beet:/tmp$
- beet:/tmp$ ./modified_helloworld_variable
- Good, Bye!!!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement