Commit graph

1188 commits

Author SHA1 Message Date
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
pancake
5132a499c2 Fix many coverities 2015-12-31 17:10:02 +01:00
pancake
75a178401a Another rasm2 -E fix 2015-12-31 15:23:03 +01:00
pancake
4cce8b5734 Do not abort with anal failures in rasm2 2015-12-31 15:07:07 +01:00
pancake
5355af818a Add rasm2 -E to show ESIL from bytes 2015-12-31 14:42:05 +01:00
pancake
b728b48123 Native tvOS/WatchOS support, non-fat libr.a and mach0 identification for them 2015-12-28 20:40:18 +01:00
pancake
8c89b34009 Add blessr2 into r2pm 2015-12-28 17:58:40 +01:00
Eugene Kolo
36b6ae4762 Update ragg2 short help message 2015-12-14 00:00:39 +01:00
Riccardo Schirone
d08e42942a radare2: set scr.interactive and scr.prompt when loading from project 2015-12-11 00:46:36 +01:00
jvoisin
c07c288f19 Add a winapi plugin 2015-12-10 15:30:44 +01:00
pancake
9442ec43fc Fix make install issues with r2pm 2015-12-03 17:02:13 +01:00
pancake
c00763289f Fail if no npm/node installed in retdec 2015-12-03 16:10:55 +01:00
pancake
c4e0ac2885 Fix rabin2 -O sync issue and update manpage 2015-11-30 00:10:28 +01:00
pancake
ad6baf0824 Add rpath and scnperm in rabin2 -O 2015-11-27 20:37:27 +01:00
skuater
513200a7fa Fixes for the w32 debugger 2015-11-24 23:28:50 +01:00
pancake
07c6a1e41d Fix rabin2 -k crash 2015-11-24 10:17:24 +01:00
pancake
4d6297fe42 Fix #23 - unicorn pkg 2015-11-23 21:45:12 +01:00
pancake
89d44bbaf7 Fix #2782 - rahash2 - slurps from stdin 2015-11-22 23:59:48 +01:00
Álvaro Felipe Melchor
a518987814 Fix #3724 2015-11-22 12:05:33 +01:00
pancake
ccfee9fcca Fix many important issues reported by clang-analyzer 2015-11-22 11:27:45 +01:00
pancake
a898772b2d Honor user env in r2pm and various enhancements 2015-11-13 00:15:52 +01:00
pancake
1221b4a6e1 Add bpf r2pm package 2015-11-12 01:02:04 +01:00
pancake
ad74a6ec6b Move msil and mdmp into radare2-extras, add r2pm pkgs 2015-11-11 11:07:32 +01:00
skuater
f5dec28846 Fix for windows stdin input 2015-11-09 22:44:16 +01:00
pancake
baf63a0cba Reduce RBinSymbols memory (smaller footpronum) 2015-11-09 03:41:07 +01:00
pancake
548890e038 Do not extract non-fat binaries 2015-11-05 22:59:29 +01:00
pancake
63c47bc15e Make rabin2 -A help more readable 2015-11-05 13:37:21 +01:00
pancake
8d6c173df7 Implement {R2|RASM2|RABIN2}_NOPLUGIN env var support 2015-11-05 00:38:42 +01:00
Álvaro Felipe Melchor
b1583d5b24 Fix more issues reported by clang-analyzer 2015-11-03 22:14:00 +01:00
pancake
e368cb1513 More static build fixes 2015-11-01 11:43:05 +01:00
pancake
dd47aba9a2 Fixes for sys/static.sh 2015-11-01 10:26:38 +01:00
pancake
36179944fd Fixes Thumb detection from CPSR, NULL 2015-10-31 03:45:14 +01:00
pancake
54e881daf8 Autoset Thumb in Debugger 2015-10-31 02:46:00 +01:00
Riccardo Schirone
7323e0ef05 socket/run: split r_run_start to make debugging easier
During the environment configuration we may fork and spawn other
processes that we don't really care about. Splitting r_run_start, allows
to call ptrace only after this initial work is done.
2015-10-29 08:21:24 +01:00
pancake
6b9671e7a9 Fix Fx.. float conversion in rax2 2015-10-28 10:27:55 +01:00
pancake
198174957c Fix rax2 -F C parser 2015-10-28 10:11:32 +01:00
xambroz
d448260816 build cleanup focused on possibility to control the lib directories with the build parameters
needed mainly for RedHat/Fedora builds
2015-10-27 03:26:45 +01:00
pancake
880821634f Refactor zerosep for r2 -0 2015-10-24 22:49:12 +02:00
Sylvain Pelissier
b3c4f8554f Add -i skip option to file disassembly 2015-10-23 11:45:25 +02:00
pancake
9de87303fe Enhace r2pm -t and fix all java crashes 2015-10-23 03:54:31 +02:00
pancake
2b5661c46a Add r2pm -t for travis purposes 2015-10-23 03:23:12 +02:00
Álvaro Felipe Melchor
14a775f14f Fix #3509 - bin.prefix option 2015-10-22 23:36:43 +02:00
pancake
7dd98bcf75 Add support for TinyCC (super fast builds) 2015-10-21 16:31:24 +02:00