Commit Graph

5125 Commits

Author SHA1 Message Date
pancake
3e38ffe0db Add AddrInfo esil method for /E 2014-10-15 02:42:08 +02:00
pancake
42232354a7 Add 'ai' - address info, Enhace 'ad' (support patterns and sequences)
- ai shows: exec,read,write,flag,func,stack,heap,reg
- Add r_reg_regset_get()
- Implement r2.cmdj in r2.js
2014-10-15 02:24:22 +02:00
pancake
676ed9e861 Add 'afC' for calling convention changes in function definitions 2014-10-14 17:09:42 +02:00
Fedor Sakharov
0b9abbd87a Move arch headers from ./lib/include 2014-10-14 14:24:22 +02:00
pancake
8c625b2c27 Fill RAnalOp.mnemonic with RAsmOp.buf_asm in RCore.anal_op 2014-10-14 12:29:34 +02:00
pancake
c9754da05f Initial support for function declarations in Cparse (loaded into sdb) 2014-10-14 11:55:02 +02:00
Skia
8e7c4c67be Fix double bitfield and double enum in pf 2014-10-13 16:29:03 +02:00
NighterMan
08274d9f28 Added JSON output support for multiple search cmds
JSON output support has been added for the following cmds:
| / foo\x00              search for string 'foo\0'                         // Si
| /j foo\x00             search for string 'foo\0' (JSON output)           // Si
| /! ff                  search for first occurrence not matching          // Si
| /+ /bin/sh             construct the string with chunks                  // No
| /!x 00                 inverse hexa search (find first byte != 0x00)     // No
| //                     repeat last search                                // Si
| /a jmp eax             assemble opcode and search its bytes              // Si
| /b                     search backwards                                  // Si
| /B                     search recognized RBin headers                    // No
| /c jmp [esp]           search for asm code (see search.asmstr)           // Si
| /C[ae]                 search for crypto materials                       // No
| /d 101112              search for a deltified sequence of bytes          // Si
| /e /E.F/i              match regular expressions                         // Si
| /E esil-expr           offset matching given esil expressions %%= here   // No
| /i foo                 search for string 'foo' ignoring case             // Si
| /m magicfile           search for matching magic file (use blocksize)    // No
| /p patternsize         search for pattern of given size                  // No
| /P                     show offset of previous instruction               // Si
| /r sym.printf          analyze opcode reference an offset                // No
| /R [grepopcode]        search for matching ROP gadgets, comma-separated  // Si
| /v[1248] value         look for an `asm.bigendian` 32bit value           // Si
| /w foo                 search for wide string 'f\0o\0o\0'                // Si
| /wi foo                search for wide string ignoring case 'f\0o\0o\0'  // Si
| /x ff..33              search for hex string ignoring some nibbles       // Si
| /x ff0033              search for hex string                             // Si
| /x ff43 ffd0           search for hexpair with mask                      // Si
| /z min max             search for strings of given size                  // Si
2014-10-13 16:27:54 +02:00
NighterMan
82b0626fb0 Fix for crash when using regexp searches
Since commit baf3145598 buffers for
bin_keyword and bin_keymask at RSearchKeyword structure need to be
allocated dynamilly. The allocation was missing causing a crash.

Added check to avoid empty regexp filters
2014-10-13 16:26:52 +02:00
pancake
ec2be7a214 Fix 'dcc' 2014-10-13 14:52:33 +02:00
pancake
13e504fd60 Use more SDB into rsyscall module 2014-10-13 05:02:24 +02:00
LemonBoy
ce649947af Fix the w64 profile 2014-10-12 21:48:05 +02:00
Maijin
3173cbf223 Add syscall-x86-{32,64} for dcs #1025 2014-10-12 21:32:20 +02:00
jvoisin
92c14d4448 Enhance /R documentation 2014-10-12 17:51:48 +02:00
pancake
9201d86558 Fix crash in elf parser 2014-10-11 01:25:45 +02:00
pancake
044fa78877 Avoid nested interpreted repeats in oneliners 2014-10-11 01:21:17 +02:00
pancake
1d3429db37 Update breakpoint counter for ARM 2014-10-10 22:45:03 +02:00
jvoisin
265fe4724c Add a /Rl command, to show gadgets in a linear manner 2014-10-10 15:04:55 +02:00
pancake
d18481971e Fix infinite loop in analysis 2014-10-09 18:43:57 +02:00
pancake
5c07ff254f Fix 'dcs' 2014-10-09 18:31:55 +02:00
pancake
745f4018e8 Fix several DEX crashes found by Joxean's fuzzer 2014-10-09 13:47:57 +02:00
pancake
07605a0a42 Add MSDOS interrupt table and add x86-16bit reg profile 2014-10-09 10:02:18 +02:00
condret
d36331528c fix CID 1244222 2014-10-09 09:19:48 +02:00
pancake
0ad1e258d0 Fix #1495 - Infinite loop on 'wx' on read-only files 2014-10-09 01:47:03 +02:00
pancake
fb8336f7d0 Add dbg.{forks|clone|execs} ptrace options (linux-only atm) 2014-10-09 01:21:49 +02:00
condret
606704e3f3 some cleanup in r_core_file_free 2014-10-08 16:14:31 +02:00
condret
558da5977a remove unused code in anal_gb.c via #if 0 2014-10-08 15:55:22 +02:00
condret
65d8b20d05 RCoreFile-reduction: kill RCoreFile->rwx 2014-10-08 13:29:47 +02:00
pancake
9504a0ef6b Fix psb 2014-10-08 02:42:16 +02:00
pancake
88bbc4aa7b Remove noisy debug error messages 2014-10-08 02:14:53 +02:00
pancake
abd7bcda90 Hackaround for pie bins 2014-10-08 01:54:09 +02:00
condret
348b494e8c correct RIODesc->flags for w32dbg and mach 2014-10-08 02:02:16 +02:00
pancake
fb1cd1f017 Implement search.in=maps and mapsrange 2014-10-08 01:35:36 +02:00
condret
d0361badb6 correct RIODesc->flags on ptrace 2014-10-08 01:13:38 +02:00
condret
4c07f86bd5 rename mode to flags and add a few check to prevent NULL-ptr-deref 2014-10-08 00:47:13 +02:00
pancake
9f962a05ab Fix r2 -zz and rabin2 -zz, also set default minstrlen for ELF/ELF64 2014-10-07 22:55:10 +02:00
condret
e816189ec7 enable conditional stuff for rop-gadget-search 2014-10-07 22:16:09 +02:00
Skia
6e0285ab90 Fix pf 2014-10-07 17:59:58 +02:00
pancake
d8ca00b294 Fix #804 again - regression introduced by deprecating rcorefile 2014-10-07 17:54:03 +02:00
pancake
4d1ba3717f Fix nocolor problem in XREFs in disasm 2014-10-07 11:08:48 +02:00
pancake
38127e9f43 Load one rbinobj per file. Fix r2 *, ob help and a coverity memleak 2014-10-07 10:49:29 +02:00
pancake
0ca35e7fe7 Fix the esil.x86.udis86 for lea and add iret* 2014-10-07 03:31:54 +02:00
pancake
e3df2bf29e Show if two maps overlap 2014-10-07 03:07:45 +02:00
pancake
67acee60f9 Better 'wc' command and cache/history capabilities 2014-10-07 02:52:47 +02:00
pancake
2642b03076 Handle r2 -C ../V to start in visual. Fix file.loadmethod=append 2014-10-07 01:58:42 +02:00
pancake
1be6be0a75 Spawn cmd.xterm in visual with '@' key. Enhace remote consoles 2014-10-07 00:56:39 +02:00
pancake
b9184a0672 Remove unused hightlight function 2014-10-06 12:08:03 +02:00
pancake
961f2fe27f Better chunked size /+ with incremental subchunking 2014-10-06 02:50:10 +02:00
pancake
2ac80c7c6a Add chunked search /+ and enhace visual mode |=
* | sets cmd.cprompt
* = sets cmd.vprompt
* var names are a bit confusing, we should find better names
* Better highlight
* Fixed column in visual
* scr.colpos has been deprecated, now uses hex.cols
* Initial implementation of a chunked search /+
2014-10-06 02:36:22 +02:00
pancake
d614c40833 Fix #1484 - ac not honoring scr.color 2014-10-06 02:07:50 +02:00