diff --git a/src/analysis/calling_conventions.md b/src/analysis/calling_conventions.md index 6f37a8f8..98181037 100644 --- a/src/analysis/calling_conventions.md +++ b/src/analysis/calling_conventions.md @@ -26,6 +26,7 @@ It is used also as a guide for basic function prototype and type propagation. amd64 ms ``` + * To display function prototype of standard library functions you have `afcf` command ``` diff --git a/src/configuration/files.md b/src/configuration/files.md index 882b4064..ca05e00c 100644 --- a/src/configuration/files.md +++ b/src/configuration/files.md @@ -4,19 +4,23 @@ Use `r2 -H` to list all the environment variables that matter to know where it w be looking for files. Those paths depend on the way (and operating system) you have built r2 for. -``` -R2_PREFIX=/usr -MAGICPATH=/usr/share/radare2/2.8.0-git/magic -PREFIX=/usr -INCDIR=/usr/include/libr -LIBDIR=/usr/lib64 -LIBEXT=so -RCONFIGHOME=/home/user/.config/radare2 -RDATAHOME=/home/user/.local/share/radare2 -RCACHEHOME=/home/user/.cache/radare2 -LIBR_PLUGINS=/usr/lib/radare2/2.8.0-git -USER_PLUGINS=/home/user/.local/share/radare2/plugins -USER_ZIGNS=/home/user/.local/share/radare2/zigns +```sh +$ r2 -H +R2_VERSION=5.8.9 +R2_PREFIX=/usr/local +R2_MAGICPATH=/usr/local/share/radare2/5.8.9/magic +R2_INCDIR=/usr/local/include/libr +R2_BINDIR=/usr/local/bin +R2_LIBDIR=/usr/local/lib +R2_LIBEXT=dylib +R2_RCFILE=/Users/pancake/.radare2rc +R2_RDATAHOME=/Users/pancake/.local/share/radare2 +R2_HISTORY=/Users/pancake/.cache/radare2/history +R2_CONFIG_HOME=/Users/pancake/.config//radare2 +R2_CACHE_HOME=/Users/pancake/.cache/radare2 +R2_LIBR_PLUGINS=/usr/local/lib/radare2/5.8.9 +R2_USER_PLUGINS=/Users/pancake/.local/share/radare2/plugins +R2_ZIGNS_HOME=/Users/pancake/.local/share//radare2/zigns ``` ## RC Files @@ -25,7 +29,7 @@ RC files are r2 scripts that are loaded at startup time. Those files must be in ### System -radare2 will first try to load /usr/share/radare2/radare2rc +radare2 will first try to load `/usr/share/radare2/radare2rc` ### Your Home @@ -35,7 +39,8 @@ Each user in the system can have its own r2 scripts to run on startup to select * ~/.config/radare2/radare2rc * ~/.config/radare2/radare2rc.d/ +The path to this file can be also specified with the `R2_RCFILE` environment variable. + ### Target file -If you want to run a script everytime you open a file, just create a file with the same name of the file -but appending `.r2` to it. \ No newline at end of file +If you want to run a script everytime you open a file, just create a file with the same name of the file but appending `.r2` to it. diff --git a/src/first_steps/history.md b/src/first_steps/history.md index d3fbad6a..59b1ccbf 100644 --- a/src/first_steps/history.md +++ b/src/first_steps/history.md @@ -1,6 +1,6 @@ ## History -In 2006, Sergi Àlvarez (aka pancake) was working as a forensic analyst. Since he wasn't allowed to use the company software for his personal needs, he decided to write a small tool-a hexadecimal editor-with very basic characteristics: +In 2006, Sergi Àlvarez (aka pancake) is the author of radare and radare2, the project started when he was working as a forensic analyst. Since he wasn't allowed to use the company software for his personal needs, he decided to write a small tool-a hexadecimal editor-with very basic characteristics: * be extremely portable (unix friendly, command line, c, small) * open disk devices, this is using 64bit offsets diff --git a/src/intro.md b/src/intro.md index ef6ab0ab..1f71f30d 100644 --- a/src/intro.md +++ b/src/intro.md @@ -1,8 +1,6 @@ # Introduction -This book is an updated version (started by maijin) of the original -radare1 book (written by pancake). Which is actively maintained and -updated by many contributors over the Internet. +This book is an updated version (started by maijin) of the original radare1 book (written by pancake). Which is actively maintained and updated by many contributors over the Internet. Check the Github site to add new contents or fix typos: