Commit Graph

277 Commits

Author SHA1 Message Date
Jeffrey Crowell
c145740030 replace r_cons_printf("%s\n",p) r_cons_println(p)
move from 10% of code in vfprintf to just 6% \o/ for simple tests of r2
-c "aaa" -q /bin/ls
2016-06-26 00:52:03 -04:00
pancake
f96f00d62d Fix #5158 - Merge r_db into r_util 2016-06-17 12:19:16 +02:00
pancake
d1b5737a59 Add anal.vinfunr 2016-06-10 15:31:38 +02:00
pancake
2ca927caea Add anal.vinfun for aav (only grab values outside function boundaries) 2016-06-09 21:52:25 +02:00
pancake
16d0396b8f Fix /A, add MJMP optype, and op.reg for UJMP 2016-05-30 00:38:35 +02:00
Roi Martin
6dca1e31bb Avoid searching out of bounds 2016-05-24 03:13:06 +02:00
Roi Martin
4cf81df3bc Fix #1476: respect search.from and don't seek on /m (#4973) 2016-05-23 11:25:17 +02:00
Riccardo Schirone
8727840e90 anal/fcn: use getter/setter to access the size of a RAnalFunction
This is one of the first steps to improve analysis. This way we'll have
one single place to change if we want to change the meaning of the
"size" field. (size -> realsize)
2016-05-19 01:50:50 +02:00
pancake
28f64c83b9 Fix #4897 - Rename /# into /h 2016-05-16 21:48:22 +02:00
Damien Zammit
af0a865d9f WIP - Totally remove host endianness dependence
- Adds endian aware functions
- Removes references to host endian
- Uses binary detected endianness else tries LE and restricts by RAsmPlugin
- Fixes gdb debugger endianness when debugging BE qemu gdbserver

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-04 23:42:17 +10:00
Jeffrey Crowell
9518841434 refactor includes (#4757) 2016-05-03 04:52:41 +02:00
pancake
e00c7bc358 Handle ^C debug mode for aav 2016-04-22 11:25:42 +02:00
pancake
430073066f Several enhancements for aav and arm analysis 2016-04-22 00:55:27 +02:00
pancake
90b37aa106 More fixes and enhancements for aav and arm32 2016-04-11 00:56:48 +02:00
pancake
f42e69bb3e Fix /V hitnames and add aav command 2016-04-11 00:03:14 +02:00
pancake
30ae724e89 Fix /V argument parsing 2016-04-10 23:17:16 +02:00
NaveenBoggarapu
fabf7020fb Fix #4523 - Fix asm.emu + pd leaks 2016-04-07 11:11:46 +02:00
alvaro_fe
27459b7deb fix latest covs 2016-03-24 20:43:33 +01:00
pancake
efc215d587 Fix aap for static and make it work in debugger 2016-03-19 02:39:28 +01:00
pancake
23d8f286bc Fix aap boundaries issue for static binaries 2016-03-18 19:23:56 +01:00
easyhard
ddaa6dff07 Fix issue #4319 can not use regex sequence in rop 2016-03-15 18:14:43 +01:00
easyhard
91cc270fbf only try smaller addresses in non-align arch 2016-03-14 23:08:26 +01:00
easyhard
312f72ac01 Fix #4020 - ROP: Find gadgets from all offsets
End gadgat instruction may be part of a different
isntruction, depends on starting offset. Therefore,
rop searching should try some starting offsets that
are smaller than the previous end gadgat.
2016-03-14 23:08:26 +01:00
Riccardo Schirone
23006460c1 flags: refactoring of r_flag_set
flags: remove dup parameter from r_flag_set
2016-02-22 18:21:25 +01:00
pancake
fbd834c5ba Add ARM32 prelude for aap command 2016-02-22 00:22:09 +01:00
pancake
9197972e1c Add some preludes for arm64 and fix fcncount in aap 2016-02-16 04:23:34 +01:00
pancake
1a89cac78f Initial support for search.overlap 2016-02-12 11:37:48 -06:00
pancake
24d76819d0 Expose reftype in /r 2016-02-09 11:52:26 -06:00
Jeffrey Crowell
043d653339 respect search.to, search.from in rop search 2016-01-25 15:01:50 -05:00
pancake
bea71d7074 Add ap command to find prelude for current offset 2016-01-24 03:05:27 +01:00
condret
e9aa1bfa80 hardening 2016-01-20 16:13:30 +00:00
condret
ccab168cb5 fix a memleak and implement esil.stacksize for @crowell 2016-01-19 23:36:21 +00:00
pancake
23c81e7642 Fix int->bool issue after de-boolt-ification 2016-01-03 02:38:14 +01:00
pancake
42acaa7596 Softly kill boolt type 2016-01-03 02:05:26 +01:00
pancake
4618834f26 Do not show search help on invalid commands 2015-12-31 14:13:28 +01:00
pancake
07610b8e83 Fix dup hit issue in /c 2015-12-14 10:56:36 +01:00
Ricardo Quesada
2c3fdba551 Fix for bug 3788
- `r_io_read` calls `r_io_read_at` with vaddrs, and not with maddr
- `r_io_section_maddr_to_vaddr` uses a reverse iterator to check the
  sections
- adds `r_io_section_mget_prev`: this function can be removed if the
  behavior of `r_io_section_mget` is changed to use a reverse iterator

Squashed commit of the following:

commit a31d359bf1
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Wed Dec 9 11:40:54 2015 -0800

    fetches sections starting from the back

commit 0b687439ea
Merge: 8485676 92c1631
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 23:40:35 2015 -0800

    Merge branch 'master' of https://github.com/radare/radare2 into revert_3788

commit 8485676cf5
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 23:09:05 2015 -0800

    This seems to be the "correct" patch...

    ...but it breaks some tests... apprently searches a few bytes
    out of the section creating some false-positives hits

    I'm just commiting this PR to give an idea of where the bug is

commit 2e4b8de397
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 22:46:29 2015 -0800

    not good... reverting

commit 324afba7e2
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 22:09:25 2015 -0800

    workaround for bug 3788

commit 6e6283eaa1
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 15:14:12 2015 -0800

    Reverts fix for bug #3788

    please, reopen bug #3788
2015-12-09 22:20:54 +01:00
Ricardo Quesada
8b7bfbd6ad fixes cmd.hit for bug 3788 2015-12-08 21:09:30 +01:00
pancake
9f72edbd67 Honor more base address in search hits 2015-12-07 18:37:16 +01:00
Ricardo Quesada
f1cbbb13f3 fix for bug 3788
The problem is that if the file is mapped, then base address
is incorrect.
Not sure if there is a better way to fix this bug though
2015-12-07 17:54:56 +01:00
pancake
4b7328f942 Fix #3695 - Proper /R disasm colors 2015-11-19 12:11:36 +01:00
Jeffrey Crowell
d831150a8c avr is aligned on even bytes 2015-11-18 17:15:39 -05:00
pancake
b91eade93b Fix malloc(0) issue in /c 2015-11-16 22:15:26 +01:00
pancake
79c844a687 Fix dmi command and issue in aap 2015-11-15 01:06:42 +01:00
Dima Turchenkov
e38e5dd5c2 One more standard prelude for x86-32/64 2015-11-13 20:47:47 +01:00
pancake
74ec59d624 Fix workaround for /R/ 2015-10-24 02:41:43 +02:00
pancake
f3ddfbb9ec Fixes for RRegex, Use r_regex_match(), comp+exec seems buggy 2015-10-24 02:06:45 +02:00
Jeffrey Crowell
541e2dd132 fix DEADCODE thanks coverity 2015-10-21 12:29:29 -04:00
Jeffrey Crowell
08b8ced5a2 fix the rop search w/o regexp
this was broken for ages, wtf...
2015-10-20 05:02:18 -04:00
Álvaro Felipe Melchor
078f417c91 Fix #2751 2015-10-14 16:20:03 +02:00