Commit graph

1188 commits

Author SHA1 Message Date
pancake
d959d5bda5 Fix some CSP issues in the material webui 2015-10-20 15:39:59 +02:00
jvoisin
c4a930aeff Implement iLj 2015-10-20 14:30:52 +02:00
pancake
fa4b0e8a7c Handle args in retdec 2015-10-20 12:54:33 +02:00
jvoisin
1d485ea927 coverifix 2015-10-19 23:31:36 +02:00
pancake
45c7c923af Better dtc, demangling support. Handle RABIN2_LANG, and more c++ autodetect
* r_name_filter(len:-1) strlens the string
* Show symbol names in `dtc` (calltracer)
2015-10-19 13:21:12 +02:00
pancake
3fd04b1bea Update rafind2 manpage 2015-10-19 04:02:14 +02:00
pancake
1bdd7c591a Fix #2474 - Implement rafind2 -m for magic search 2015-10-19 03:56:59 +02:00
pancake
5d33a6fe44 Add RABIN2_DEMANGLE env var 2015-10-19 03:28:22 +02:00
pancake
6ed80ae39b Update sdb and rename rmkdir->mkdirp 2015-10-19 00:25:39 +02:00
pancake
d79e576305 Fix #3506 - align in rafind2 2015-10-18 23:32:33 +02:00
pancake
d574a4f49b Fix regression in entrypoint after analysis 2015-10-18 18:47:04 +02:00
pancake
b89c3ee949 Fix the failed rahash2 tests 2015-10-18 18:35:31 +02:00
pancake
f6927fa4f7 Fixes for 0 length hashes 2015-10-18 17:08:23 +02:00
Wladimir J. van der Laan
feea0b91bc ragg2: Correct x86_64 shellcode
Repeated, redundant "shr rbx, 8;push rbx" causes the initial '/' to be stripped,
executing "bin/sh" instead of "/bin/sh".
2015-10-16 16:38:17 +02:00
pancake
074a61f1e6 Add BCL r2pm package 2015-10-16 10:25:53 +02:00
pancake
9edd911003 Add unicorn-deps package 2015-10-16 00:43:19 +02:00
jvoisin
420a5c41e0 Fix some minor compilation warnings 2015-10-15 12:36:34 +02:00
jvoisin
20d11bf92d Add json output with zj 2015-10-14 21:26:26 +02:00
pancake
1dba5a687d Initial implementation of bin.strfilter and bin.strpurge 2015-10-13 03:50:14 +02:00
pancake
6f350a63fa Fix blob makefile 2015-10-11 04:39:33 +02:00
Ben Gardiner
8d4ad47210 Add bin.maxstrbuf and RABIN2_MAXSTRBUF, update manpage 2015-10-11 03:47:32 +02:00
Anton Kochkov
cc658339f5 Fix TCC build 2015-10-11 02:57:23 +03:00
pancake
85ccf0154b Fix r2pm installation issues 2015-10-10 19:11:55 +02:00
pancake
e4464575ce iOS build enhancements 2015-10-09 11:42:49 +02:00
pancake
ed81928ac0 Fix windows build because of the mingw pie bug 2015-10-08 12:03:46 +02:00
pancake
be0538a6a8 Fix some windows build warnings 2015-10-08 11:14:10 +02:00
pancake
6a4030c33c Add x86bea r2pm pkg 2015-10-08 01:41:39 +02:00
Álvaro Felipe Melchor
ac965a56c0 Fix #3359 2015-10-01 11:01:55 +02:00
pancake
9b69b32155 Suggest default pkgconfig path in baleful plug 2015-09-30 18:50:44 +02:00
pancake
f65ded2dac Missing mkdir un retdec plug 2015-09-28 13:01:56 +02:00
pancake
125be67a27 Add retdec r2pm package 2015-09-28 12:12:30 +02:00
pancake
58c92d1820 Android5 builds require PIE 2015-09-25 15:53:29 +02:00
pancake
cb05020d7d Update some packages 2015-09-24 09:52:31 +02:00
pancake
94f5bdd6be Fix radeco and ppcmdisasm r2pm packages 2015-09-24 04:03:19 +02:00
pancake
cd767ccaf4 Fix Android build 2015-09-24 03:36:06 +02:00
pancake
c612bfe479 Optimize r2pm -s pkg list 2015-09-24 02:23:12 +02:00
pancake
33887acd70 Initial import of r2pm, the package manager for r2 2015-09-24 02:14:40 +02:00
pancake
8cb60570c2 Move Git tips and taps into the root makefile 2015-09-23 22:37:15 +02:00
pancake
34811ad84e Fix #2416 - Add iE and rabin2 -E to list exports 2015-09-23 12:23:03 +02:00
pancake
5449c8d889 Update sdb from git 2015-09-23 01:56:05 +02:00
pancake
5d0bdd4481 Enhacements to ease the iOS debugger development 2015-09-21 23:40:17 +02:00
pancake
a49cdb65d5 Fix ios-sdk.sh 2015-09-21 22:21:41 +02:00
pancake
90f8ec4ff8 Fix #3297 - make install after make symstall 2015-09-17 11:11:24 +02:00
pancake
16b2bb8d50 Load dynamic anal plugs from rasm2 too 2015-09-16 16:28:50 +02:00
pancake
fdbde81e78 Fix iOS build, and a pair of bugs 2015-09-15 04:05:43 +02:00
pancake
b86bf19c85 Fix #3051 - Honor CFLAGS everywhere and fix some windows/android warnings 2015-09-14 20:43:11 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
szt
cc6f406ed9 Remove triple negation 2015-09-09 12:49:11 +02:00
pancake
d472d73fb7 Fix #3245 - rafind2 -x 2015-09-07 19:16:24 +02:00
pancake
606b0d1430 Fix ASLR debugger. Again (R) 2015-09-02 17:28:37 +02:00
pancake
7fcb8e081d Remove last GPL headers and move old.rarc2 into r2e 2015-09-02 16:06:57 +02:00
pancake
c8cb347a41 Fix string allocation issue for ARM eggs 2015-09-02 00:18:55 +02:00
jvoisin
dba909b1dd Fix yet-another-batch of clang-analyzer issues 2015-09-01 23:24:11 +02:00
jvoisin
4261075d60 Misc fixes to make clang-analyser even more happy 2015-08-29 18:08:38 +02:00
Riccardo Schirone
575d3e9f0a core/bin: remove loadaddr parameter and get it from the RBinObject 2015-08-29 00:35:09 +02:00
Riccardo Schirone
6f0962555d baddr: still some fixing, in particular when reloading files 2015-08-29 00:35:09 +02:00
jvoisin
e0e170c3c5 Fix various clang-analyser issues 2015-08-28 18:29:31 +02:00
jvoisin
98bb29c4ed Fix some clang-analyzer defects 2015-08-28 17:28:09 +02:00
pancake
0a7ed3e58b Workaround for radiff2, requires some extra review 2015-08-27 13:32:57 +02:00
dequis
0d91e7b433 radiff2: show filename instead of (null) in "cannot open" error message 2015-08-27 12:01:09 +02:00
pancake
76f794009e Sort ragg2-cc help and quote all file variables 2015-08-27 12:00:10 +02:00
dequis
8d2217db59 ragg2: Use $INCDIR/sflib as SFLIBPATH instead of just $INCDIR 2015-08-27 11:53:03 +02:00
dequis
3c977fb56a ragg2: minor fixes to help/debug output text
- The help text had quotes at the end of each line
- The debug for the "assemble" step didn't match the actual command
2015-08-27 11:52:14 +02:00
Riccardo Schirone
def029d548 tools: always pass baddr to r_core_bin_load
radiff2: adapt to changes in baddr/laddr
bin/bin: no need to reset the baddr
2015-08-26 20:08:13 +02:00
Riccardo Schirone
81a8b2a3d5 fix baddr >= 0 and laddr 2015-08-26 20:07:42 +02:00
Riccardo Schirone
36d96770aa simplify baddr usage
* some style fixing
* core/bin: simplify rva function
* bin/bin: avoid passing baddr around
* bin/bin: provide methods to work with baddr
2015-08-26 19:56:51 +02:00
Riccardo Schirone
cacce6a91e use R_FALSE/R_TRUE for io.va 2015-08-26 19:48:42 +02:00
pancake
db6900fb9e Make r2 -D unicorn /bin/ls load rbin info too 2015-08-25 14:49:34 +02:00
Serguey Parkhomovsky
a497a6cf5b Fix solib file name for libr2 on OS X
Use the helper functions in libr/config.mk.tail to put the library
version before the library extension on OS X for libr2.
2015-08-24 17:29:28 +02:00
pancake
64b140fd66 Fix #3118 - Fix ood on quit 2015-08-19 18:16:17 +02:00
pancake
b56207ebb7 Fix ragg2-cc script and honor SFLIBPATH 2015-08-19 11:36:18 +02:00
pancake
0eff8ca0d2 Revert "rax2: refactoring, better error handling and update nampage"
This reverts commit 83ca1dab47.
2015-08-11 09:13:01 +02:00
Grigory Rechistov
83ca1dab47 rax2: refactoring, better error handling and update nampage
change flags from magic numbers to named enum values.
make error reporting more Unix-way by returning non-zero error status
man page is updated to reflect currently supported options
2015-08-11 02:22:21 +02:00
shuall
0807686d86 #3052 all printf member functions changed to cb_printf 2015-08-09 03:25:05 +02:00
pancake
0639261e26 Add more details for OSX code signing 2015-07-23 03:34:46 +02:00
four0four
1d949d4fae added debruijn offset to ragg2 2015-07-22 14:29:40 -04:00
pancake
caa66a8e8c Fix and document code signing for iOS and OSX 2015-07-17 14:39:18 +02:00
pancake
bdfbc4f076 Fix several COVs, and build issues related to appveyour 2015-07-13 11:21:21 +02:00
pancake
5fb7a8df57 More better !=! and =!= help and prompt 2015-07-09 23:44:45 +02:00
pancake
05c8e5c198 Fix null deref in fatmach0's rabin2 -x 2015-07-08 19:13:30 +02:00
pancake
6995ea2c93 Handle rabin2 -D cxx - like c++filt 2015-07-07 00:38:51 +02:00
pancake
a67e74c6cd rabin2 -c <-> -C 2015-07-06 01:09:00 +02:00
pancake
e20a1c0ce4 Add r2 -u flag to set bin.filter=false 2015-07-06 00:57:55 +02:00
pancake
6ed4d5a94b Comment the mach0's symtab parser, rabin2 -u and more 2015-07-05 03:25:20 +02:00
pancake
b5d40d11c0 Fix last coverities issues 2015-07-02 09:33:05 +02:00
pancake
3b5f5f3e5d More fixes for tfp0 and iOS codesign 2015-07-02 02:06:25 +02:00
Judge Dredd (key 6E23685A)
e41051aa86 unescape strings for -s (issue #2783) 2015-07-01 13:49:37 +02:00
pancake
1e4638d27e Add -D <lang> all to demangle symbols via rabin2 2015-06-22 11:36:28 +02:00
pancake
6e74dccb0b Fix rabin2 missing newline help 2015-06-14 22:45:50 +02:00
pancake
5946193d29 Fix rahash2 -b issue 2015-06-14 02:43:33 +02:00
pancake
f80f4da65f Add radare2-dev cydia package 2015-06-12 14:12:15 +02:00
pancake
a093958b6d Release 0.9.9 - codename AlmostThere 2015-06-05 04:07:13 +02:00
pancake
47860d67dc Remove more references to r_diff 2015-06-02 10:31:30 +02:00
pancake
3d47337ae6 Fix warnings 2015-06-02 10:25:40 +02:00
pancake
e6c40aa520 Handle SIGUSR2 in r2preload 2015-06-02 04:05:32 +02:00
pancake
721ad8de26 Add r2preweb rarun2 rule to start the webserver in a thread in r2preload 2015-06-02 03:54:26 +02:00
pancake
8efab9329b Fix build 2015-06-02 02:47:14 +02:00
jvoisin
51c6eecf0d Fix a previous mistake of mine in rahash. Sorry :/ 2015-06-02 00:03:43 +02:00
jvoisin
8155c6e8f2 Even more coverifix 2015-06-01 23:06:55 +02:00
jvoisin
2bc5f75f0f Fix some memleaks in r2 -h to make maijin happy. 2015-06-01 20:23:09 +02:00
pancake
b5317ac35c Update r2 -A manpage and help 2015-06-01 11:31:01 +02:00
pancake
a793859d5b Fix some COVs 2015-06-01 11:20:53 +02:00
pancake
10e8351512 Fix #2641 - Run aaa with r2 -A instead of aa 2015-05-29 01:40:06 +02:00
pancake
e19810e875 Fix #2642 - rabin2 -Aj and r2 -ciAj - JSON output for sub-bins 2015-05-29 01:38:31 +02:00
pancake
d9d18dc73b Fix memory leak in rabin2 with pdb.extract 2015-05-26 02:45:25 +02:00
inisider
c9d5d00a55 add env vars 2015-05-26 02:39:50 +02:00
inisider
6536e6cb28 start of implementation of issue #1909 2015-05-26 02:39:50 +02:00
Álvaro Felipe Melchor
75e719362d Fix #2603 2015-05-23 19:10:22 +02:00
pancake
878f81dca1 Fix radiff2 -g regression and some code cleanup 2015-05-19 17:41:09 +02:00
pancake
2c62eab3c8 Fix ASLR baddr while fixing r_file_abspath() on UNIX using abspath() 2015-05-19 15:35:08 +02:00
Kai Renken
56df8c1592 small fix 2015-05-19 14:12:33 +02:00
Kai Renken
720cedd59c some cleanups on radiff2 json output preparation for #1594 2015-05-19 14:12:33 +02:00
Quentin Santos
fc277cbe72 Document -d in r2 for debugging a process 2015-05-15 10:18:01 +02:00
pancake
589ee83f49 Fix ragg2 -v 2015-05-14 15:06:39 +02:00
pancake
45c5cd6b7a Fix ragg2 -w issue 2015-05-13 23:20:56 +02:00
pancake
14c6e46bfc Fix #2569 - alphabetically sort ragg2 -h 2015-05-13 23:07:30 +02:00
Quentin Santos
4f4346d889 Minor: more comments in ragg2.c 2015-05-13 22:55:52 +02:00
Quentin Santos
cfc499b227 Edit ragg2 result regardless of the type of output 2015-05-13 22:55:52 +02:00
pancake
96a44f8ebf Fix 32bit warning in rabin2 2015-03-29 10:23:14 +02:00
dequis
41a5a719f9 Fix #2544 - rabin2: do not d/l pdb if debug_file_name is null 2015-05-10 18:13:07 +02:00
dequis
e8a555bf46 radiff2: update help to reflect that -f was renamed -n
It was changed in 4c1253b but that commit missed the help part
2015-05-06 23:02:42 +02:00
dequis
08ff4e493a Always use ut32 for unix timestamps. Also handle endianness properly
Because it turns out sizeof(time_t) is 8 in 64 bit platforms, but that
results in really broken 'pt' results, where half of the lines are
'invalid date'

Also, endianness handling was swapped in the case of 'pt' and
non-existent in the case of 'rax2 -t' (the latter actually did a weird
hack to swap endianness twice and get valid results).

Now rax2 -t supports the -e parameter to swap endianness.

The usage of r_mem_copyendian with r_print now matches what's done
in other places, with !p->big_endian instead of p->big_endian,
because 0 means swap and 1 means do nothing. Terrible function.

This also fixes some valgrind warnings about uninitialized values
(when copying 4 bytes to a 8 byte time_t)
2015-05-01 10:28:23 +02:00
Maijin
6aefa441b1 Fix shellcheck problem in scripts 2015-04-29 10:46:22 +02:00
pancake
33a64eab7e Load r2e plugins with rasm2 too 2015-04-23 00:56:59 +02:00
jvoisin
ceef56260d Fix #762 2015-04-19 21:54:25 +02:00
Anton Kochkov
549bfbd147 Revert "Fix CID 1293128"
To fix the actual and valid behaviour of rahash2
The corresponding CID is low priority
and could be fixed later proper way.

This reverts commit a48ead7c84.
2015-04-19 00:20:02 +03:00
jvoisin
a48ead7c84 Fix CID 1293128 2015-04-18 01:20:21 +02:00
Maijin
3b26388769 Fix all shellcheck errors 2015-04-17 21:56:01 +02:00
pancake
a0ef11be00 Fix 3 covs and several warnings in windbg for w32 2015-04-07 14:53:28 +02:00
pancake
061a2af999 Add radiff2 -CC for deeper bindiffing 2015-04-07 04:12:18 +02:00
pancake
25518385be Fix radiff2 -g: buffer was not flushed 2015-04-07 02:24:24 +02:00
pancake
24154ca69f Support -f without -t (defaults to eof) 2015-04-07 01:50:34 +02:00
pancake
364bcfc82f Permit rahash2 -i0 and bump capstone 2015-04-07 01:22:56 +02:00
pancake
3b4773d602 Add time.zone and time.fmt eval vars, honor zone in pt and correct PE gmt 2015-04-03 23:24:09 +02:00
pancake
87162dc8bf Add wta support for appending dump. 2015-04-03 04:11:26 +02:00
pancake
b553f607b7 Update rahash2 manpage and support -f/-t in -s/-x 2015-04-03 01:49:01 +02:00
pancake
6e8b84a7b3 Add rahash2 -x and fix other issues related to -f and -t 2015-04-03 01:37:26 +02:00
Jeffrey Crowell
29d583df60 fix some warnings 2015-04-01 21:10:49 -04:00
pancake
aed5e5e4a1 Fix PDB nullderef in rbininfo.file 2015-04-01 14:57:59 +02:00
pancake
e7b310a786 Properly limit rahash2 -Bb boundaries to filesize 2015-04-01 13:38:29 +02:00
pancake
df86cc3124 Fix all t/feat_grep tests 2015-04-01 03:33:12 +02:00
pancake
257ada577c Fix #2269 - rasm2 -d does not handle invalid input well 2015-04-01 01:29:15 +02:00
pancake
7292fbab40 Fix PE and Brainfuck crashes related to RBinInfo
- Fix warn in radiff2
2015-03-27 17:18:15 +01:00
Kai Renken
db4abd8f6b Fix #2061 - Add JSON style output to radiff2 2015-03-27 11:44:06 +01:00
pancake
1a73f5e807 Handle <directory> in r2 as an alias for cd /path;r2 --
Remove noisy eprintf and fix another crash
2015-03-23 00:41:50 +01:00
jcrowell
285b20ce1a disable auto-saving of history while in the sandbox 2015-03-20 22:58:34 -04:00
pancake
12ea9734b5 Fix about 15 more random COVs 2015-03-21 02:04:49 +01:00
pancake
734d1a9a5d Add -e cfg.plugins (speedup tests), initial massive esil-review
- Includes some fixes for the bf, mips and x86
- Toggle some missconcepted swapped parameters
2015-03-11 02:59:33 +01:00
pancake
a00339f1c9 Fix #2168 - rabin2 -gj is now happy again 2015-03-08 18:07:52 +01:00
pancake
0040f8cb44 JSONify PDB and remove useless function in r_util 2015-03-08 17:30:41 +01:00
pancake
ab5b89c610 Cleanup preload/alloc a bit 2015-03-08 01:54:12 +01:00
Clément Vuchener
705e4d56bf Fixing arguments (bugs #1814 and #2117) #2143
Added proper escaping of command line
Creating a command line from arguments when debugging on Windows
Keep backslashes when not escaping a character
Assuming that the path of the binary should be in desc->name and not the command line in ptrace IO plugin
Print the backslash when it is at the end of the command line
2015-02-26 03:05:37 +01:00
pancake
d8f96a765d Fix android build and bin/d installation issue 2015-02-23 01:55:35 +01:00
Kamil Rytarowski
345403f0ea Honor zip configure linkage 2015-02-23 01:07:05 +01:00
Clément Vuchener
fa53b4de51 Rewrote prepending './' on unix platform 2015-02-22 17:05:12 +01:00
inisider
208aa0ce8a fix merged problems 2015-02-19 22:49:44 +01:00
pancake
36b38f50c6 Fix rahash2 output without JSON 2015-02-12 16:19:26 +01:00
Jeffrey Crowell
e4efe92194 Fix crash in pe regressions
http://ci.rada.re/view/All/job/radare2-regressions-formats-pe/2090/console

fixes that
2015-02-11 18:36:28 -05:00
pancake
4ad5a7a27b Fix more base64 warnings 2015-02-09 23:37:49 +01:00
pancake
d1e602f14c Fix static link 2015-02-08 20:17:47 +01:00
pancake
1306b87112 Fix #2050 - Show commit counter in r2 -v 2015-02-07 00:14:55 +01:00
pancake
ba525f1b72 Fix #2049 - Add rahash2 -j 2015-02-06 14:15:19 +01:00
Nick Stephens
4f15eea06d Fix #1945 - Add wide string search to rafind2
Fix styling issues in r_search_keyword_new_wide
2015-02-04 03:28:28 +01:00
pancake
a5a211c1d9 r2 -k is now -o, and -k perform sdb queries 2015-01-31 03:51:01 +01:00
pancake
0cb78f973e Fix #2004 - filter flag names in dm* 2015-01-29 02:25:00 +01:00
pancake
039858fd86 Fix r2 -B, rabin2 -B, Implement oa command
- Now it is possible to load binfiles from debugger memory
* Base address is now honored properly. But it needs more testing
2015-01-29 01:45:39 +01:00
pancake
62617bb14e Fix android build 2015-01-24 23:17:55 +01:00
pancake
1fcf02c98b Add sys/android-build.sh local target and fix sys/static.sh 2015-01-24 03:30:07 +01:00
pancake
99d99aca14 Implement Pc command to show contents of a project script 2015-01-22 02:54:58 +01:00
pancake
ac036b6301 Add Pd to delete projects, Remove rmrf util function, better project file checks 2015-01-22 00:30:19 +01:00
NighterMan
e910bf769a Improved history save support
- Added scr.histsave
- Added q!! to exit without saving history
- Added isatty() check before saving
2015-01-17 19:29:32 +01:00
NighterMan
53a554f358 Fix to always save history when exiting
When exiting radare by using ctrl+d or due to null stdin read it doesnt save
history as expected. Actually it was only saving when exiting using 'q'.
2015-01-17 19:29:32 +01:00
inisider
bd416e4380 fix print usage of rabin 2015-01-12 21:23:06 +01:00
pancake
97d1f70f53 Fix some warns and Use RRegex in parse_mreplace to make support w32 2015-01-12 02:52:12 +01:00
pancake
4c6e2f129c Add rabin2 -F and r2 -F to force the use of a specific rbin plugin 2015-01-11 19:40:26 +01:00
pancake
75c322b613 Add bin.lang, rabin2 -D and iD commands to demangle from commandline
- Fix some warnings in windbg
- Minor fix for ARM analysis (wip)
2015-01-10 01:00:01 +01:00
pancake
48422b07db Fix #1910 2014-12-26 19:42:35 +01:00
pancake
4c1253b0c5 Use radiff -n for numeric addresses instead of function names 2014-12-26 19:28:55 +01:00
Andrew McDonnell
841a00e0d1 Add option to radiff to suppress names 2014-12-26 19:26:06 +01:00
pancake
fb31e2405d Honor PDB_SERVER and rename pdb.sym_srvr to pdb.server 2014-12-24 19:49:07 +01:00
inisider
d052d96415 remove r_cons_printf from rabin2.c 2014-12-24 18:54:22 +01:00
inisider
f18988f21f fix pdb downloader 2014-12-23 15:06:42 +01:00
pancake
c886531195 Implement 'ko' and 'kd' to open/dump Sdbs, Helpers for PE ordinal symbols 2014-12-21 00:55:38 +01:00
pancake
0cb4c60c63 Fix r2 -C crash (thanks zlul!) 2014-12-19 20:58:38 +01:00
inisider
f9048c2a44 Add init function of PDB downloader 2014-12-12 15:31:05 +01:00
fenugrec
55c4963656 describe rasm2 -L output 2014-12-09 04:20:44 +01:00
LemonBoy
3b9164c04c Initial WinDBG support 2014-12-07 19:32:45 +01:00
Jeffrey Crowell
ed1aae7fd1 fix lots of spelling
fix some errors from the sed script

undo file mode crap
2014-12-07 17:00:59 +01:00
pancake
153b8b1f9d Add 'rmd' target, enhace io_self and add library version to libr2.so 2014-11-22 02:51:35 +01:00
pancake
9a0d62da22 Finally remove the void*debug pointer from RIOPlugin (use bool isdbg) 2014-11-21 11:36:51 +01:00
inisider
ee429365a7 Add JSON support to the PDB parser 2014-11-21 11:28:12 +01:00
Riccardo Schirone
db6247ac5a Fix linker flags issue on darwin, when USE_RPATH=1 2014-11-20 09:59:29 +01:00
pancake
ccf0ad030d Run -A before -i in r2 (fixes a test) 2014-11-19 15:55:59 +01:00
condret
1b2d87341d fix 'r2 -q'-segfault 2014-11-18 16:40:32 +01:00
pancake
3fadf91a93 Load file from stdin with r2 = (TODO: load RBin) 2014-11-18 11:44:16 +01:00
pancake
cd29612889 No ranal2 for this release 2014-11-10 11:39:43 +01:00
pancake
17b89e3bf6 Fix #1345 - Cleanup some offensive fortunes 2014-11-10 06:04:46 +01:00
pancake
587642619b Re-enable ranal2 build 2014-11-10 03:55:44 +01:00
pancake
9d042142b3 Honor 'q!' and scr.interactive when quitting debug mode 2014-11-08 13:15:45 +01:00
Maijin
e160851174 Add help and man for - and -- 2014-11-03 17:04:14 +01:00
pancake
69b40d1afa Add ragg2 -n and -N and fix some bugs in r_buf and r_egg 2014-10-29 02:44:21 +01:00
pancake
bb3be2c237 Implement rax2 -N for a C friendly version of -n, and support 64bit values 2014-10-28 16:32:53 +01:00
pancake
b91d1d9eca Fix #1556 - radiff2 -x dump issue 2014-10-28 11:54:58 +01:00
pancake
a2c3647ad0 Somewhat better BoostJam support 2014-10-26 02:47:08 +02:00
pancake
e807868b78 Honor rabin2 -N minstrlen for -z,-zz,-zzz 2014-10-24 20:13:18 +02:00
pancake
131b9092c2 Implement rabin2 -zzz (dump strings to stdout, works on huge files) 2014-10-24 18:26:37 +02:00
pancake
3435dc2bb5 Implement bin.maxstr and handle it from rabin2 -N min:max 2014-10-21 04:39:37 +02:00
pancake
5c2177f8b3 Add ragg2 -z to output in C string syntax 2014-10-20 02:14:19 +02:00
pancake
3a9a733ebf Implement rax2 -F (r_stdin_slurp(), r_hex_from_c())
- Update rax2 manpage
2014-10-20 00:46:59 +02:00
pancake
a07530dff1 Fix rasm2 -f return value 2014-10-19 18:16:53 +02:00
pancake
bbea37a4e1 Fix build and add some notes to the PDB parser 2014-10-18 19:49:31 +02:00
inisider
621d757487 rabin2: add pdb print infortmation option
Conflicts:
	binr/rabin2/rabin2.c
2014-10-18 19:49:26 +02:00
inisider
d547b037c9 Initial implementation of the PDB parser
* Contains 78 rebased commits

- add R_PDB struct
- add implementation of init_pdb_parser()
- add stub for init_pdb7_root_stream()
- add init_pdb_stream() function
- add functions for working with stream_file
- do fixes for stream_file_read
- add getting of sizes
- save streams to rlist
- add light implementation of read_root function
- add stubs for parsed_pdb_stream_init
- add parsing of pdb info stream
- start of parsing tpi header
- add stub for tpi stream
- fix stream file read. +stubs for eFIELD_LIST
- add parsing of lf_enumerate
- add parsing of lf_nesttype()
- add parsing of LF_METHOD
- add parsing of lf_member
- add some additional parsing of types
- fix some memory leaks
- add support of LF_METHOD and LF_MEMBER
- add support of LF_NESTTYPE
- add support of LF_ENUM
- add parsing of lf_structure
- add parsing of lf_pointer
- start of lf_array implementation
- back implementation of lf_array
- add implementation of LF_MODIFIER
- add implementaion of lf_arglist
- add implementaion of lf_mfunction
- add useful macros
- add implementation of lf_procedure
- add implementation of lf_union
- add free of sval and printf name of sval
- add implementation of LF_BITFIELD
- add implementation of LF_CLASS
- add implementation of LF_VTSHPAE
- start of refactoring
- finish refactor of the code
- fix memory leak issues
- some refactor of memory managment
- fix memory managment
- add supprot of ushort type
- add function for printing type name and value
- add API for getting leaf types members
- refactor of SType and STypeInfO
- add implementation of get_name/val/... for new types
- fix cast in some function of getting name, val, etc
- add stubs for resolving type
- add pointers to function for getting types
- add connections for types function pointers
- add stub for printing structures
- update memory manadgement and fix some problems in API for working with types
- add process of result from init_pdb function
- print more info about structure
- refactor of printing structure info
- Revert of 9fa8e7083cf30b5fda38f5816e903effeaa66701

refactor structure info printing

more pretty print

refactor code

add parsing of dbi header

add structure stabs for dbi stream

add parsing of dbi_ex_headers

add free for dbi stream

finish parsing of dbg stream

add stubs for streams from dbg stream

add fpo parsing

add free for fpo stream and do some refactor

add parsing of gdata stream

add parsing of pe stream

add parsing of fpo new stream

add fpo new stream

add omap stream parsing

add implementation of printing gvars

add setting parameters for pdb_parser

delete unused comments

delete unused comments
2014-10-18 19:49:22 +02:00
pancake
c2f54e700c ragg2 use system default asm.bits 2014-10-18 04:05:54 +02:00
pancake
0b322f5e99 Fix r2 -d ./ls 2014-10-16 10:45:33 +02:00
pancake
0e0dc63aa8 Fix r2 -d problem not loading syms. Redo the ASLR/PIE again 2014-10-15 15:41:02 +02:00
condret
d8e98cf3a3 fix identation for bugfixing purposes 2014-10-10 10:56:15 +02:00
jvoisin
b4a56e3fbb Add some comments to ragg2-cc 2014-10-09 21:53:44 +02:00
pancake
abd7bcda90 Hackaround for pie bins 2014-10-08 01:54:09 +02:00
pancake
38127e9f43 Load one rbinobj per file. Fix r2 *, ob help and a coverity memleak 2014-10-07 10:49:29 +02:00
pancake
a842ef2a94 Fix #1479 - r2 -- respects the other parameters now 2014-10-07 01:18:16 +02:00
condret
4f70c1bf89 kill RCoreFile->size 2014-09-30 15:31:19 +02:00
Jonathan Neuschäfer
49504c7eb7 fix r2agent when run without -s 2014-09-28 03:30:29 +02:00
pancake
b53eb9222d Fix crash in rabin2 -g (thanks @condret) 2014-09-26 17:55:35 +02:00
pancake
d176cb1d01 Fix rax2 2014-09-26 17:11:10 +02:00
condret
ab4a5c9632 deprecate RCoreFile->uri 2014-09-25 18:18:07 +02:00
pancake
34365c7bb3 Handle cparse definitions in rbin sdb 2014-09-23 10:23:28 +02:00
pancake
1519a053fd Disable scr.color in r2 -0 2014-09-22 23:07:06 +02:00
pancake
f73ecd35dd No Flag Space by default 2014-09-22 17:52:01 +02:00
pancake
6d8b9608a7 Add doc for that new rax2 thing 2014-09-22 16:40:08 +02:00
pancake
a095ad7a42 Fix #1356 - rax2 =10 0x89984 or rax2 =16 ... 2014-09-22 16:35:23 +02:00
pancake
4c4173769b Revert "Fixing the issue where file size exceeds size of an integer":
3adb00621b
e2afa84443
0761955fdb
17cc18fad0
135c62fb5d
2014-09-20 15:33:59 +02:00
pancake
94a1841b12 Add 'r2 --' to load no file at all. 2014-09-20 12:51:03 +02:00
Jonathan Neuschäfer
0e6d969e60 Make webui and r2agent a little more ASan-friendly, use strncmp. 2014-09-18 18:56:57 +02:00
dso
e2afa84443 Update radiff2.c 2014-09-18 09:03:42 -05:00
dso
0761955fdb Update rahash2.c 2014-09-18 09:02:49 -05:00
Adam Pridgen
135c62fb5d Fixing *most* warnings related to the change in r_file_slurp 2014-09-17 22:37:54 -05:00
Jonathan Neuschäfer
c9cfac35a1 Don't say "See r2 -V" in r2 -V
We could also remove this message from r2 -V altogether, but I'd rather keep
it in.
2014-09-13 00:17:37 +02:00
pancake
ef40e971a7 r2 -A and -c execution order 2014-09-12 13:01:38 +02:00
pancake
2369bad71a Fix code analysis loop and add anal.esil mode for r_core_anal_fcn() 2014-09-12 02:37:49 +02:00
pancake
8110fefc9f Implement aek, aef, Add scr.responsive, esil.status and esil.romem config vars
- Features scr.responsive
- Fix a bug in rarun2 when using a profile
- Update sdb to fix another null deref
2014-09-11 04:18:23 +02:00
condret
ec3df92770 kill r_core_file_t->filename 2014-09-09 17:02:25 +02:00
pancake
777b26fd6e Add r2 -z and r2 -zz: Fix the bin.strings and bin.rawstr logic. 2014-09-08 23:29:50 +02:00
pancake
7fde96ea63 Add some header structs for MACH0 and fix some for ELF (rabin2 -rk '' related) 2014-09-08 12:20:50 +02:00
pancake
a8d3136bd3 Working demo for 'r2 -nn ..'. See 'pf.' and 'fs *;f' 2014-09-08 04:37:34 +02:00
pancake
4bcb57955f Initial test exposing elf headers into Sdb and fix crash in bin-any 2014-09-08 04:17:38 +02:00
pancake
af12fc502a Show nice error message for r2 -w /bin/ls 2014-09-08 00:01:39 +02:00
pancake
4c5cb65147 Fix $ r2 -w /bin/ls 2014-09-07 23:57:26 +02:00
condret
5c4a5ab5bb make rafind2 using r_io_pread instead of r_io_read_at 2014-09-06 23:40:52 +02:00
condret
7ce6922491 rename r_io_open -> r_io_open_nomap and add a new r_io_open that creates a map at 0x0 2014-09-06 23:08:16 +02:00
condret
8296cf75ea make rahash2 using pread directly/ fix rahash2 -a all bug for vio 2014-09-06 01:40:49 +02:00
pancake
30acdbf50c Refactor debruijn code and make it accessible from ragg2 -P 2014-09-05 16:03:40 +02:00
pancake
39b9e14161 Fix rabin2 -K help message instead of version 2014-09-04 23:56:45 +02:00
pancake
dbf2603829 Disable wheel when running with r2 -q 2014-09-03 23:19:55 +02:00
pancake
cf664a9f22 Better r2 -P and refactor 'r_core_patch' to accept a string instead of file name 2014-09-03 23:00:38 +02:00
pancake
e87dff3e92 Update to use latest rabin2 -p from r2 -t 2014-08-29 18:48:57 +02:00
pancake
8204e78c3f Fix RBin & RLang related crashes (fix lot of memleaks and dblfrees) 2014-08-29 16:27:44 +02:00
pancake
67171b86a5 Hackaround to get r2 -B0 working. 2014-08-28 00:19:51 +02:00
pancake
d2248ba7bf cleanup 2014-08-27 23:51:17 +02:00
pancake
3cfeec1d4e Fix r2 -B .. sets bin.laddr and honors va=2 2014-08-25 03:45:11 +02:00
pancake
2eefd8908e Add r_cons_is_utf8 () and use it to setup scr.utf8 on non-quiet mode 2014-08-25 03:26:02 +02:00
jvoisin
c384c45ece Move utf8 automatic detection before parsing .radare2rc
Thanks to jn for reporting it.
2014-08-24 21:44:11 +02:00
pancake
0acdbd60fa Show Anal and Esil bits in rasm2 -L and 'e asm.arch=?' 2014-08-24 14:35:30 +02:00
pancake
00245e5e96 rabin2 -V -> -p (-p is more meaningful to show physical addresses) 2014-08-24 10:41:32 +02:00
pancake
3f985aff6e Bring back the ASLR thing. Have fun with 'rabin2 -B' 2014-08-23 03:18:03 +02:00
pancake
eeb50850c9 Fix #1205 - rabin2 -v show version. rabin2 -V disable VA 2014-08-23 02:41:50 +02:00
Adam Pridgen
6a5a91f9c9 added type enumeration with lib magic in bin_any.c plugin 2014-08-23 01:52:33 +02:00
jvoisin
6c577bd637 Close #1217 (Determine UTF8 locale automatically) 2014-08-20 23:04:51 +02:00
jvoisin
029c11a4b5 Minor cleaning of radiff2 2014-08-20 19:47:03 +02:00
jvoisin
9f18c219a6 Optimize radiff2 -g off1,off2
- Less than one sec now versus more than 15 before
- Code is cleaner (no more "r_core_cmdf")
- Colours are now correct
- Fix `radiff2 -C`
2014-08-20 03:51:10 +02:00
jvoisin
0be1fc041b Fix some memleaks at exit 2014-08-20 01:21:31 +02:00
jvoisin
6a1c06738d Enable bindiff between two offsets 2014-08-19 04:43:54 +02:00
jvoisin
359846b0d1 Fix some buffer overflow 2014-08-18 14:22:36 +02:00
Remco
9de5917544 typo fix 2014-08-18 12:19:31 +02:00
pancake
dbbc961454 Add help message for r2 -0 2014-08-17 02:55:47 +02:00
pancake
a661d916e4 Add r2 -0 to make interactive pipe handling nicer 2014-08-17 02:54:10 +02:00
pancake
13872af7bc Implement rabin2 -K and do some work on the RHash api. Fixes #1204 2014-08-15 03:30:45 +02:00
pancake
50e8e0e507 Add 'lp' command to 'load plugins' + some work on 'bin.laddr' 2014-07-30 11:14:26 +02:00
pancake
3a7e801eba Fix #1123 - libr2.so lacked soname 2014-07-17 09:49:25 +02:00
pancake
381d86de2a Fix null deref and bad indent 2014-07-17 05:49:20 +02:00
pancake
c40a4a8e82 Handle negative hex values in rax2 2014-07-13 22:12:29 +02:00
LemonBoy
10dc0c6ef4 Make the PE header return vaddrs relative to the image address 2014-07-11 23:32:44 +02:00
LemonBoy
fbd577fc36 Don't set the arch if running in hex editor mode 2014-07-11 23:32:44 +02:00
LemonBoy
1734d6857e Inform the user if the selected arch cannot be set 2014-07-11 23:32:44 +02:00
pancake
2719a78290 Support make install & make symstall with DESTDIR or PREFIX with spaces 2014-07-10 01:13:04 +02:00
Anton Kochkov
445dde9ba8 More improvements for cygwin and mingw32 building 2014-07-10 02:21:41 +04:00
pancake
667ebad3eb Fix build 2014-07-09 03:12:39 +02:00
pancake
8b74f1ffcf Merge Rarun2 into RSocket and use it from dbg.profile in Core 2014-07-09 02:24:31 +02:00
pancake
565b0db97a Fix build on Linux 2014-07-08 22:47:50 +02:00
pancake
9efb41594b Initial WIP support for ASLR var in rarun2 profiles and io/debug 2014-07-08 13:40:33 +02:00
pancake
65a5d2b5d5 Fixes rarun2 for HaikuOS 2014-06-26 16:22:08 +02:00
pancake
91167b18b8 Fix static build 2014-06-25 05:03:05 +02:00
pancake
097cd2b04b Fix android build 2014-06-25 04:57:41 +02:00
pancake
1a3ffef8b4 Fix static build 2014-06-25 04:11:43 +02:00
pancake
1d725e3245 Fix r2agent -s 2014-06-22 14:25:54 +02:00
pancake
6227c12bfe Remove getopt arg for r2 -V. wtf @jvoisin 2014-06-20 17:48:27 +02:00
pancake
39675d0886 Fix static linking (android builds working again) 2014-06-05 01:50:56 +02:00
pancake
d9ec210d5e Fix rarun2 build on w32 2014-06-04 23:05:34 +02:00
pancake
6612425639 Add 'core', 'maxproc', 'maxfd', 'maxstack' options for rarun2 2014-06-04 03:38:52 +02:00
pancake
a4389ce4ae Use r_num_math in ragg2 -d,-D 2014-06-01 05:38:36 +02:00