534 Commits

Author SHA1 Message Date
radare
418c337e37
Fix #13321 - Make /ci [from] [to] find immediates in range ##search 2019-04-15 02:36:50 +02:00
radare
dba7a43f1d
Rollback to capstone4 until all bugs get fixed 2019-04-12 16:13:35 +02:00
radare
c52856626c
Implement /am and add initial support for PAC instructions ##anal (#13716)
* /am is like /c but only search for instructions and uses R_ANAL_MASK_DISASM
* Added new op family: R_ANAL_OP_FAMILY_PAC; (see /af)
2019-04-12 13:12:10 +02:00
Alex Gaines
442709e95f Add a call to r_search_kw_reset in r_search_prelude to fix arbitrary heap oob write (#13605) 2019-04-01 17:28:04 +02:00
Deepak Chethan
20b56efda8 Include aap in aaa (#13543)
* Include aap in aaa

* Added aap only if file.type is unknown

* extracted them to method
2019-03-29 17:28:58 +01:00
Maijin
2e3c1d1a01
Typo immbediate -> immediate ##docs
Typo immbediate -> immediate ##docs
2019-02-04 14:29:13 +01:00
Itay Cohen
ad13d26e3f Fix help and json in /ci (#12978) 2019-02-03 12:04:46 -06:00
radare
21d80aac76
Fix #12942 - Implement /c[vV][j] /cej to search for code immediates ##search 2019-01-30 11:11:57 -06:00
Itay Cohen
472329c136 Add JSON support for /g ##anal 2019-01-21 01:25:59 +01:00
Florian Märkl
f80a47ab60 Move Palette to RConsContext to make RCoreTask less racy ##cons 2019-01-18 11:58:49 +01:00
pancake
9c12720fb7 Fix #12378 - Implement /ai to search for infinite loop instructions ##search 2019-01-16 16:52:36 +01:00
pancake
ea92c06e1a Oops 2019-01-14 10:11:58 +01:00
pancake
80f8526fdf Documentate yfx/yw/ywf/.. 2019-01-14 10:06:06 +01:00
radare
ab3a7be704
Almost completely kill RIOSection from io and core (-218LOC) ##refactoring
* Use RBinSection, RDebugMap or RIOMap instead
* Remove omps command
* Fix segfault in ?E+
* Improve anal.eobjmp (bug spotted after almost killing iosections)
2019-01-13 03:07:51 +01:00
pancake
89bd2149b9 Implement /a1 to find all instructions by changing 1 byte ##search 2019-01-12 00:25:57 +01:00
pancake
f9509bcc49 Remove useless .c file and fix 2 small warnings 2019-01-10 09:48:41 +01:00
radare
47230f4b9e
Improve aap for arm64 ##anal 2019-01-10 09:23:20 +01:00
radare
c98136300d
Fix #12667 - Fix heap overflow in RCons.grep ##cons 2019-01-07 16:08:54 +01:00
David CARLIER
ba83760f94 Various little code cleanup/ib fix proposal. (#12640)
Proposal to fix ib DF issue.
2019-01-04 14:05:16 +01:00
David CARLIER
d7cee490c7 Few compilation warning fixes. (#12630) 2019-01-03 21:55:14 +01:00
radare
d1d9404907
Implement /s, /s* to search for sections depending on entropy ##search 2019-01-03 15:22:26 +01:00
Roman Valls Guimera
d38df47b74 Clarify aes /Ca help message (#12580) 2018-12-29 16:05:18 +01:00
dav1901
0a65d76eb8 Minor cleanups/fixes 2018-12-18 16:26:17 +01:00
David CARLIER
6196093599 Few build compilation warning fixes. (#12464) 2018-12-12 13:25:44 +01:00
dav1901
97b94b3f94 Fix more clang warnings (#12458) 2018-12-12 12:22:36 +01:00
pancake
2382f616b0 Fix p- to honor multiple regions ##print 2018-12-12 12:22:02 +01:00
pancake
4fee4c8eab Fix .in=io.maps, improving aap analysis (2052 vs 41 functions find) ##anal 2018-12-12 12:22:02 +01:00
dav1901
024d65e288 Fix few more clang warnings (#12429) 2018-12-11 10:28:01 +01:00
radare
8e8fe2e810
Fix aap for thumb ##anal (#12450) 2018-12-11 03:16:07 +01:00
Riccardo Schirone
8a6348b692
Fix another assert when printing blocks (#12173)
* Do not NULLIFY the result if the list is empty when getting boundaries

An empty list is different than a NULL return value. The caller has to
call r_list_free anyway on the returned list, so there's no real
advantage in returning NULL, it just makes the caller's life harder
because it cannot understand if NULL is returned because the list was
empty (e.g. there are no IO maps, etc.) or because there were some
errors.

* Check for NULL and exit if so, that's an error.

* Check r_core_get_boundaries_prot return value for NULL
2018-11-15 19:35:47 +01:00
Riccardo Schirone
08422752f2 Switch construct_rop_gadget to Ht 2018-11-15 10:23:26 +01:00
Riccardo Schirone
08e5b4aaad Refactoring RBin.open/close and RBinOptions ##bin
* r_bin_close should be r_bin_file_close
* moved bin/open.c into bin.c
* set BinFile id in r_bin_load_io
* use r_bin_open_io instead of r_bin_load_io
* also prefer RBinOptions instead of multiple arguments
* rename r_bin_load to r_bin_open and use RBinOptions
2018-11-07 17:22:41 +01:00
Giovanni
6ad16dcd8b /Cd is now using a proper bitmask to search the values ##search 2018-10-30 17:50:51 +01:00
radare
1880a96d8d
Fix regression in /rc and avoid repeated errors ##search (#12005) 2018-10-30 15:23:28 +01:00
Álvaro Felipe Melchor
0a7690933c Add new function prelude for ARM thumb ##anal 2018-10-30 12:40:25 +01:00
radare
03996cb944
Fix #11977 - Handle arg in on /r subcommands ##search
* Fixes /rc inverse logic issue
2018-10-30 05:57:22 +01:00
radare
4ac547cadd
Fix #11961 - /at swi for unconditional (or cswi) ##search (#11962) 2018-10-27 11:28:16 +02:00
Riccardo Schirone
6115f00455
remove r_bin_load_io2 and rename MODE defines ##refactor
PR #11888 

* bin: no need for 2 r_bin_load_io APIs
* bin: remove io-related unused functions
* r_bin.h: remove some old comments
* r_bin.h: group together related APIs
* extract print/set modes in r_types, to remove dups in r_bin and r_core
* clang-format-diff: fix ternary operator indent for pancake
2018-10-24 16:54:57 +02:00
pancake
4d4ce2f49c Code cleanup in the mach0 parser ##refactor 2018-10-24 13:05:29 +02:00
radare
e49bca77b9
Improve AAP for ARM32 (#11909) 2018-10-23 21:33:39 +02:00
Riccardo Schirone
64d16fc506 Some code cleanup and asserts in RBin ##refactor
* libr/bin: no need to allocate RBinOptions on the heap
* bin: start using r_return_* around, that's just the beginning
* bin: remove io_owned since it's not used anywhere
* io: make r_io_bind return nothing
* bin: remove unused functions and simplify r_bin_load_io
r_bin_load_io was calling r_bin_load_io2 with UT64_MAX as sz parameter,
but r_bin_load_io2 just returns false if (st64)sz is less than 0, so
that call is actually useless and can be removed.
* bin/bin: fix some preconditions
* bin/open: fix precondition to check for bin and filename too
2018-10-21 01:27:15 +02:00
fcasal
871662e74c Fix comments and whitespace (#11781) 2018-10-10 12:19:56 +08:00
Riccardo Schirone
e2278cc50f
sync sdb: some refactoring on how to access base SdbKv fields (#11741) 2018-10-05 15:21:46 +02:00
radare
47297f6d0a
Initial implementatil of asm.tailsub (#11696) 2018-09-30 11:41:19 -04:00
pancake
41ec949204 Fix #11112 - Rename {srwx,flags,perms} to perm. (-21 LOC)
Unify R_IO, R_BIN, R_BP, .. into R_PERM_* using 1 letter syntax
2018-09-22 11:31:45 +02:00
radare
6e65b5d02a
Honor search.maxhits in /m (#11609) 2018-09-21 16:32:25 +02:00
radare
192b3b96bd
Implement bruteforce block to find hash collisions (#11595) 2018-09-20 19:16:25 +02:00
pancake
b25653ec2a Honor ^C in /h 2018-09-12 00:47:07 +02:00
pancake
ff08c059da Kill the isThumb checks (s110-arm-16 half converted) 2018-08-26 23:08:44 +02:00
Jacob Rosenthal
3afabed74d arm thumb syscalls use aop.val instead of a register 2018-08-26 23:08:44 +02:00