Commit graph

1188 commits

Author SHA1 Message Date
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
pancake
2233312335 Add sleep directive in rarun2 2014-05-31 21:01:42 +02:00
pancake
d6c2866ab6 Handle multiple -B in ragg2 2014-05-31 14:22:39 +02:00
pancake
1e6c0e74c4 Fix build after purge 2014-05-31 11:58:45 +02:00
condret
70744a1ad9 support ternary values in rax2 2014-05-28 21:50:13 +02:00
pancake
5e33a8a282 Initial huge refactoring of r_io still work in progress 2014-05-28 04:34:12 +02:00
pancake
576c9d6221 Fix ASLR (rabin2, r2 -B working again), sort i? output 2014-05-26 03:06:29 +02:00
jvoisin
680c542bb3 Fix CID 1214301 and constify things 2014-05-25 15:59:52 +02:00
jvoisin
724f8dd5b5 Fix some rax2 memleaks 2014-05-24 23:37:29 +02:00
jvoisin
031691f44e Implement rax2 -D and rax2 -E
Plus some re-ordering.
2014-05-22 09:26:17 +02:00
pancake
ff939fd048 Implement #956 (rabin2 -k - prompt) and fix r_bin_load() 2014-05-22 00:12:30 +02:00
pancake
cb1c61c296 Fix output of 'Cannot open file' (without %s) (possible null deref) 2014-05-21 23:19:47 +02:00
jvoisin
7abb1b0e44 Fix CID 1134971 2014-05-21 16:20:23 +02:00
pancake
a1224b2156 Refactor rva > vaddr and offset > paddr.
That change may make mixing vaddr and paddr more visible
2014-05-21 03:18:00 +02:00
pancake
302d4c245c Show pe.seh value in 'sdb' 2014-05-20 01:53:14 +02:00
Anton Kochkov
179cc5c32d Fix CID 1134974, 1134975 2014-05-19 06:11:09 +04:00
Anton Kochkov
9a74490e1f Fix CID 1134986 2014-05-19 06:05:15 +04:00
Anton Kochkov
7923e8a6b4 Fix CID 1214587 2014-05-19 05:20:07 +04:00
pancake
879f295365 Fix bin.rawstr (rabin2 -zz), some offsets wrong in PE 2014-05-19 02:41:53 +02:00
pancake
644acb8590 Add rabin2 -k to query sdb info, sdbize MZ debug printfs 2014-05-19 01:42:36 +02:00
pancake
2a991e4032 Codesign for ios-sdk.sh 2014-05-18 02:53:45 +02:00
jvoisin
6e3e6f4179 Check malloc's return value 2014-05-17 21:27:39 +02:00
pancake
ca18aedb94 Add Capstone SystemZ and SPARC disassembler and analysis plugins 2014-05-17 02:53:37 +02:00
Anton Kochkov
ab5cb7b25f Fix CID 1214320 2014-05-17 02:23:43 +04:00
pancake
ca7a79b9ef Fix #939 - broken b64 for large files 2014-05-16 19:29:31 +02:00
pancake
1ce6e7c45b Add rahash2 -d and -D to encode/decode base64 strings and files 2014-05-16 14:34:36 +02:00
deeso
1fbc7f2168 Added load_bytes, Pushed curplugin down to RBinObj, Reworking the RBinFIle loading to accomodate RBinObj reworked how all bins are loaded. Needed to hack IO to make
this work with rbinfiles and rbinobjects.

Conflicts:
	libr/bin/bin.c
	libr/bin/p/bin_te.c
2014-05-13 21:54:18 -05:00
pancake
8e4b7c0f70 Fix #914 rax2 -s/-S (Theodore Quaid patch) 2014-05-13 23:21:54 +02:00
pancake
31619ca208 Add test-rax2.sh script 2014-05-13 17:32:01 +02:00
zonkzonk
515cfe56e1 check malloc return for code in rabin2.c 2014-05-12 00:31:11 +02:00
jvoisin
80168c933b Fix CID 1134538 2014-05-11 13:18:33 +02:00
jvoisin
a88b87fe49 Fix CID 1134974 2014-05-10 22:46:22 +02:00
jvoisin
2a04c2544d Fix typo introduced by previous commit 2014-05-09 13:34:06 +02:00
jvoisin
282d96f6b1 Fix CID 1134542 2014-05-09 13:32:39 +02:00
jvoisin
8b888da2ce Fix some vulns in rarun2
Check return values ffs!
2014-05-09 13:29:11 +02:00
pancake
ee276298b2 Fix memleaks in radiff2, segfaults in 8051 and aagraph 2014-05-09 03:06:05 +02:00
pancake
a7778a5815 Fix r_num_free memleak 2014-05-06 04:00:26 +02:00
jvoisin
ee4049d60e Fix CID 1211162 2014-05-05 17:19:38 +02:00
Adam Pridgen
e9cabecc45 Fix CIDs: 1211131, 1211134, 1211136, 1211133, 1211143 2014-05-04 22:09:20 -05:00
Adam Pridgen
bd297f6788 reworked how bins environmnent variables are set (e.g. io.va, arch, bits, etc.) and fixed some more mach0 regressions 2014-05-04 17:15:55 -05:00
deeso
d5a6c3d23c Adding r_bin_load_as feature and fixing null pointer reference in rabin. 2014-05-02 13:51:02 -05:00
Anton Kochkov
b1f70bc0de Fix CID 1134969 2014-05-02 14:59:52 +04:00
Anton Kochkov
5fc6eb37a4 Fix CID 1134975 2014-05-02 14:52:33 +04:00
Anton Kochkov
04a61148a5 Fix CID 1134985 2014-05-02 14:43:30 +04:00
Anton Kochkov
780cf8fdae Fix CID 1134986 2014-05-01 13:41:20 +04:00
jvoisin
f77b6acfcd Fix CID 1134505 2014-05-01 01:08:12 +02:00
jvoisin
2713d06d43 Fix CID 1134988 2014-04-30 22:48:42 +02:00
pancake
d625175a19 di -> dx, fix -n help msg 2014-04-30 09:44:08 +02:00
jvoisin
67854ad630 Fix CID 1134718 2014-04-29 03:36:38 +02:00
Adam Pridgen
c3d6664756 Adding multi-bin support for files that contain multiple objects and lots of other fixes in libr/bin 2014-04-28 12:11:14 -05:00
Anton Kochkov
b889dd5e8d Fix CID 1134934 2014-04-28 11:50:03 +02:00
Anton Kochkov
afedcc0074 Fix CID 1135011, 1195065, 1134730, 1134754, 1134907, 1134758 2014-04-27 01:06:13 +02:00
Anton Kochkov
cefa742a25 Fix CID 1134727 2014-04-26 04:16:28 +04:00
deeso
d5908941fb Steps toward fixing the reopen of a file being debugged 2014-04-24 18:21:40 -05:00
Anton Kochkov
e1822b6b15 Revert "Fix CID #1134974" - fix segfault
This reverts commit 75f4d83afe.
That was causing segfault on exit
2014-04-24 02:49:20 +04:00
Anton Kochkov
75f4d83afe Fix CID #1134974 2014-04-24 01:45:32 +04:00
Anton Kochkov
932d143ddd Fix CID #1134975 2014-04-24 01:39:51 +04:00
Anton Kochkov
a6aecca2c7 Fix CID #1134976 2014-04-24 01:38:17 +04:00
deeso
c6a7faad77 fixed the bug with the insane fuzz command 2014-04-22 23:06:00 -05:00
pancake
836803d786 Sdbize RBin.list_archs(). Expose addrinfo in 'k bin/fd.#/addrinfo/*' 2014-04-23 03:57:13 +02:00
pancake
314ec76c18 Fix w32 linkage 2014-04-19 01:23:04 +02:00
pancake
170e2051ff Fix w32 build 2014-04-18 17:18:48 +02:00
pancake
9715a9ee97 Fix #701 - hashbang r2 scripts not working (see doc/all68k.r2) 2014-04-07 11:47:05 +02:00
pancake
405d56e5b9 Fix #764 - rahash2 -a all show empty hashes 2014-04-05 12:31:58 +02:00
pancake
613e6e2f9c Fix invalid free and r2 -hh help 2014-04-03 23:05:52 +02:00
pancake
08d94e38e1 Plugins are now loaded from API, not from Core constructor 2014-04-03 12:43:30 +02:00
pancake
eb4373e325 Update sdb (add -j), fix static link builds 2014-04-03 04:04:03 +02:00
pancake
4e8ab49948 Fix freeing issue in RCore plugins and rename RCmdPlugin to RCorePlugin 2014-04-01 17:17:03 +02:00
pancake
eaccd3bb7a Fix #743 - rax2 -v shows interpreter 2014-03-31 05:46:42 +02:00
pancake
ae20ea8132 Add ragg2-cc support for OSX-x86-64 2014-03-28 16:22:34 +01:00
pancake
d784eca2a8 Some static link fixes 2014-03-24 23:47:04 +01:00
pancake
a727663f98 Add radiff2 -a and -b flags 2014-03-19 10:41:13 +01:00
pancake
53edf7c17d Merge RCmd inside RCore 2014-03-18 00:05:44 +01:00
pancake
7c8daf1e70 Refactoring RBinMeta into RBinDbgInfo 2014-03-10 02:27:32 +01:00
pancake
784a1d2a72 Import radare2-capstone asm/anal plugins 2014-03-07 04:15:45 +01:00
pancake
7f8666a006 Fix invalid command quit 2014-03-05 01:11:24 +01:00
pancake
3aae30fa2c Refix link. Bump for 0.9.8.git 2014-03-03 19:33:52 +01:00
pancake
d1dd21ea9e Fix statically link of libgdbr 2014-03-03 19:09:40 +01:00
pancake
ffa6f94ff2 Fix linkage of gdbr on w32 2014-03-03 18:57:21 +01:00
pancake
d4ec9cf5a6 Handle libpath in rarun2 2014-03-03 17:55:52 +01:00
pancake
f5b14d2616 Fix another #642 thingie : listen disabled in sandbox
- Fix a bug in RSocket API
2014-03-03 02:01:40 +01:00
pancake
ed0fd9caee Fix w32 build 2014-03-02 00:54:50 +01:00
pancake
ffaa61c084 Fix install of libr2 2014-03-02 00:54:05 +01:00
pancake
97c6f955e3 Fix build of the preloaded libr2 2014-03-02 00:47:05 +01:00
pancake
9ec418ec37 Fix rap:// and enhace RConsMouseWheel support 2014-03-02 00:31:35 +01:00
pancake
bc46258402 Show bits and enhace RAsm plugin descriptions 2014-02-25 17:03:12 +01:00
pancake
fcc9489c4f Fix some more warnings 2014-02-25 12:18:29 +01:00
pancake
630a1f8603 Rename 'rdb' to 'projects' in ~/.config/radare2/ 2014-02-22 02:36:24 +01:00
pancake
c988fd1204 Fix build update manpage 2014-02-21 00:49:47 +01:00
jvoisin
00ed5b8d1b remove dup and improves dbg.bep handling 2014-02-21 00:44:41 +01:00
jvoisin
8a51dbcf83 Fix a typo 2014-02-21 00:44:41 +01:00
jvoisin
101ebb5e8f Handle errors when remove project file 2014-02-21 00:44:41 +01:00
jvoisin
dd12ac5b61 Reorder variables 2014-02-21 00:44:41 +01:00
jvoisin
ae7069a9b2 Add an option to r2 to start with sandbox enabled 2014-02-21 00:44:41 +01:00
pancake
e72310afc5 Fix r2 -i.. segfault 2014-02-19 22:49:11 +01:00
pancake
5b4f0db2e5 Fix #602 - Radiff2 -C should display a legend 2014-02-18 15:39:06 +01:00
Zach Riggle
36518d2ae6 Fix clang build (unicode characters outside of literals) 2014-02-15 20:47:46 -05:00
pancake
c6ab7b759d Fix another rasm2 bug 2014-02-10 16:09:40 +01:00
pancake
90264229c9 Add Vo, fixes in $sys in RAsm, new io.self plugin, initial work on preloaded r2 2014-02-10 03:31:12 +01:00
pancake
9a099e9e9e Add RAsmPlugins->cpus and handle it in rasm2 -L <arch> 2014-02-06 00:26:17 +01:00
pancake
c24543f112 Add rahash2 -e 2014-02-05 12:07:27 +01:00