Commit Graph

1430 Commits

Author SHA1 Message Date
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
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
pancake
e10c664c55 Add msr/mrs for the armass64 assembler 2016-09-16 18:27:42 +02:00
pancake
90ddc675df Fix r2 -H 2016-09-16 15:36:24 +02:00
saucec0de
f596505c17 Fix #5474: proposal of fix (#5782) 2016-09-16 11:32:08 +02:00
pancake
ce497415eb Fix pkg-config issues for some systems 2016-09-15 22:25:21 +02:00
pancake
1449d61850 Fix regression in rasm2 -d 2016-09-15 17:30:38 +02:00
pancake
edf019d261 Add PYPATH to r2pm 2016-09-14 17:31:14 +02:00
pancake
0167ba90a1 Add r2pm -w and handle R2PM_DEPS 2016-09-13 01:01:29 +02:00
pancake
d01f3832ad Fix #5742 - Honor -n in -d 2016-09-12 23:04:44 +02:00
pancake
7c1d783d4d More fixes for ios-static 2016-09-12 21:13:24 +02:00
pancake
618ac8ad03 Fix format string vuln in r_cons_yesno 2016-09-09 14:08:47 +02:00
pancake
7c0f154dea Fix #5627 - Iterate over all instructions with @@i 2016-09-02 18:11:56 +02:00
pancake
4429de16f9 Fix pa/pad for big/lil endian 2016-09-01 22:34:28 +02:00
pancake
dc545c8102 Fix regression in rasm2 -e 2016-09-01 21:50:04 +02:00
pancake
0dab982923 Disable the uncolorful non-tty behaviour by default 2016-09-01 12:06:53 +02:00
pancake
697de91c86 Fix #5038 - Disable color when stdout is not in a terminal 2016-09-01 12:06:50 +02:00
pancake
e04498ac02 Add rabin2 -X and r_bin_package for FAT and ZIP 2016-08-30 04:26:20 +02:00
Tiago Gasiba
520106bac9 Fix #5556 - prints all hashes, even if have gap between the bits 2016-08-28 19:36:59 +02:00
Rakholiya Jenish
66772837c0 Add support to have custom directory name for cloned repo 2016-08-27 01:36:40 +02:00
Damien Zammit
3ae075cba9 rabin2: Fix check for binaries and as a result don't need to open twice (#5614) 2016-08-26 22:21:06 +02:00
pancake
00d0aedb9b Fix Android build 2016-08-16 14:41:06 +02:00
dx
4b263b3475 Fix a handful of boring leaks (#5518)
Valgrinding to get exp. Testing with "r2 -Aqcq /bin/ls"

Before:

       definitely lost: 22,735 bytes in 250 blocks
       indirectly lost: 23,542 bytes in 605 blocks
         possibly lost: 2,464 bytes in 7 blocks
       still reachable: 3,876,216 bytes in 80,761 blocks

After:

       definitely lost: 25,216 bytes in 58 blocks
       indirectly lost: 24,830 bytes in 739 blocks
         possibly lost: 0 bytes in 0 blocks
       still reachable: 20,105 bytes in 34 blocks

The "goto beach" (named like that for consistency) change resulted in
freeing most of the "still reachable" stuff on quit, which also moved
stuff out of "possibly lost", so.. it looks like it's leaking more now.
Yay.
2016-08-16 00:45:33 +02:00
Chris Rorvick
9b47635f0c remove `next' param from r_core_block_read()
This was originally used to cause a seek to the next block prior to
reading such that successive calls to r_core_block_read() would progress
through memory one block at a time.  This was broken, though, by commit
452669d941 ("more cleanup in r_core_block_read") when when it used
`next' to directly calculate the offset rather than via a seek.

Only one call site remains that attempts to read the next block instead
of the current, and this probably was not even observable due to the
"hacky fix" added in commit 3bfa61946e ("Cleaner pvj, fix tinype load,
and honor 'ao N's").

The current of semantics of `next' appear to be broken and there is very
little dependence on it.  If the original behavior should be restored
anywhere, it would be much better to add a new function, or just do the
seek explicitly, rather than parameterizing r_core_block_read() on it.
2016-08-15 14:26:58 -05:00
pancake
75fd458df8 Fix #5007 - Clarify the difference of hash/encoder/crypto 2016-08-15 01:10:42 +02:00
Paul
d670aaa77a Adding R2PM_GITDIR for easy packages local testing (#5475)
* Adding R2PM_GITDIR for easy packages local testing

Usage:

export R2PM_DBDIR="/path/to/the/folder/with/package/description"
export R2PM_GITDIR="/path/to/the/root/folder/of/the/local/repository"
r2pm -i package
2016-08-10 16:20:15 +02:00
pancake
a2d9300d77 Fix #5339 - Projects now work with r2pipe 2016-08-09 12:53:34 +02:00
pancake
5cafd20194 Show r2pm clone directory in r2pm init 2016-08-08 11:40:31 +02:00
pancake
c793151d58 Fix rabin2 -L empty output issue 2016-08-07 18:57:31 +02:00
pancake
d07b788786 Fix #5404 - r2agent -v show version 2016-08-07 00:43:16 +01:00
pancake
2bc30dd1cd Add r2pm -r to run commands with R2PM_BINDIR in PATH 2016-08-05 01:19:59 +02:00
pancake
53e9e91b4c Increase rafind2 -ZS wide and do not run aad in aaa 2016-08-05 00:30:56 +02:00
pancake
95283d5531 Fix indent in r2pm 2016-08-03 14:21:42 +02:00
pancake
9fda59e26d Only use ~/.config/radare2/prefix/bin 2016-08-03 14:03:09 +02:00
pancake
d179c06af3 Support wide strings in rafind2 -ZS 2016-08-03 01:17:27 +02:00
pancake
de08ce40df Better stdin_gets() in rabin2 2016-08-02 02:11:32 +02:00
pancake
77f19155b4 Fix io.self dlsym for r_lib_dl_open 2016-07-30 14:15:29 +02:00
pancake
838e4d6fa2 Add dlsym, call, alarm and other goodies to self:// 2016-07-28 17:12:05 +02:00
monosource
67b1e63ab3 Fix rax2 b/B usage (#5411) 2016-07-28 15:28:31 +02:00
monosource
9e9d21b732 Added r2agent man page (#5409) 2016-07-28 13:37:01 +02:00
Maijin
7cecadb74a Removing useless files/doc 2016-07-28 07:59:10 +02:00
Maijin
7938640445 Move all /t/ from r2 to r2r 2016-07-27 19:19:30 +02:00
Maijin
80171b0dc5 Cleaning r_util.h 2016-07-27 16:55:20 +02:00
Álvaro Felipe Melchor
f1236563f3 Refactor RBin.Xtr to speedup dyldcache extraction
* Refactoring RBinXtr API.
* Cache sub-fat bins in sdb to save memory.
* Fix the error while loading sub-bins of different archs.
* more work into xtr to fix the remaining tests
2016-07-27 11:01:57 +02:00
Kodoque1
e582ab8dbb Correction for #5349 (#5369)
* q[y/n][y/n] options added

* Adding crowell remarks

* checking beginning whitespace and fixing else if

* updated

* cleaning update
2016-07-25 10:37:51 +02:00
NikolaiHampton
392dd94bf7 Optimisation of Levenshtein calc in radiff2 -s
- Optimised the distance calculation for radiff -s
- Fixed a bug in radiff.c that where verbose was always true.
- Added check that calloc() was successful.
- Shuffled code around to minimise use of free()
- Added some comments.

Speeds up the radiff2 statistical diff. Drastically reduced the ‘edit
distance search space’ by ignoring ranges that can’t affect the edit
distance. Improves search for similar files (common use case?), can
reduce the search space significantly:

One file tested went from two unknown versions of httpd, on MacBook has
a 28 hours processing time, down to ~13 minutes. Results will vary based
on file differences the more similar the files, the faster it'll run.
2016-07-17 12:10:20 +02:00
Maijin
c274afe748 Fix #3286 - Use stdbool.h 2016-07-12 22:15:19 +02:00
Kodoque
574e74e89a q[y/n][y/n] options added 2016-07-12 21:50:25 +02:00
pancake
f85536ac76 Add agC for full program callgraph
Fix afi indentation issues
2016-07-05 17:37:29 +02:00
pancake
a2a032833e Show file size if not matching in radiff2 2016-07-01 14:08:25 +02:00
pancake
8361f2ea83 Honor RIO in radiff's slurp - thanks @brainstorm for the tip 2016-07-01 14:02:46 +02:00
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
Jeffrey Crowell
10b9fc1db0 rm unneeded calls to r_cons_printf 2016-06-26 00:17:16 -04:00
Jeffrey Crowell
8f205587ba kill r_cons_puts add r_cons_print/r_cons_println 2016-06-25 13:49:58 -04:00
pancake
1d5df40044 Fix r2 -nq - regression 2016-06-20 12:02:43 +02:00
pancake
90325a3ac0 Fix r2 -qc regression 2016-06-20 11:29:49 +02:00
pancake
ab691c3a0f Fix r2 -i regression and add r2 -I for pre-scripting 2016-06-20 10:05:47 +02:00
pancake
6d4c16923d Run commands a bit before 2016-06-20 01:41:09 +02:00
pancake
4caafc964d Refactor r_io, while fixing some bugs and use more RList 2016-06-20 00:29:41 +02:00
pancake
81c977c979 Refactor r2 -iL and add oL (load plugins before r2 -L) 2016-06-19 23:32:58 +02:00
pancake
f96f00d62d Fix #5158 - Merge r_db into r_util 2016-06-17 12:19:16 +02:00
pancake
59f94c63aa Fix some critical COVs in RBin 2016-06-14 02:42:24 +02:00
jnahorny
f7b8f4c1ea Get rid of the error when 'mkdir' wanted to remove unexisting directory (#5128) 2016-06-12 23:16:36 +02:00
pancake
98e9692572 Do not install/uninstall the package database 2016-06-08 00:14:28 +02:00
pancake
3bf418016f r2pm: d -> db 2016-06-07 23:46:26 +02:00
pancake
cf544b794f Completely move r2pm packages to radare2-pm 2016-06-07 23:42:08 +02:00
pancake
95af521700 Fix #5087 - properly reload project files 2016-06-07 22:38:29 +02:00
dx
63f474706b rahash2: Don't try to unescape inputs provided as hex strings (-x) (#5075)
Fixes #4642, which is about using '-x 5c', which is a backslash.
2016-06-04 20:31:51 +02:00
Jeffrey Crowell
b3b77ac3f1 fixup keystone-lib installer 2016-06-03 22:45:47 -04:00
pancake
03294af32b Fix null deref in libr_asm and add lang-python r2pm pkg 2016-06-02 02:45:38 +02:00
zlowram
8e84edb902 R2pm fix (#5058)
* Exported R2PM_PLUGDIR

* Fixed global path for plugins
2016-06-01 15:00:41 +02:00
@bezjaje
bb7dd7833e r2pm: added global R2_RCD variable (#5056)
* r2pm: added global R2_RCD variable
+ removed "local" R2_RCD variable from esilburner and syms2elf
+ improved esilburner package

* r2pm: esilburner: using $() instead of backticks

* r2pm: renamed R2_RCD to R2PM_ETCD
2016-06-01 12:15:10 +02:00
pancake
03b3e95c8d Fix build 2016-05-31 23:42:53 +02:00
Jeffrey Crowell
ae52bb5ded add keystone-lib package to r2pm 2016-05-31 20:27:46 +00:00
@bezjaje
aa02c43af9 r2pm: added esilburner package (#5051) 2016-05-31 11:49:43 +02:00
pancake
eca8aaedc2 Add C# plugin r2pm package 2016-05-31 11:10:30 +02:00
NikolaiHampton
2c50dd0c59 Memory efficient implemenation of Levenshtein Distance for radiff2 (add -V)
Implemented the iterative two matrix row version from here: https://en.wikipedia.org/wiki/Levenshtein_distance
and here: http://www.codeproject.com/Articles/13525/Fast-memory-efficient-Levenshtein-algorithm

Memory usage was originally 200Gig for a couple of 100K files ~(sizeA*sizeB), now about ~(sizeB*2)...
2016-05-26 11:03:01 +02:00
pancake
132b173b87 Refactoring $B and decompose $F into $FB $FE $FS and $FI + code cleanup 2016-05-25 23:34:06 +02:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +02:00
zlowram
96ede64b25 Fixed www-enyo uninstall (#4989)
Fixed uninstall for www-m package

Fixed uninstall for www-p package

Fixed uninstall for www-t package

Fixed global install for webuis
2016-05-24 15:39:13 +02:00
pancake
4e99730e44 Add r2pipe-vala r2pm package 2016-05-24 04:33:08 +02:00
pancake
9130c78da9 Avoid home install for vala and valabind r2pm pkgs 2016-05-24 03:38:29 +02:00
pancake
730fde95b4 Fix microblaze r2pm package 2016-05-24 03:31:42 +02:00
pancake
5142640dab Fix bcl uninstall target 2016-05-24 03:29:30 +02:00
pancake
99d3edd6e4 Fix msil r2pm package 2016-05-24 03:26:15 +02:00
zlowram
b8c81d293f Fixed r2pm and implemented -gu option (#4988) 2016-05-24 03:10:09 +02:00
gk
0461e567e9 Fix #4927 - Add rabin2 -qqz to list only strings (no offsets or sizes) 2016-05-23 22:53:40 +02:00
pancake
801b18c9d7 Fix bcl r2pm install issue 2016-05-23 20:16:28 +02:00
pancake
5fa0f2f7d2 Update many r2pm packages. still some more work to do 2016-05-23 19:04:21 +02:00
pancake
6385ebdd58 Fix psosvm and armthumb r2pm packages 2016-05-23 18:53:26 +02:00
pancake
2a39d78ed9 Fix r2pm unicorn packages 2016-05-23 16:20:57 +02:00
pancake
f900683419 Fix x86bea r2pm pkg 2016-05-23 15:41:33 +02:00
pancake
1f63bdc764 Initial import of the VC4 disassembler 2016-05-23 13:04:00 +02:00
pancake
be6030620e Honor MAKE env var in r2pm 2016-05-23 12:58:33 +02:00
Sven Steinbauer
8da8ad740f Cleanup fixes
* For commit comments and compiler errors
* Fixes for PR comments
* fix some "infer fixes" commits

Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2016-05-23 11:25:44 +02:00
Sven Steinbauer
eef32d0260 First few fixes for infer scans
Fixes a few memleaks and several NULL dereferences

Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2016-05-23 11:25:44 +02:00
pancake
3b7d4be902 Honor BINDIR in radeco, Add r2pipe-cs 2016-05-19 04:43:22 +02:00
pancake
7ea97d30d3 Fix bpf package 2016-05-19 04:26:46 +02:00
pancake
f933d584de Fix mdmp r2pm package 2016-05-19 04:24:00 +02:00
pancake
5ec01b1414 Fixes for r2pm -i vala 2016-05-19 04:11:10 +02:00
pancake
4a5085acb0 Add keystone r2pm package 2016-05-19 01:24:50 +02:00
pancake
c967514443 Add support for quiet and json listing of rasm2 -L and e asm.arch=? 2016-05-19 00:38:33 +02:00
Gautier Colajanni
c812522522 Update r2pm installation of UI 2016-05-18 18:31:26 +02:00
pancake
ca73b22c02 Hint -A in -C for radiff2 2016-05-17 21:48:36 +02:00
pancake
2e06158c71 Handle -- in rarun2 2016-05-17 10:36:33 +02:00
pancake
a59bd2fad6 Update r2pipe-js, retdec and fix swf build 2016-05-16 23:55:03 +02:00
pancake
479449b23b Fix r2pm retdec package to handle -i and -gi 2016-05-16 23:36:25 +02:00
pancake
d9cdd29268 Fix endian issue in crc16 and crc32 2016-05-16 02:08:59 +02:00
pancake
a2fb171a37 Add R2PM_WWWROOT, update www-t and add http.homeroot r2 var 2016-05-16 00:59:29 +02:00
pancake
411cad06e2 Update r2pm manpage and fix #4843 2016-05-15 23:54:47 +02:00
pancake
df2ce5cdcf Initial support for r2pm -gi and -go, export HOME_PKG_CONFIG_PATH and R2VERSION 2016-05-15 23:43:15 +02:00
pancake
02161f0bb8 Add r2 -qv and update manpage 2016-05-15 23:19:06 +02:00
Anton Kochkov
33fd28192f Fix Yara installation with r2pm 2016-05-15 22:57:47 +03:00
Rakholiya Jenish
502870f07b list all encoders/decoders supported by woE/woD and rahash2 -E/-D (fix #4851)
list all encoders/decoders supported by woE/woD and rahash2 -E/-D (fix #4851)
2016-05-11 22:25:54 +02:00
Maijin
6464e44a75 Fix #4834 2016-05-11 20:46:24 +02:00
SkUaTeR
75ea9cea3c Fix w32 debugger 2016-05-11 13:09:40 +02:00
pancake
9a86edb6b3 Use '0' in visual to seek at the beginning of the function and fix r2 -AAAAA 2016-05-11 04:25:16 +02:00
Sven Steinbauer
b276795f1c Add r2 -r ? style output to rax2 2016-05-10 22:13:24 +02:00
Álvaro Felipe Melchor
b7cc6c04d7 LDID parse signature in mach0 binaries
* added iC command to show signature info

in the case of mach it shows entitlements

* added rabin2 -OC to get signature info from binary

* change swap to r_read_bleX new API

* change eprintf to r_cons_printf

* add const char in plg->signature
2016-05-09 23:42:28 +02:00
Damien Zammit
a68955c268 Fix rasm2 endian -e flag (#4824) 2016-05-09 15:24:01 +02:00
pancake
d651283c57 Fix #4813 - Use dbg.map when in r2 -d 2016-05-09 11:35:52 +02:00
Rakholiya Jenish
3019bb477c Add support for punycode via woE and woD and rahash2
Also add aes-cbc support by getting IV from user
2016-05-07 12:31:13 +02:00
Damien Zammit
632dccc217 Remove LIL_ENDIAN macro and configure option
TODO: Remove other endian cruft from:
- hashing algs
- judy
- squashfs
- grub
- tms320

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-06 10:21:55 +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
pancake
6261fe32fb bugfixes + testsuite for the Internal Swift demangler 2016-05-03 04:31:36 +02:00
pancake
8500509605 Add R_DEBUG in rasm2 -hh 2016-05-02 02:47:56 +02:00
Qwokka
8b0adb129a Add "-m32" and "-m64" flags for cross compilation (#4743) 2016-05-01 18:33:13 +02:00
pancake
d4116d5c4f Fix rabin2 -D 2016-04-28 02:02:16 +02:00
pancake
e9dc4ae89e Fix #4695 - no prompt after r2 -qp 2016-04-26 19:11:11 +02:00
pancake
7e9c1db208 Honor r2agent -a in children 2016-04-25 23:09:39 +02:00
pancake
627e1a74a0 Fix ios-sign 2016-04-25 16:52:36 +02:00
pancake
3dc15adbe0 Oops, missing static build fix 2016-04-25 14:52:28 +02:00
pancake
3758b3a54a Fix static/android build 2016-04-25 12:40:01 +02:00
Andrey Torsunov
1e910dca6c Fix #4670 - Add checking of dbg.exitkills in non-interactive mode 2016-04-25 12:46:24 +02:00
pancake
fafc626b55 Performance optimization for rabin2 (request vs all) 2016-04-23 00:47:00 +02:00
andrey.torsunov
de1dac3f60 Add config option dbg.exitkills for issue #4670 2016-04-22 16:13:32 +02:00
pancake
1ac0d47652 Honor aho in pd 2016-04-21 01:38:08 +02:00
pancake
8b08a8cba8 Add radiff2 -x in help 2016-04-21 01:29:57 +02:00
pancake
a1eb92966e Fix #4663 - segfault in r2 -d 2016-04-19 19:46:41 +02:00
pancake
1f1a963cf2 rabin2 -x is now like r2's cc 2016-04-18 03:21:52 +02:00
Rakholiya Jenish
f1fe53ef48 fix warning
minor fix

update -h
2016-04-15 15:52:52 +02:00
pancake
2b6ccd5a3f Make clean in pyc swf r2pm packages 2016-04-15 04:01:50 +02:00
Rakholiya Jenish
e1660b352a add aes-cbc encryption to rahash2
remove unnecessary comment

update man
2016-04-14 22:39:57 +02:00
Rakholiya Jenish
421a63a849 cleanup code, and use direction for specifying encryption/decryption 2016-04-13 21:54:12 +02:00
pancake
ad795c2b8e Fix static build 2016-04-13 15:10:53 +02:00
Rakholiya Jenish
cfe1cc8c6c refactor the code and fix rc2 ecb implementation
Cleanup in cmd_write.
2016-04-13 12:54:34 +02:00
Rakholiya Jenish
27fba6fa10 Add crypto plugin for base64 and base91
update error occurence.
2016-04-13 10:34:55 +02:00
Rakholiya Jenish
2a68cea14c add woD, and rahash -D option
TODO done

fix error output
2016-04-13 10:34:54 +02:00
pancake
5ef2b3cc0f Fix many warnings 2016-04-11 12:22:15 +02:00
Roi Martin
a0c158c9ab Check go error in r2pipe-go uninstall 2016-04-10 23:22:13 +02:00
pancake
035d04b744 Quote r2pm r2pipe-go path 2016-04-10 23:18:51 +02:00
xn0px90
3b9534803d Add r2pipe-go 2016-04-10 23:09:24 +02:00
Rakholiya Jenish
85419d7356 Refactor and correct code for getting seed as string 2016-04-10 00:37:33 +02:00
pancake
e7c832d513 Fix -d gdb:// issue 2016-04-10 00:33:54 +02:00
pancake
5867365cd5 Add dummy work for mach0 in rabin2 -O 2016-04-07 15:42:06 +02:00
Anton Kochkov
232ce009fd Fix CID 1353775 2016-04-06 01:00:08 +03:00
Lukas Dresel
5a4fe03d41 Fix #4495 - rasm2 not loading all the plugins
- Fixed misplaced free(tmp) i broke
- Made plugin loading work the same in every tool.
- Removed last instances of hardcode 'LIBR_PLUGINS' string
2016-04-05 22:42:19 +02:00
pancake
a2bd77e43d Fix #4501 - implement rax2 -B and fix -b 2016-04-05 00:55:57 +02:00
Álvaro Felipe Melchor
b0c6ae4409 Fix #4295 and #4155
This commit is the first attempt to improve relocation
recognition when dealing with relocatables elf-files
2016-04-04 23:09:58 +02:00
NaveenBoggarapu
7d61361361 fix some memory leaks 2016-04-01 19:25:32 +02:00
Maijin
503fa69d22 Fix #1659, Add json to rasm2 2016-03-30 16:35:01 +02:00
pancake
a4d298e8b9 Fix -d:// alias 2016-03-30 12:56:50 +02:00
pancake
cddb39535d Fix #3164 - r2 -d gdb:// is an alias for r2 -D gdb gdb://... 2016-03-30 12:01:44 +02:00
pancake
9fec5ae3b2 Add www-m r2pm pkg 2016-03-27 16:03:12 +02:00
pancake
d1455c5aa6 Do not override file.analyze if -A is used 2016-03-27 14:20:33 +02:00
pancake
365162d4a8 Run file.analyze only when file contains entrypoint 2016-03-27 14:05:43 +02:00
pancake
699e3b84d1 Fix static link of the blob 2016-03-27 13:25:52 +02:00
pancake
b6d5e6c9e3 Initial implementation of the make menu 2016-03-25 11:10:16 +01:00
pancake
f1f83276ea Fix static build with libbochs 2016-03-25 10:13:50 +01:00
Aneesh Dogra
4562283f66 Rabin2 Xtr: Add error message if none of the plugins can extract bins from the file. 2016-03-24 22:46:35 +01:00
pancake
f4618c0bbd Remove radiff2 -CC because we already have -A, -AA, -AAA ... 2016-03-22 13:00:02 +01:00
pancake
f9649cd144 Add rarun2 -R as alias for dbg.profile 2016-03-21 23:49:18 +01:00
Álvaro Felipe Melchor
146d7b8e25 Fix oob write in rahash2 2016-03-21 16:16:01 +01:00
pancake
1aaa475298 Fix #4335 - radiff2 -A 2016-03-19 02:57:53 +01:00
pancake
7235fab252 Add www-t package 2016-03-19 02:11:41 +01:00
Matthieu Tardy
b858467162 Add PYC file format plugin 2016-03-18 15:03:24 +01:00
pancake
bab0eb62c8 Fix sdb leaks in elf versioninfo 2016-03-17 11:11:12 +01:00
pancake
f4eb0893a9 Add r_crypto dependency for radiff2 2016-03-16 15:00:17 +01:00
Álvaro Felipe Melchor
c0fff5e3e7 fix typo 2016-03-16 14:35:06 +01:00
Álvaro Felipe Melchor
53be2c8e7c added r_crypto to rabin2 2016-03-16 14:34:05 +01:00
pancake
729b54222d Fix zip test by flushing file list 2016-03-14 00:28:37 +01:00
xarkes
edd05522b2 Update swf 2016-03-13 03:21:42 +01:00
Maijin
daafa94407 Enable demangle by default fix #4266 2016-03-12 18:01:12 +01:00
Maijin
38bc88fb67 Also add the warning in aaa 2016-03-12 17:48:53 +01:00
pancake
f9671be16e Fix #4191 - Use -AA to run aaaa and therefor aae 2016-03-12 17:34:18 +01:00
pancake
342961a3c5 Fix #4251 - Blank space using fcnlines=0 and flgoff=1 2016-03-09 10:08:53 +01:00
Pankaj Kataria
234b8d7602 Added support for encrypting file 2016-03-09 08:28:26 +01:00
Pankaj Kataria
e78b293f7c Fixed the case when input-string contains null bytes 2016-03-09 08:28:26 +01:00
Pankaj Kataria
aa8a65a852 rahash2 Added xor encryption 2016-03-09 08:28:26 +01:00
Daniel García
cd2e2171ac syms2elf r2pm package 2016-03-09 08:27:18 +01:00
pancake
853411cab3 Handle ~/.config/radare2/radare2rc.d 2016-03-08 23:30:12 +01:00
pancake
3efe247889 Fix newlines in rahash2 -qq 2016-03-08 14:44:08 +01:00
pancake
99d59ebd20 Remove unnecessary newline 2016-03-08 13:19:03 +01:00
pancake
1b937e17fb Add rahash2 -qq 2016-03-08 03:29:59 +01:00
pancake
63b4dacf34 Show filename in rahash2 -q 2016-03-08 01:21:44 +01:00
pancake
588e264f9f Fix latest COVs 2016-03-07 12:54:40 +01:00
pancake
3f5aa46bd5 Add rahash2 -E to encrypt instead of hash 2016-03-07 03:24:52 +01:00
pancake
00ac90f71b Initial import of crypto.rc4 algorithm and modernize RCrypto API 2016-03-07 02:38:50 +01:00
Álvaro Felipe Melchor
bbf8685b3a Fix #4244 - oob write rax2 2016-03-07 01:02:03 +01:00
Matthieu Tardy
bb84bbc276 Fix memory leaks in rabin2 and libr 2016-03-06 23:17:44 +01:00
xarkes
043880cc07 Create swf
Adding swf r2pm package
2016-03-06 11:18:22 +01:00
Matthieu Tardy
1a573e1056 Cleanup binr/*/*.c
r2agent:
- Fix the usage to match other r2 binaries.
- Remove trailing whitespace.
- Remove addressed TODO.
- Add a default case to display usage and exit if -p option was used
  without argument.
- Return 1 instead of 0 if too much arguments are provided.
- Small coding style fixes.

radiff2:
- Small coding style fixes.

rafind2:
- Add a default case to display usage and exit if an option have a missing
  argument or getopt does not recognize an option character.
- Small coding style fixes.

ragg2:
- Small coding style fixes.

rahash2:
- Remove useless optarg check.
- Missing arguments and unknown options now display usage and exit.
- Small coding style fixes.

rarun2:
- Small coding style fixes.

rasm2:
- Small coding style fixes.
- Missing arguments and unknown options now display usage and exit.

rax2:
- Small coding style fixes.

radare2:
- Missing arguments and unknown options now display usage and exit.
- Small coding style fixes.
2016-03-05 19:52:42 +01:00
pancake
d772c20d24 Fail if cargo is not found in r2pm -i radeco 2016-03-05 19:48:56 +01:00
Matthieu Tardy
797a675b45 Remove optarg checks
getopt is returning '?' if there is a missing option argument, which cause
the switch to branch on the default case. Consequently, tests on optarg are
redundant if a valid argument was given and never executed if the argument is
missing.
2016-03-04 16:17:31 +01:00
pancake
f9b700a2b7 Remove ranal2 tool 2016-03-04 02:16:51 +01:00
pancake
4a0247b594 Implement rasm2 -A to replace ranal2 2016-03-04 02:15:36 +01:00
Adr1
611c3d1752 RBin: Display File Version info 2016-03-04 01:15:56 +01:00
Kevin Grandemange
f0be264b4d [r2pm] add microblaze package 2016-02-27 19:38:16 +01:00
pancake
c8abef97ea Fix base64 decoding overflow in rax2 2016-02-27 16:10:02 +01:00
Anton Kochkov
ae45648bbc Fix build 2016-02-25 13:32:03 +03:00
Anton Kochkov
ce47165951 Fix CID 1351762 2016-02-25 12:44:04 +03:00
pancake
3e53c64553 Fix #4165 - Reduce warning messages in debugger mode 2016-02-25 01:55:16 +01:00
Adrian Stanciu
3a33519533 Add rabin2 -c to compare hash and computed hash from file
- adds support for -c parameter
- bring in line with coding guidelines
- formatted code with tabs
- added -c and exit status info to rahash2 man
2016-02-21 22:45:30 +01:00
William Robinet
a67adbcbb8 Typos 2016-02-17 13:38:43 +01:00
pancake
724a9253dd Fix android build 2016-02-16 23:33:14 +01:00
pancake
7dd32315a5 Fix r_strbuf regression 2016-02-16 00:57:17 +01:00
pancake
d29fe6a43d Add documentation for radiff2 -D 2016-02-15 23:52:12 +01:00
pancake
fd359e9121 Implement radiff2 -D and optimize r_strbuf 2016-02-15 23:51:20 +01:00
pancake
a548fd76dd Fix rabin2 -Q and update manpage 2016-02-04 21:52:32 +01:00
pancake
f5181c4d90 Initial rework for dyldcache 2016-02-04 15:44:49 +01:00
pancake
ca7f55be5a All those bins depend on r_lang 2016-01-30 21:19:36 +01:00
condret
edc7ec2c61 fix a few warnings 2016-01-27 12:39:50 +00:00
pancake
32dbac517f Several bug fixes for gdb-arm and thumb remote debugger 2016-01-26 23:36:02 +01:00
Goncalo Carvalho
c4ea7fd354 convert negative fp numbers to hex and add static assert macro 2016-01-23 23:20:52 +01:00
deffi420
e7fdedd501 Improve r_hex_str2bin, fix overflow and error check 2016-01-23 11:53:43 +01:00
pancake
cbbcb716e8 r2pm -i radeco is now installed in your home 2016-01-22 22:03:49 +01:00
pancake
44b2e44f3d Add rax2 -w to wrap sign bit 2016-01-22 15:08:42 +01:00
pancake
9e6d820988 Fix bus error 2016-01-19 13:32:11 +01:00
pancake
de22aa46f2 Fix COV with boolified r_io_creat 2016-01-19 13:16:24 +01:00
Álvaro Felipe Melchor
d9e77ca0d1 xnu: first series of patches to use mach exceptions
* use set_trace_bit and clear_trace_bit macros

* use PT_ATTACHEXC since PT_ATTACH will be deprecated in the future
and we are interested in receiving mach exceptions

* first attempt to handle mach exceptions

* api change: added a parameter to r_core_setup_debugger
at least in OS X this function was producing double attachment.
I've added a boolean value to indicate when use dpa.

* added pipe to communicate between main process and traced process
by far this is not a good implementation. We should develop a better
approach/design to save all the exceptions and handle them accordingly.
This is the initial implementation

* bring back ptrace for stability and in order to merge this into master
2016-01-18 22:24:16 +01:00
pancake
666d457708 Add rabin2 -O e/new-entrypoint-address (ELF only atm) 2016-01-14 14:42:36 +01:00
pancake
6f346b6d6d Fix #3901 - Cannot debug directories and follow symlinks 2016-01-03 01:28:02 +01:00