Commit Graph

369 Commits

Author SHA1 Message Date
pancake
5b0b9d09a9 Implement R2_ARGS as it was done for rabin2 and rarun2
* TODO: Unify all this logic into a single function
2023-08-18 14:14:36 +02:00
pancake
ccb7351b5e
Merge RParse into RAsm ##api 2022-12-03 02:26:41 +01:00
pancake
f08fc91dd9 Initial implementation of the arch.any.as plugin ##arch 2022-11-30 15:43:54 +01:00
pancake
46e25f8844 Remove anal.malbolge and fix CI r_esil issues ##arch 2022-11-13 22:38:58 +01:00
pancake
cded4df114 Move anal.esil into the new esil ##esil 2022-11-13 22:38:58 +01:00
pancake
1944e59783 Remove some more r_hash leftovers 2022-09-16 10:46:24 +02:00
pancake
a6e0d6c480 Merge rhash into rcrypto and improve apis ##api
* Update meson and make build systems
* Remove leftovers and unused dependencies
2022-09-15 11:25:40 +02:00
pancake
120f43583a Improve rabin2 help message and manpage 2021-11-22 11:25:56 +01:00
Khairul Azhar Kasmiran
d9057505dc
Set RPATH/RUNPATH on r2 libs too if local (#17639) 2020-09-15 09:16:14 +02:00
radare
5a1df188f6
Build fixes to make emscripten builds happy (#16406) ##build 2020-04-02 17:52:03 +02:00
Florian Märkl
aad2a2c79e Link sdb fully into r_util in meson (#15338) ##build 2019-10-23 15:52:19 +02:00
Khairul Azhar Kasmiran
18ef593b2e Set rpath if non-Windows Meson shared ##build (#15051) 2019-09-22 10:49:54 +02:00
pancake
8b37ac49b6 Add capstone dependency with the mk 2019-08-01 05:23:56 +02:00
radare
c93c094c40
Fix android-static ##build 2019-08-01 04:39:40 +02:00
radare
56cdeee666
Added val op hints to let the user define jmptbl sizes ##anal 2019-07-07 18:51:21 +02:00
radare
dc0892a1a0
Towards emscripten build fix (update sdb) ##build 2019-07-07 16:52:41 +02:00
pancake
dce703d88b Fix static linking 2019-04-02 16:02:31 +02:00
radare
82416b0212
Create libr_main and make all binaries use it ##core
* Cleanup the use of getopt with our wrapper
2019-03-08 14:22:59 +01:00
radare
73f76a99b2
Make RCons.is_interactive() into the RConsContext and improve loading projects in tasks ##cons (#13132) 2019-02-18 06:20:01 +01:00
pancake
75354b4587 Fix warnings 2019-02-05 00:35:01 +01:00
GustavoLCR
c1d0e59d4d Fix rabin2 extract path for Windows ##bin 2019-02-04 15:55:06 -06:00
David CARLIER
5d698c76ae Display file hashes into rabin via new mode ##bin 2019-02-01 17:11:31 -06:00
Maijin
f9d4ab6f65
Add Certificates in rabin2 ##enhancement (#12900) 2019-01-24 17:22:53 +01:00
radare
7060103292
Improve RBuffer api, start to refactor rbin to use more rbuf ##bin (#12495)
- Added a new rule in the DEVELOPERS.md file
2018-12-17 11:54:46 +01:00
dav1901
5b644dcb74 Minor cleanups/fixes (#12478) 2018-12-14 00:17:50 +01:00
dav1901
a6b44e03fe Fix warnings (#12309) 2018-11-25 01:46:57 +01:00
Riccardo Schirone
300844fa51 Introduce RBinArchOptions to avoid creating fake RBinFile/Objects ##bin 2018-11-22 15:14:37 +01:00
David CARLIER
3d830a3832 Couple of leak fixes 2018-11-15 16:34:11 +01:00
Riccardo Schirone
79edcb32f5
Make sure only one RBinObject is created for each RBinFile (#12169) 2018-11-15 11:44:46 +01:00
Riccardo Schirone
90058945d2 Remove "referenced" from RBinObject and remove get_object ##refactoring 2018-11-13 13:05:18 +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
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
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
radare
f7be81edbb
Fix instruments leaks (#11695)
* Fix a small memleak in the disasm reflines
* Fix huge args leaks in r_parse for arm
* Fix another memleak
* Fix memleak in VR
* Fix memleak related to bad use of r_list_join
* Fix warnings
* Fix two rlist related asserts
2018-10-01 19:57:33 +02:00
bannsec
8b6feae97b Memleak (#11688)
* Memleak

Guessing this is where the free should go... Ref #11687
2018-10-01 09:14:11 +02:00
David CARLIER
79871d4164 Fix #11671 (#11673)
Using macro for regex module too.
2018-09-27 11:16:44 -07: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
pancake
d34ada1a05 Minor fixes for mach0 signature parsing, fix crash in ae? and other null derefs 2018-09-18 11:06:00 +02:00
David CARLIER
acdb507945 core file: fix couple of leaks (#11571) 2018-09-18 13:16:44 +08:00
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
radare
4bb4a2ce30
Parse CodeSign blobs and compute sha1/sha256 in mach0 binaries (#11491)
- rabin2 -OC # wip requires proper refactoring and redesign
2018-09-12 16:03:36 +02:00
pancake
1875a7f4f0 Add error handling in ?x- 2018-09-02 15:58:13 +02:00
Neven Sajko
d8784641ee Add parentheses in macros where needed for safety (#11290) 2018-08-30 13:16:50 +02:00
Fangrui Song
08e6ed3b78 Fix some -Wincompatible-pointer-types-discards-qualifiers warnings (#10951) 2018-08-07 11:50:06 +02:00
Anton Kochkov
5b5667138c Fix UB and UAF 2018-08-07 13:00:06 +08:00
JohnPeng47
ab92677eda Add pemixed plugin 2018-08-06 01:22:11 +02:00
Khairul Kasmiran
943ebfebd5 Fixed typo in rabin2 usage help 2018-07-24 22:53:02 +08:00
Khairul Kasmiran
dfa196ddd2 Revert "End rabin2 json output with newline"
This reverts commit 40c68d9ec0.
2018-07-22 21:32:32 +08:00
Khairul Kasmiran
2d83bb2a26 entries->initfini for ieej/rabin2 -ee -j since former key is already used 2018-07-18 19:33:12 +02:00
Khairul Kasmiran
40c68d9ec0 End rabin2 json output with newline 2018-07-16 14:09:22 +02:00