Skip to content

Commit

Permalink
Lowercase all the help messages for consistency ##shell
Browse files Browse the repository at this point in the history
  • Loading branch information
Apkunpacker committed Apr 11, 2022
1 parent 39bdef0 commit 6d0bf40
Show file tree
Hide file tree
Showing 17 changed files with 742 additions and 742 deletions.
230 changes: 115 additions & 115 deletions libr/core/cmd_anal.c

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions libr/core/cmd_cmp.c
Expand Up @@ -4,16 +4,16 @@

static const char *help_message_ci[] = {
"Usage: ci", "[sil] ([obid])", "Compare two bin objects",
"cis", " 0", "Compare symbols with current `ob 1` with given obid (0)",
"cii", " 0", "Compare imports",
"cil", " 0", "Compare libraries",
"cis", " 0", "compare symbols with current `ob 1` with given obid (0)",
"cii", " 0", "compare imports",
"cil", " 0", "compare libraries",
NULL
};

static const char *help_msg_cmp[] = {
"Usage: cmp", " [file] [file]", "Compare two ($alias) files, and change $? value",
"cmp", " ls ls.old", "Compare contents of given files",
"cmp", " $a $b", "Same as above but using alias files",
"cmp", " ls ls.old", "compare contents of given files",
"cmp", " $a $b", "same as above but using alias files",
NULL
};

Expand All @@ -34,17 +34,17 @@ static const char *help_msg_c[] = {
// "cc", " [offset]", "code bindiff current block against offset"
// "cD", " [file]", "like above, but using radiff -b",
"cf", " [file]", "compare contents of file at current seek",
"cg", "[?] [o] [file]", "Graphdiff current file and [file]",
"ci", "[?] [obid] ([obid2])", "Compare two bin-objects (symbols, imports, ...)",
"cg", "[?] [o] [file]", "graphdiff current file and [file]",
"ci", "[?] [obid] ([obid2])", "compare two bin-objects (symbols, imports, ...)",
"cl|cls|clear", "", "clear screen, (clear0 to goto 0, 0 only)",
"cmp", " [file] [file]", "compare two files\n",
"cu", "[?] [addr] @at", "compare memory hexdumps of $$ and dst in unified diff",
"cud", " [addr] @at", "unified diff disasm from $$ and given address",
"cv", "[1248] [hexpairs] @at", "Compare 1,2,4,8-byte (silent return in $?)",
"cv", "[1248] [hexpairs] @at", "compare 1,2,4,8-byte (silent return in $?)",
"cV", "[1248] [addr] @at", "compare 1,2,4,8-byte address contents (silent, return in $?)",
"cw", "[?][*dqjru] [addr]", "compare memory watchers",
"cx", " [hexpair]", "compare hexpair string (use '.' as nibble wildcard)",
"cx*", " [hexpair]", "Compare hexpair string (output r2 commands)",
"cx*", " [hexpair]", "compare hexpair string (output r2 commands)",
"cX", " [addr]", "Like 'cc' but using hexdiff output",
NULL
};
Expand Down
576 changes: 288 additions & 288 deletions libr/core/cmd_debug.c

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions libr/core/cmd_egg.c
Expand Up @@ -6,19 +6,19 @@

static const char *help_msg_g[] = {
"Usage:", "g[wcilper] [arg]", "Go compile shellcodes",
"g", " ", "Compile the shellcode",
"g", " foo.r", "Compile r_egg source file",
"gw", "", "Compile and write",
"gc", " cmd=/bin/ls", "Set config option for shellcodes and encoders",
"gc", "", "List all config options",
"gL", "[?]", "List plugins (shellcodes, encoders)",
"gs", " name args", "Compile syscall name(args)",
"gi", " [type]", "Define the shellcode type",
"git", " [...]", "Your favourite version control",
"gp", " padding", "Define padding for command",
"ge", " [encoder] [key]", "Specify an encoder and a key",
"gr", "", "Reset r_egg",
"gS", "", "Show the current configuration",
"g", " ", "compile the shellcode",
"g", " foo.r", "compile r_egg source file",
"gw", "", "compile and write",
"gc", " cmd=/bin/ls", "set config option for shellcodes and encoders",
"gc", "", "list all config options",
"gL", "[?]", "list plugins (shellcodes, encoders)",
"gs", " name args", "compile syscall name(args)",
"gi", " [type]", "define the shellcode type",
"git", " [...]", "your favourite version control",
"gp", " padding", "define padding for command",
"ge", " [encoder] [key]", "specify an encoder and a key",
"gr", "", "reset r_egg",
"gS", "", "show the current configuration",
"EVAL VARS:", "", "asm.arch, asm.bits, asm.os",
NULL
};
Expand Down
18 changes: 9 additions & 9 deletions libr/core/cmd_flag.c
Expand Up @@ -72,15 +72,15 @@ static const char *help_msg_f[] = {

static const char *help_msg_fc[] = {
"Usage: fc", "<flagname> [color]", " # List colors with 'ecs'",
"fc", "", "Same as fc.",
"fc", " color", "Set color to all flags in current offset",
"fc", " flag=color", "Set color to given flag. Same as 'fc color@flag'",
"fc.", "", "Get color of all flags in current offset",
"fc-", "", "Remove color from current offset",
"fc-", "flagname", "Remove color from given flag",
"fc-*", "", "Reset all color flags",
"fc*", "", "List all flags colors in r2 commands",
"fc.*", "", "Set color to all flags in current offset",
"fc", "", "same as fc.",
"fc", " color", "set color to all flags in current offset",
"fc", " flag=color", "set color to given flag. Same as 'fc color@flag'",
"fc.", "", "get color of all flags in current offset",
"fc-", "", "remove color from current offset",
"fc-", "flagname", "remove color from given flag",
"fc-*", "", "reset all color flags",
"fc*", "", "list all flags colors in r2 commands",
"fc.*", "", "set color to all flags in current offset",
NULL
};

Expand Down
2 changes: 1 addition & 1 deletion libr/core/cmd_help.c
Expand Up @@ -301,7 +301,7 @@ static const char *help_msg_question_v[] = {
"$e", "", "1 if end of block, else 0",
"$e", "{flag}", "end of flag (flag->offset + flag->size)",
"$f", "", "jump fail address (e.g. jz 0x10 => next instruction)",
"$F", "", "Same as $FB",
"$F", "", "same as $FB",
"$Fb", "", "begin of basic block",
"$FB", "", "begin of function",
"$Fe", "", "end of basic block",
Expand Down
100 changes: 50 additions & 50 deletions libr/core/cmd_info.c
Expand Up @@ -6,68 +6,68 @@
static const char *help_msg_i[] = {
"Usage: i", "", "Get info from opened file (see rabin2's manpage)",
"Output mode:", "", "",
"'*'", "", "Output in radare commands",
"'j'", "", "Output in json",
"'q'", "", "Simple quiet output",
"'*'", "", "output in radare commands",
"'j'", "", "output in json",
"'q'", "", "simple quiet output",
"Actions:", "", "",
"i|ij", "", "Show info of current file (in JSON)",
"iA", "", "List archs",
"ia", "", "Show all info (imports, exports, sections..)",
"ib", "", "Reload the current buffer for setting of the bin (use once only)",
"i|ij", "", "show info of current file (in JSON)",
"iA", "", "list archs",
"ia", "", "show all info (imports, exports, sections..)",
"ib", "", "reload the current buffer for setting of the bin (use once only)",
"ic", "", "List classes, methods and fields",
"icc", "", "List classes, methods and fields in Header Format",
"icg", "", "List classes as agn/age commands to create class hirearchy graphs",
"icq", "", "List classes, in quiet mode (just the classname)",
"icqq", "", "List classes, in quieter mode (only show non-system classnames)",
"iC", "[j]", "Show signature info (entitlements, ...)",
"id", "[?]", "Show DWARF source lines information",
"iD", " lang sym", "Demangle symbolname for given language",
"ie", "", "Entrypoint",
"iee", "", "Show Entry and Exit (preinit, init and fini)",
"iE", "", "Exports (global symbols)",
"iE.", "", "Current export",
"ih", "", "Headers (alias for iH)",
"iHH", "", "Verbose Headers in raw text",
"ii", "", "Imports",
"iI", "", "Binary info",
"ik", " [query]", "Key-value database from RBinObject",
"il", "", "Libraries",
"iL ", "[plugin]", "List all RBin plugins loaded or plugin details",
"im", "", "Show info about predefined memory allocation",
"iM", "", "Show main address",
"io", " [file]", "Load info from file (or last opened) use bin.baddr",
"iO", "[?]", "Perform binary operation (dump, resize, change sections, ...)",
"ir", "", "List the Relocations",
"iR", "", "List the Resources",
"is", "", "List the Symbols",
"is,", "[table-query]", "List symbols in table using given expression",
"is.", "", "Current symbol",
"iS ", "[entropy,sha1]", "Sections (choose which hash algorithm to use)",
"iS.", "", "Current section",
"iS,", "[table-query]", "List sections in table using given expression",
"iS=", "", "Show ascii-art color bars with the section ranges",
"iSS", "", "List memory segments (maps with om)",
"it", "", "File hashes",
"iT", "", "File signature",
"iV", "", "Display file version info",
"iw", "", "Show try/catch blocks",
"iX", "", "Display source files used (via dwarf)",
"iz", "[?][j]", "Strings in data sections (in JSON/Base64)",
"izz", "", "Search for Strings in the whole binary",
"izzz", "", "Dump Strings from whole binary to r2 shell (for huge files)",
"iz-", " [addr]", "Purge string via bin.str.purge",
"iZ", "", "Guess size of binary program",
"iC", "[j]", "show signature info (entitlements, ...)",
"id", "[?]", "show DWARF source lines information",
"iD", " lang sym", "demangle symbolname for given language",
"ie", "", "entrypoint",
"iee", "", "show Entry and Exit (preinit, init and fini)",
"iE", "", "exports (global symbols)",
"iE.", "", "current export",
"ih", "", "headers (alias for iH)",
"iHH", "", "verbose Headers in raw text",
"ii", "", "imports",
"iI", "", "binary info",
"ik", " [query]", "key-value database from RBinObject",
"il", "", "libraries",
"iL ", "[plugin]", "list all RBin plugins loaded or plugin details",
"im", "", "show info about predefined memory allocation",
"iM", "", "show main address",
"io", " [file]", "load info from file (or last opened) use bin.baddr",
"iO", "[?]", "perform binary operation (dump, resize, change sections, ...)",
"ir", "", "list the Relocations",
"iR", "", "list the Resources",
"is", "", "list the Symbols",
"is,", "[table-query]", "list symbols in table using given expression",
"is.", "", "current symbol",
"iS ", "[entropy,sha1]", "sections (choose which hash algorithm to use)",
"iS.", "", "current section",
"iS,", "[table-query]", "list sections in table using given expression",
"iS=", "", "show ascii-art color bars with the section ranges",
"iSS", "", "list memory segments (maps with om)",
"it", "", "file hashes",
"iT", "", "file signature",
"iV", "", "display file version info",
"iw", "", "show try/catch blocks",
"iX", "", "display source files used (via dwarf)",
"iz", "[?][j]", "strings in data sections (in JSON/Base64)",
"izz", "", "search for Strings in the whole binary",
"izzz", "", "dump Strings from whole binary to r2 shell (for huge files)",
"iz-", " [addr]", "purge string via bin.str.purge",
"iZ", "", "guess size of binary program",
NULL
};

// TODO: this command needs a refactoring
static const char *help_msg_id[] = {
"Usage: idp", "", "Debug information",
"id", "", "Show DWARF source lines information",
"idp", " [file.pdb]", "Load pdb file information",
"idpi", " [file.pdb]", "Show pdb file information",
"idpi*", "", "Show symbols from pdb as flags (prefix with dot to import)",
"idpd", "", "Download pdb file on remote server",
"id", "", "show DWARF source lines information",
"idp", " [file.pdb]", "load pdb file information",
"idpi", " [file.pdb]", "show pdb file information",
"idpi*", "", "show symbols from pdb as flags (prefix with dot to import)",
"idpd", "", "download pdb file on remote server",
NULL
};

Expand Down
4 changes: 2 additions & 2 deletions libr/core/cmd_log.c
Expand Up @@ -42,8 +42,8 @@ static const char *help_msg_T[] = {
"Tm", " [idx]", "display log messages without index",
"Ts", "", "list files in current directory (see pwd, cd)",
"TT", "", "enter into the text log chat console",
"T=", "[.]", "Pull logs from remote r2 instance specified by http.sync",
"T=&", "", "Start background thread syncing with the remote server",
"T=", "[.]", "pull logs from remote r2 instance specified by http.sync",
"T=&", "", "start background thread syncing with the remote server",
NULL
};

Expand Down
18 changes: 9 additions & 9 deletions libr/core/cmd_meta.c
Expand Up @@ -67,12 +67,12 @@ static const char *help_msg_CC[] = {
static const char *help_msg_CL[] = {
"Usage: CL", ".j-", "@addr - manage code-line references (loaded via bin.dbginfo and shown when asm.dwarf)",
"CL", "", "list all code line information (virtual address <-> source file:line)",
"CLj", "", "Same as above but in JSON format (See dir.source to change the path to find the referenced lines)",
"CL*", "", "Same as above but in r2 commands format",
"CL.", "", "Show list all code line information (virtual address <-> source file:line)",
"CL-", "*", "Remove all the cached codeline information",
"CL", " addr file:line", "Register new file:line source details, r2 will slurp the line",
"CL", " addr base64:text", "Register new source details for given address using base64",
"CLj", "", "same as above but in JSON format (See dir.source to change the path to find the referenced lines)",
"CL*", "", "same as above but in r2 commands format",
"CL.", "", "show list all code line information (virtual address <-> source file:line)",
"CL-", "*", "remove all the cached codeline information",
"CL", " addr file:line", "register new file:line source details, r2 will slurp the line",
"CL", " addr base64:text", "register new source details for given address using base64",
NULL
};

Expand Down Expand Up @@ -123,7 +123,7 @@ static const char *help_msg_Cvb[] = {
"Cvb", "", "list all base pointer args/vars comments in human friendly format",
"Cvb*", "", "list all base pointer args/vars comments in r2 format",
"Cvb-", "[name]", "delete comments for var/arg at current offset for base pointer",
"Cvb", " [name]", "Show comments for var/arg at current offset for base pointer",
"Cvb", " [name]", "show comments for var/arg at current offset for base pointer",
"Cvb", " [name] [comment]", "add/append comment for the variable with the current name",
"Cvb!", "[name]", "edit comment using cfg editor",
NULL
Expand All @@ -135,7 +135,7 @@ static const char *help_msg_Cvr[] = {
"Cvr", "", "list all register based args comments in human friendly format",
"Cvr*", "", "list all register based args comments in r2 format",
"Cvr-", "[name]", "delete comments for register based arg for that name",
"Cvr", "[name]", "Show comments for register based arg for that name",
"Cvr", "[name]", "show comments for register based arg for that name",
"Cvr", "[name] [comment]", "add/append comment for the variable",
"Cvr!", "[name]", "edit comment using cfg editor",
NULL
Expand All @@ -146,7 +146,7 @@ static const char *help_msg_Cvs[] = {
"Cvs!", "[name]", "edit comment using cfg editor",
"Cvs", "", "list all stack based args/vars comments in human friendly format",
"Cvs", "[name] [comment]", "add/append comment for the variable",
"Cvs", "[name]", "Show comments for stack pointer var/arg with that name",
"Cvs", "[name]", "show comments for stack pointer var/arg with that name",
"Cvs*", "", "list all stack based args/vars comments in r2 format",
"Cvs-", "[name]", "delete comments for stack pointer var/arg with that name",
"Cvs?", "", "show this help",
Expand Down
38 changes: 19 additions & 19 deletions libr/core/cmd_mount.c
Expand Up @@ -2,25 +2,25 @@

static const char *help_msg_m[] = {
"Usage:", "m[-?*dgy] [...] ", "Mountpoints management",
"m", " /mnt ext2 0", "Mount ext2 fs at /mnt with delta 0 on IO",
"m", " /mnt", "Mount fs at /mnt with autodetect fs and current offset",
"m", "", "List all mountpoints in human readable format",
"m*", "", "Same as above, but in r2 commands",
"m-/", "", "Umount given path (/)",
"mL", "", "List filesystem plugins (Same as Lm)",
"mc", " [file]", "Cat: Show the contents of the given file",
"md", " /", "List directory contents for path",
"mf", "[?] [o|n]", "Search files for given filename or for offset",
"mg", " /foo [offset size]", "Get fs file/dir and dump to disk (support base64:)",
"mi", " /foo/bar", "Get offset and size of given file",
"mj", "", "List mounted filesystems in JSON",
"mo", " /foo/bar", "Open given file into a malloc://",
"mp", " msdos 0", "Show partitions in msdos format at offset 0",
"mp", "", "List all supported partition types",
"ms", " /mnt", "Open filesystem prompt at /mnt",
"mw", " [file] [data]", "Write data into file", // TODO: add mwf
"mwf", " [diskfile] [r2filepath]", "Write contents of local diskfile into r2fs mounted path",
"my", "", "Yank contents of file into clipboard",
"m", " /mnt ext2 0", "mount ext2 fs at /mnt with delta 0 on IO",
"m", " /mnt", "mount fs at /mnt with autodetect fs and current offset",
"m", "", "list all mountpoints in human readable format",
"m*", "", "same as above, but in r2 commands",
"m-/", "", "umount given path (/)",
"mL", "", "list filesystem plugins (Same as Lm)",
"mc", " [file]", "cat: Show the contents of the given file",
"md", " /", "list directory contents for path",
"mf", "[?] [o|n]", "search files for given filename or for offset",
"mg", " /foo [offset size]", "get fs file/dir and dump to disk (support base64:)",
"mi", " /foo/bar", "get offset and size of given file",
"mj", "", "list mounted filesystems in JSON",
"mo", " /foo/bar", "open given file into a malloc://",
"mp", " msdos 0", "show partitions in msdos format at offset 0",
"mp", "", "list all supported partition types",
"ms", " /mnt", "open filesystem prompt at /mnt",
"mw", " [file] [data]", "write data into file", // TODO: add mwf
"mwf", " [diskfile] [r2filepath]", "write contents of local diskfile into r2fs mounted path",
"my", "", "yank contents of file into clipboard",
//"TODO: support multiple mountpoints and RFile IO's (need io+core refactorn",
NULL
};
Expand Down

0 comments on commit 6d0bf40

Please sign in to comment.