mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-24 06:48:46 +00:00
Fix ogray theme and add /R help
This commit is contained in:
parent
62b2c60031
commit
03f444ae55
@ -1,7 +1,7 @@
|
||||
ec comment rgb:f72
|
||||
ec fname rgb:f72
|
||||
ec fline rgb:f72
|
||||
ec flag rgb:557
|
||||
ec flag rgb:f72
|
||||
ec label rgb:f72
|
||||
ec flow rgb:f72
|
||||
ec prompt rgb:f72
|
||||
@ -25,6 +25,6 @@ ec trap rgb:f72
|
||||
ec swi rgb:f72
|
||||
ec cmp rgb:aaa
|
||||
ec reg rgb:fff
|
||||
ec creg rgb:999
|
||||
ec creg rgb:fff
|
||||
ec num rgb:f72
|
||||
ec mov rgb:777
|
||||
|
@ -425,21 +425,24 @@ static int cmd_search(void *data, const char *input) {
|
||||
goto reread;
|
||||
break;
|
||||
case 'P':
|
||||
{
|
||||
{
|
||||
// print the offset of the Previous opcode
|
||||
ut8 buf[64];
|
||||
ut64 off = core->offset;
|
||||
r_core_read_at (core, off-16, buf, 32);
|
||||
off = findprevopsz (core, off, buf, 16);
|
||||
r_cons_printf ("0x%08llx\n", off);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'R':
|
||||
r_core_search_rop (core, from, to, 0, input+1);
|
||||
if (input[1]=='?') {
|
||||
r_cons_printf ("Usage: /R [filter-by-string]\n");
|
||||
} else r_core_search_rop (core, from, to, 0, input+1);
|
||||
return R_TRUE;
|
||||
case 'r':
|
||||
if (input[1]==' ')
|
||||
r_core_anal_search (core, from, to, r_num_math (core->num, input+2));
|
||||
r_core_anal_search (core, from, to,
|
||||
r_num_math (core->num, input+2));
|
||||
else r_core_anal_search (core, from, to, core->offset);
|
||||
break;
|
||||
case 'a': {
|
||||
@ -702,7 +705,7 @@ static int cmd_search(void *data, const char *input) {
|
||||
"| /a jmp eax assemble opcode and search its bytes\n"
|
||||
"| /A search for AES expanded keys\n"
|
||||
"| /r sym.printf analyze opcode reference an offset\n"
|
||||
"| /R search for ROP gadgets\n"
|
||||
"| /R [grepopcode] search for matching ROP gadgets\n"
|
||||
"| /P show offset of previous instruction\n"
|
||||
"| /m magicfile search for matching magic file (use blocksize)\n"
|
||||
"| /p patternsize search for pattern of given size\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user