Commit Graph

1461 Commits

Author SHA1 Message Date
pancake
a8106859a5 Fix crash in gdb:// 2017-04-10 17:00:26 +02:00
pancake
2930a25663 Disable scr.interactive in radiff2 2017-04-10 14:24:53 +02:00
pancake
370eef15fc Missing rconsprintify in radiff2 -x 2017-04-10 14:19:01 +02:00
pancake
a0f10c1731 Honor -e settings with radiff2 -x too 2017-04-10 13:45:26 +02:00
pancake
c538ee730e Fix r2 -H USER_PLUGINS path 2017-04-10 13:26:03 +02:00
pancake
c4a214e87b Implement radiff2 -e 2017-04-10 13:01:42 +02:00
pancake
870bb924da Fix memleak 2017-04-09 18:57:33 +02:00
pancake
d031b7f130 Implement reentrant thread locks in RThread and use them in core.cmd() 2017-04-08 00:52:49 +02:00
pancake
01477c74f0 More coverities fixed 2017-04-05 10:59:37 +02:00
alvarofe
42fb071d4b Fix #7198 - static code analysis by AppChecker 2017-04-02 12:22:04 +02:00
giomismo
6d2d797eae Fix #7193 : R2PM_ETCD has an extra "radare2" path (#7194)
Fixes alias in radare2rc at r2pm packages like esilburner
2017-04-02 08:36:30 +02:00
pancake
ce7104647e Add rahash2 -E xor and support -S - and -S @ to slurp stdin or files 2017-03-26 00:38:57 +01:00
pancake
f6ebc02a88 Add r2pm -H and clone with --recursive 2017-03-25 01:54:19 +01:00
alvarofe
b99e497fed Indent rahash2 with r2-indent 2017-03-22 21:49:16 +01:00
pancake
ca0c4908dc Add r2 -Q for faster quits 2017-03-20 10:12:59 +01:00
pancake
c024275459 Fix last covs 2017-03-19 03:22:00 +01:00
SkUaTeR
90ebc045ee Fix #7040 - detach debugger on windows at radare2 exit 2017-03-18 12:46:34 +01:00
davidpolverari
1fb422b532 Fix #6162 - Renames r_str_concat to r_str_append 2017-03-16 22:29:49 +01:00
pancake
f82930fd75 Fix latest covs 2017-03-15 12:12:55 +01:00
pancake
b4395185f1 Do not use system in rarun2 2017-03-14 12:04:50 +01:00
Roi Martin
8d5b1b5418 Fix build 2017-03-13 14:24:53 +01:00
pancake
03146b2bdb Remove two noisy debug printfs 2017-03-12 23:31:51 +01:00
pancake
f1a31c0730 Fix #7006 - Support decimal in unit strings (f.ex: 2.3K) 2017-03-12 23:15:57 +01:00
Rene Laemmert
a4191fc37c Add on*, file.offset and file.info to be able to save projects for files opened with -n -m (#6928) 2017-03-07 20:08:02 +01:00
xarkes
a9715e5e50 Fix #6927 - Added info about loaded config files when R_DEBUG is set 2017-03-07 20:06:27 +01:00
pancake
06dd26d74d Fix r2 -hh 2017-03-06 15:18:23 +01:00
Roi Martin
d82235285c Implement "rabin2 -L [plugin]" and command "iL [plugin]" (#6875)
* Fix r_str_cmp to follow the documented behaviour

Now r_str_cmp behaviour is consistent.

Before:
* Returns true if both pointers are equal.
* Returns false if the strings are equal.

Now:
* Returns true if both pointers are equal.
* Returns true if the strings are equal.

* Implement "rabin2 -L [plugin]"

- Display plugin info in a proper structured way for humans with
  "rabin2 -L [plugin]".
- Fix current "rabin2 -L [-j]" output.
- Allow to specify "-j" before or after "-L".

Fix issue #6861.

* Implement command iL [plugin]

* Fix json output in rabin2 -L and iL
2017-03-01 20:05:40 +01:00
pancake
d6756e235c Implement author and version of RAsmPlugin 2017-02-28 02:26:55 +01:00
pancake
ef463f983e Fix rabin2 -qL -jL and add version and author in RBinPlugin 2017-02-28 02:16:36 +01:00
pancake
81832436e0 Honor rabin2 -H, -rH, -qH and -jH 2017-02-27 10:55:47 +01:00
alvarofe
78b144faee Fix UaF when r2 -HH 2017-02-26 00:37:26 +01:00
pancake
b2af808da7 Do not use -hh in r2pm 2017-02-25 20:30:03 +01:00
pancake
272c8b493c Honor library path in r2pm 2017-02-24 15:24:11 +01:00
Rene Laemmert
496b1914ab fixes r2 -H <var> (#6842) 2017-02-24 13:15:35 +01:00
pancake
a622aaba3e More rework on the RBinField refactoring 2017-02-24 11:05:04 +01:00
pancake
ee49e31d4c Do not override scr.{color,prompt,interactive} on project load 2017-02-23 17:52:40 +01:00
pancake
25f1d59036 Implement pxx and pxX for hex-less hexdumps 2017-02-23 17:34:12 +01:00
pancake
579b731545 Add r2 -2 to start r2 without stderr 2017-02-23 12:13:17 +01:00
pancake
0ae4a5c3e8 More r2-indent fixes. and reindent a bunch of files 2017-02-20 02:54:16 +01:00
pancake
be78c631b0 Fix #6806 - invalid delta diff boundaries 2017-02-18 00:04:13 +01:00
berney
496a500c08 Uses correct TEXT section name as of Sierra, fixes #6797 (#6799) 2017-02-17 04:30:05 +01:00
pancake
bfcd6f3147 Fix #6789 - rasm2 obey R2_ARCH and R2_BITS env vars from r2 2017-02-15 03:37:13 +01:00
pancake
b8540e98a8 Fix r2 -H RHOMEDIR 2017-02-15 02:35:54 +01:00
pancake
70930f4496 Bring back the interest on sys/indent.sh 2017-02-10 02:05:58 +01:00
pancake
391772c96d Release 1.2.1 - Trust me 2017-02-05 04:30:44 +01:00
pancake
a2a666eda8 Fix #6678 - crash in r2 -d malloc://512 - 2017-02-05 00:27:01 +01:00
pancake
b32df6e49d Fix many dd subcommands and enhance rarun2 -t 2017-02-03 10:21:18 +01:00
pancake
57d05fb4a1 Add rarun2 -t to wait for a tty connection 2017-02-03 01:56:41 +01:00
zonkzonk
56366df728 Removing path in shell redirections 2017-01-31 22:13:32 +01:00
pancake
0af4092ee4 More fixes for the emscripten build 2017-01-29 23:54:10 +01:00
pancake
9eef413f6a Expose better API for emscripten 2017-01-29 22:17:05 +01:00
pancake
defafbf1b2 Reduce asmjs build size 2017-01-29 20:00:01 +01:00
pancake
3c9e80372f Fix #6598 - r2pm db2 issue and add 2 arm64 bonus ops to the assembler 2017-01-29 03:44:18 +01:00
pancake
5974d2035f Enhance ragg2-cc to support -a arm -b 64 -k darwin (iOS) 2017-01-29 02:36:50 +01:00
Álvaro Felipe Melchor
048d328ba4 Fix #6476 - rabin2 dump section content in screen
If the user does not specify an output file the content is printed on
the screen
2017-01-28 16:55:06 +01:00
jvoisin
3a13addb77 Improve radiff2 -v 2017-01-26 00:16:52 +01:00
Álvaro Felipe Melchor
19659c9b06 Workaround in fat binaries
This is not the final solution to the problem just a workaround.

Still the OS kill rabin2 -x with a dyldcache from 32 bits
2017-01-25 23:47:32 +01:00
pancake
bbed5daef1 Add some hints to optimize asmjs build 2017-01-23 13:56:10 +01:00
pancake
d1ecaeae3c Implement asmjs.openURL() and add proper io plugins for asmjs 2017-01-23 04:32:11 +01:00
pancake
fafc74102a Add emscripten entrypoint 2017-01-23 03:43:11 +01:00
pancake
7d00aed358 Fix #4528 - radiff2 -UDD to diff pdc 2017-01-20 16:13:54 +01:00
pancake
014cd45daa Make radiff2 work with fat bins again 2017-01-19 15:58:46 +01:00
pancake
8f87570202 Implement support for external repositories via r2pm -a 2017-01-18 00:22:56 +01:00
Sven Steinbauer
4687135c5b Add asm directives help (-hh) and update manpage 2017-01-16 12:03:06 +01:00
pancake
28f6954414 Add rabin2 -P in short help message 2017-01-16 11:35:16 +01:00
nevun
fb31d8e64c Sort and uniq imports and strings before returning them 2017-01-16 10:14:49 +01:00
Álvaro Felipe Melchor
43e77cf459 Fix #6496 - add baddr and laddr in RBinXtrData 2017-01-14 16:15:52 +01:00
pancake
5fb9319613 A bit more work for r2bb 2017-01-13 12:49:42 +01:00
Álvaro Felipe Melchor
840340b9e8 Update help for rabin2 -OC to get entitlements 2017-01-10 22:21:32 +01:00
Sven Steinbauer
58252b4cc2 Fix #6356 - Move spp integration to libr/asm.c
* Make spp parsing optional
* Add -p arg to rasm2
2017-01-10 00:57:49 +01:00
pancake
3f164b2e48 Document ldid in rabin2 -O 2017-01-09 15:57:22 +01:00
pancake
b5fa234124 Enhance the printable check used in radiff2 -u/U 2017-01-09 03:37:24 +01:00
pancake
a94551a775 Add radiff2 -q and add colors in -u 2017-01-09 03:26:07 +01:00
pancake
5ca1be956d Implement radiff2 -i, fix -z and add -u/-U
* Unified support using:
  - internal bindiffer
  - using system's diff program
* Compare list of imports or strings of given files
* Add proper apis to handle all this
* Automatic hexdump when comparing binary buffers (-U)
* Update documentation
2017-01-09 03:18:14 +01:00
pancake
529c578487 Fix rax2 Ox (octal output) 2017-01-09 00:46:32 +01:00
Eugene
9c1ae16ed5 Fix #6445 - Add -z option for radiff2 to diff strings of binaries 2017-01-09 00:03:42 +01:00
Álvaro Felipe Melchor
42e9b5d398 Fix NUL dereference 2017-01-08 22:28:01 +01:00
pancake
c73a7ce7c1 Add USER_PLUGINS in r2 -H 2017-01-07 03:22:24 +01:00
Eugene
4c7928b5cd Fix #6405 - Implement Rust Demangler
* Added rust demangling based on cxx-version
* Add rust support for rabin
2017-01-05 00:52:13 +01:00
pancake
6935ce1377 Fix rabin2 for fatmach0 when not specifying the sub-bin arch/bits pair 2017-01-04 22:01:22 +01:00
pancake
2f5c778abe Support stdin slurp for rahash2 -E 2017-01-03 16:51:12 +01:00
pancake
c2abb6ab2f Initial refactoring of the r_syscmd APIs and begin with binr/r2bb 2017-01-03 03:48:55 +01:00
pancake
fa82c4ce05 Fix #6364 - UAF in r2 -d 2017-01-03 02:55:24 +01:00
pancake
d852b46226 Fix r2pm -c status message 2016-12-24 03:06:38 +01:00
Anton Kochkov
e20ac7a139 Fix some more coverities 2016-12-22 00:21:11 +03:00
pancake
28a60ba980 Release 1.1.0 - codename preccc 2016-12-20 03:13:05 +01:00
pancake
329e093192 Update spp from git and fix integration with rasm2 2016-12-19 03:07:52 +01:00
Sven Steinbauer
865267fc86 Add spp to r2 utils build (#6334)
Integrate SPP into rasm2 to parse asm files
2016-12-18 09:46:10 +01:00
alvaro_fe
10fe20ede6 simplify the process of loading fat binaries
We avoid parse everything more than once and just when needed
2016-12-15 21:04:28 +01:00
pancake
8b0d084596 Honor HOMEBINDIR in PATH for r2pm and reset --hard @^^ in update 2016-12-13 03:13:45 +01:00
pancake
8c55d197b6 Fix #6298 - null deref for -R with unexistent file 2016-12-09 21:03:57 +01:00
Álvaro Felipe Melchor
15022e85e1 clean anal hints when using xtr plugin 2016-12-04 20:41:56 +01:00
Elia Geretto
31e8d7cb68 Fix various memory leaks (#6272)
* Fix bits_ranges memory leak in anal.c
* Fix anal->reg memory leak and prevent use after free in plugin.c
* Fix reg->allregs memory leak in reg.c
* Fix dbg->plugins memory leak in debug.c
* Fix io->plugin_default memory leak in io.c
* Fix plugin_free not deallocating plugin in bin.c
* Adapt to style guidelines
* Fix memory leak in r_bin_object_free and resolve double free
* Fix o->kv memory leak in r_bin_object_set_items
* Fix memory leak pushing arena on reg init
* Fix io->plugin_default memory leak in io.c
* Adapt to style guidelines
* Fix pfile memory leak in radare2.c
* Add braces to if in bin.c
2016-12-01 09:09:59 +01:00
SkUaTeR
94a1c9ad80 fix launch in debug (#6261) 2016-11-25 16:26:59 +01:00
pancake
6f66cf9ee6 Fix sys/static.sh 2016-11-24 10:42:24 +01:00
pancake
371ff04d46 Fix #6108 - Avoid underscore in eval vars 2016-11-23 13:13:06 +01:00
pancake
3fb96ff37f Fix last COVs and hopefully make travis green 2016-11-23 10:25:00 +01:00
pancake
35e3af493e Fix r2 -s main 2016-11-23 00:01:15 +01:00
pancake
e41ffaac60 Fix build 2016-11-22 15:36:03 +01:00
pancake
8e3278b5a6 Fix seg@gpr for OSX-32/64 Debugger. Remove debug printf 2016-11-22 00:20:36 +01:00
pancake
9b7b8b8326 Fix entry0 symbol in Linux debugger 2016-11-14 08:58:55 +01:00
Álvaro Felipe Melchor
b5772a096f fix null dereference 2016-11-21 18:09:27 +01:00
pancake
15161e3104 Fix r2 -d 2016-11-21 17:03:26 +01:00
pancake
b45b4afc0e r2 -R doesnt require file as argument 2016-11-21 03:51:41 +01:00
pancake
28c7ec564a Implement bin.debase64 and RABIN2_DEBASE64 in RBin for r2 and rabin2 2016-11-18 13:29:36 +01:00
pancake
a8ad157026 Initial support of linux-arm-32 for ragg2-cc 2016-11-14 04:24:50 +01:00
pancake
e278693720 Fix #6180 - avoid double slash to make windows bash happy 2016-11-13 01:42:25 +01:00
Sebastian Reichel
d1f5184f54 libr2.so: fix soname version (#6177)
Use LIBVERSION to generate soname of libr2.so, so that it honors --with-libversion.
2016-11-11 18:44:37 +01:00
pancake
620234f69d Fix windows build 2016-11-09 02:42:59 +01:00
pancake
ca730772f4 Fix wrong usage of sizeof(ptr) 2016-11-08 15:12:43 +01:00
Maijin
72313ca8de Add Sf by default on -nn #5289
Add Sf by default on -nn
2016-11-08 11:24:57 +01:00
Álvaro Felipe Melchor
aeb5d1be4b Added help message when izz after -nn
When opening a binary with -nn internal structures are not initialized being
one of them RBinFile that is need to retrieve the info.

However, when opening an image for example RBinFile exist but we do not have a
corresponding plugin or binary format to say so we are able to get strings.
This will be need a great refactor to handle correctly and furthermore
something I did not like is that baddr is only accesible through RBinObject and
I think it should be within RBin at least.

This was working before cause rabin2 was being called but without -B as
parameter. I have resorted for eprintf message so the user can configure as his
need.
2016-11-07 19:47:56 +01:00
pancake
ed9cd818f3 Initial support ndk-gcc in ragg2. Tested for arm64 2016-11-05 04:51:20 +01:00
pancake
f9e9962a6e Fix #6126 - r2 -f work with -c 2016-11-04 23:10:00 +01:00
pancake
9c57ff07a6 Implement Po& and r2 -tp to load projects in a thread 2016-11-04 23:07:02 +01:00
Álvaro Felipe Melchor
776577d553 get rid of rabin2 when ik* 2016-11-03 16:51:51 +01:00
pancake
acdf944a4a Do not recommend to update after r2pm update 2016-11-02 09:23:02 +01:00
vraelvrangr
f225ec0bc3 Fixing help issues in rax2 2016-11-02 00:06:08 +01:00
pancake
196e5a763c Add ik* command to load bin headers info, and use Cf for that 2016-10-27 23:51:22 +02:00
szt
f8df2d0655 pkgconfig fix (#6050) 2016-10-27 12:08:14 +02:00
pancake
d41b577106 Fix #5924 - r_flags -> r_flag 2016-10-27 01:07:58 +02:00
pancake
be9df39f6f Fixed 40 null derefs reported by coverity 2016-10-20 15:02:25 +02:00
Álvaro Felipe Melchor
c5ce0d2140 clean up rabin2 2016-10-19 23:02:36 +02:00
pancake
9f4c8768a7 Implement prj.files and fix some bugs in project listing and saving 2016-10-17 23:58:39 +02:00
pancake
cea2c80d56 Show flags in dm, add dmq and add resolver in rnum 2016-10-16 02:34:54 +02:00
pancake
6773d95247 Blindly fix the iOS build 2016-10-12 15:31:03 +02:00
pancake
2ec01e9fff Fix r2pm -c 2016-10-08 00:54:43 +02:00
pancake
fe2a919d49 Fix #4556 - use jetsam limit to bypass launchd memory restrictions on iOS 2016-10-06 15:53:46 +02:00
BlueC0re
8a5b5ae7b7 added support for escape sequences in r_num_as_string (#5897) 2016-10-06 11:24:39 +02:00
pancake
c1b4cd666f Do not run aav in aa on ARM 2016-10-05 16:01:16 +02:00
Riccardo Schirone
888841ee33 util: fix debruijin arguments meaning and uses (#5914) 2016-10-05 02:43:04 +02:00
pancake
9eb1a2903b Enforce hexpair parsing rules. To fix rahash2 -S foo without s: 2016-10-04 15:46:46 +02:00
pancake
d7e0be5dad Implement rasm2 -s? and refactor this a bit 2016-10-04 15:01:02 +02:00
pancake
516a095a04 Fix #5909 - r2 -o is now -k 2016-10-04 14:47:09 +02:00
pancake
41d6e9edde Add bash autocompletion support 2016-10-04 14:34:06 +02:00
Álvaro Felipe Melchor
7ba81f6886 More work into ragg2 2016-10-02 23:46:57 +02:00
pancake
c6107b0dbe Add R2PM_OLDPWD var for r2pm 2016-10-02 11:58:46 +02:00
pancake
8857900863 Add support for zip and 3rd url parameter 2016-10-02 11:53:12 +02:00
pancake
37f353b693 Add R2PM_SUDO and enhance r2pm -c 2016-10-02 11:33:25 +02:00
pancake
4762f73c4e Fix prompt in r2pm cd 2016-10-02 01:26:53 +02:00
pancake
c3bd6a6a10 Add r2pm ls|cd 2016-10-02 00:37:09 +02:00
pancake
d482f8974f Add R2PM_TGZ for r2pm 2016-10-01 14:04:54 +02:00
Hi-Angel
9855e55e98 More documentation for rabin2 (manpage and help) 2016-09-28 12:05:12 +02:00
pancake
c2c0e37e95 Grab CERTID from environment to ease OSX builds 2016-09-26 16:52:21 +02:00
pancake
d1088fa95d Add radiff2 -S to specify which column to sort for code diffing 2016-09-22 20:33:26 +02:00
Jayakrishna Menon
5c64af6ea7 beautify code 2016-09-22 19:30:15 +02:00
Jayakrishna Menon
6c71de7b11 implementing sorting of code diff 2016-09-22 19:30:15 +02:00
pancake
f5b255603a Bring back the old buffer_distance algorithm, make levenstein optional 2016-09-21 12:07:44 +02:00
pancake
052ae7de4b Optimize ios build for size (7MB -> 2.8MB) 2016-09-20 11:19:01 +02:00
pancake
57fcc54a4d Fix #5790 - 0>> shouldnt quit the prompt 2016-09-19 17:44:22 +02:00