Remove -zz warning and add doc/strings early draft

This commit is contained in:
pancake 2014-09-08 23:32:07 +02:00
parent 777b26fd6e
commit 238251af8d
2 changed files with 34 additions and 0 deletions

32
doc/strings Normal file
View file

@ -0,0 +1,32 @@
Loading strings from binaries
=============================
TODO: explain bin.minstr
Config vars
-----------
bin.strings = [true] - load strings from file
bin.rawstr = [false] - load strings from unknown rbin
Program args
------------
rabin2 -z # list strings
rabin2 -zz # list strings from raw binary (unknown rbin type)
Examples
--------
r2 -e bin.rawstr=true
r2 -z # do not load strings (same as bin.strings=false)
r2 -zz # load strings even if unknown bin (same as bin.rawstr=true)
r2 -n # do not load symbols or anything
r2 -e bin.strings=false # load symbols but not strings
if (bin.strings) {
if RBin.format(isKnown) {
loadStrings()
} else {
if (bin.rawstr)
loadStrings()
}
}

View file

@ -121,8 +121,10 @@ static int bin_strings (RCore *r, int mode, ut64 baddr, int va) {
if (plugin->info && plugin->name) {
if (!strcmp (plugin->name, "any")) {
if (!rawstr) {
#if 0
eprintf ("NOTE: Use '-e bin.rawstr=true' or 'r2 -zz' or '.!rabin2 -zz $FILE'"
" to find strings on unknown file types\n");
#endif
return R_FALSE;
}