Commit Graph

3021 Commits

Author SHA1 Message Date
Ren Kimura
0adb01dcb8 Fixed wrong logic of forward execution of dsb (#7798)
* Fixed wrong logic of forward execution of dsb

* Fixed typo
2017-06-21 07:52:14 -05:00
Ayman Khamouma (ak42)
c3bb9e5edf Add command ecH for instruction highlighting support (#7741)
* only use Color_NOBGRESET when actually needed
2017-06-20 15:48:45 -05:00
pancake
58b7dddc58 Implement /rc to check for call refs, optimized for arm64 2017-06-20 13:47:50 -05:00
pancake
0ddf174dc4 Detect utf32 (wide32) strings with rabin2 -z 2017-06-20 10:57:00 -05:00
Ren Kimura
32042123e2 Add plain checkpoint system (#7782) 2017-06-20 05:09:58 -05:00
Srimanta Barua
683e115ee5 Moved r_debug_get_baddr to debug API 2017-06-14 15:38:10 +02:00
pancake
6c37a9aa10 Add serial support in RSocket for gdb:///dev/ttyUSB0:9600 2017-06-12 22:25:58 +02:00
pancake
429740e5a1 Implement aerR and cmd.esil.ioer 2017-06-10 20:40:16 +02:00
pancake
0ded60cd0c Implement cmd.esil.todo 2017-06-10 18:00:07 +02:00
Andry
f81e0a7fdb grep functions refactoring (#7672) 2017-06-10 12:39:04 +02:00
Ren Kimura
487b305a8d Changed finding logic of session key (#7719) 2017-06-10 12:38:23 +02:00
alvarofe
7af491dda5 Fix build 2017-06-09 21:35:38 +02:00
pancake
470c183010 Initial work towards supporting a visual ESIL debugger VpOd 2017-06-09 19:12:20 +02:00
Roi Martin
d9202106f4 Fix hex column resize in visual mode (#7712) 2017-06-09 15:58:49 +02:00
pancake
8da5d2b295 Fix esil pin implementation using r2 commands 2017-06-09 02:50:28 -11:00
pancake
39542af604 Initial support for the Hexagon CPU (ripped from a binutils fork from 2013)
https://www.spinics.net/lists/linux-hexagon/msg00363.html
2017-06-07 11:43:24 +02:00
Rene Laemmert
3b051758eb aab now executes direclty also added aab* (#7688) 2017-06-06 18:28:43 +02:00
Roi Martin
a1388159c8 Fix hexdump offset in zoom mode
Add argument zoomsz to r_print_hexdump(). It allows to specify the real
size of each byte in the hexdump.
2017-06-06 10:45:01 +02:00
Lowly Worm
e4652c0319 add r_stack_peek to the stack api 2017-06-06 00:13:51 -04:00
Lowly Worm
383386ed14 add skiplist from crowell/ret2libc to r_util (#7657)
not used anywhere, but allow usage of the data structre for future use
2017-06-02 11:19:53 +02:00
Anton Kochkov
f4a2b07139 TCC - Saving types across sessions and add Arch/OS specific defines 2017-06-01 16:57:00 +02:00
Sven Steinbauer
fabf2ce0f5 Wide string printing fix (#7647)
* Add `psW` cmd to print 32 bit char strings
* Skip up to 3 leading NULLs on wide strings
2017-06-01 16:49:44 +02:00
Ren Kimura
3dcd3b79bd Renewed dsb command for new session format (#7651) 2017-06-01 10:47:12 +02:00
SkUaTeR
0596c1c08e Meson shlr libs 2017-05-30 18:38:19 +02:00
Sven Steinbauer
4dd740ebf2 Add rasm -r option honor flags and seeks 2017-05-30 13:19:21 +02:00
SkUaTeR
080416d09e Fixed meson build for msvc 2017-05-29 22:35:59 +02:00
pancake
5a90a375db Update cdb.h to make skuater happy 2017-05-29 21:23:19 +02:00
pancake
5c254c089a Fix memleak 2017-05-29 14:16:05 +02:00
pancake
1b854be75e Add file.lastpath to fix regression in projects using malloc:// 2017-05-29 14:02:50 +02:00
pancake
22cde23367 Generate r_userconf.h with Meson too 2017-05-29 13:06:10 +02:00
pancake
5bf37c2bf7 Update sdb from git to make msvc happy 2017-05-29 12:44:04 +02:00
pancake
5687da18f9 Fix #7383 - Case insensitive grep with ~+ 2017-05-29 02:52:53 +02:00
pancake
d8fff83c2e Aim to fix UAF in #7521 - r2 -d on mac 2017-05-28 23:38:14 +02:00
pancake
ba6dce4d73 Add REgg as dependency of RDebug 2017-05-28 22:38:10 +02:00
Xiangyu Zhu
bc3555b833 Modify RLang plugins for Py2/py3 support
* Add alias field
* use RTLD_LOCAL
2017-05-28 01:50:08 +02:00
pancake
6758e3753d Remove configure-plugins dependency for the make meson 2017-05-26 02:43:53 +02:00
Srimanta Barua
06aae3080e Added kill signal for gdb client 2017-05-25 15:41:07 +02:00
pancake
582863189d Update sdb from git 2017-05-25 15:14:23 +02:00
pancake
4bd1d0d9cd Introduce the anal->cmdtail and enhance anal.jmptbl with it
* Reduce false positives of switch tables detection
* Add flags for the jmptable, the cases and the bb using it
* cmdtail introduces some recursivity problems that may be fixed using the api more c
* Increased CMD DEPTH from 10 to 100
2017-05-23 23:55:22 +02:00
Ren Kimura
d3f5773219 Add new trace session format 2017-05-23 19:37:11 +02:00
Marc
ae1aef88b9 Add align info in payloads #7376 (#7574) 2017-05-23 03:01:45 +02:00
Srimanta Barua
d3958f00e4 Initial stub for gdbserver support
* Renaming functions, reorganizing code, adding temporary hack for closing gdbserver
2017-05-22 19:37:48 +02:00
pancake
74971add35 Honor MMX and SSE op.family for x86.cs 2017-05-22 00:56:24 +02:00
Ren Kimura
de259c83d1 Add diff-style memory snapshot 2017-05-20 12:37:45 +02:00
xarkes
ccc39a88cf Added .appveyor.yml to the repo and better config (#7474) 2017-05-18 16:50:52 +02:00
Simone Ferrini
dc669f165b [linux_heap_glibc] Implemented dynamic global_max_fast resolution (#7512) 2017-05-18 11:56:06 +02:00
pancake
0668d04488 Honor color theme in p=, add palette rainbow primitives in RCons 2017-05-18 00:01:16 +02:00
pancake
ff38defb1a Initial implementation of the flame column graphs in p== 2017-05-16 03:09:06 +02:00
soez
edba3d11f0 Fix max_global_fast again 2017-05-15 12:05:44 +02:00
Álvaro Felipe Melchor
99c90aad56 Add resource support into radare for PE files 2017-05-15 01:00:49 +02:00
SkUaTeR
9a1337512a meson.build fixes to build with MSVC 2017-05-14 23:06:00 +02:00
Khairul Azhar Kasmiran
a4ab7cdcda Use r_str_escape for str flag cmts (#7483)
* Using r_str_escape for str flag cmts

* Escape '"' and '\'

* Escape ESC

* Properly escape Windows UTF-16 2-byte chars
2017-05-14 09:50:01 +02:00
pancake
6756662d3a Implement pxj, p8j, pxwj, pxhj and pxqj 2017-05-13 18:27:55 +02:00
SkUaTeR
28f785daa0 MSVC compile correctly (WIP) 2017-05-13 00:42:00 +02:00
pancake
ed5e999b86 Refactor fo command into an api for cfg.fortunes 2017-05-12 03:44:53 +02:00
pancake
52dc44bc50 Honor user settings after loading the project when no bin info is found in RBin 2017-05-11 23:02:51 +02:00
SkUaTeR
1b5a746786 add more fixes to msvc build (#7468)
* add more fixes to msvc build

* more fixes
2017-05-10 22:12:49 +02:00
pancake
b24281c9c5 More fixes for mingw 2017-05-10 15:32:34 +02:00
SkUaTeR
beb80cfc16 Fixes for MSVC 2017-05-09 23:53:20 +02:00
Giovanni
72b643654d iCj - Signatures in JSON format 2017-05-09 14:43:07 +02:00
xarkes
926f024909 Improved MSVC support (WIP) 2017-05-09 14:25:57 +02:00
pancake
e0ea16c394 Honor cfg.log for analysis metadata (CC, ...) 2017-05-09 03:38:29 +02:00
pancake
d97c6fb7f5 Implement cfg.log and cmd.log 2017-05-09 02:58:39 +02:00
pancake
31468882cc Add support for #!python -e and other rlang plugins 2017-05-09 02:42:51 +02:00
soez
22c220c3e2 Update global_max_fast for dmh 2017-05-08 17:19:53 +02:00
Christopher Hewitt
aade860cc9 Reorder includes to provide missing BIGNUM definition (#7425) 2017-05-06 00:04:09 +02:00
mrmacete
4e3936cb37 Fix: avoid modifying symbol names in bin/filter
- the duplication count is stored in RBinSymbol and used when emitting flags
- for class method names this duplication count is ignored, since the flag generation already prepends the class name to account for uniqueness
- bring back the duplication count for obj. / loc. / sym. flags and in is*
- in all other places (lists, midflags, ic, etc) the "real" names are shown instead
2017-05-03 14:28:48 +02:00
pancake
5e641b2d68 Implement pss command to use it in cmd.visual or broken terminals 2017-05-03 03:05:01 +02:00
yetmorecode
1fc8a829b3 Added fss, fssj and fss* ans some minor improvements in fs (#7392) 2017-05-02 05:46:43 +02:00
pancake
fa671b9a16 Initial support for the Meson build system
- Integrated with current ACR
- Fix some stale fails got removed
2017-05-02 05:05:36 +02:00
pancake
96cae18de6 Update to sdb-0.12 fixing some mem issues 2017-04-28 14:48:01 +02:00
pancake
c91339830e Initial implementation of dir.zigns and honor in zo 2017-04-28 14:37:30 +02:00
pancake
b3850be217 Lot of null derefs fixes in signatures and crypto
- Remove \r from crypto_des
- Initial work towards dir.zigns
2017-04-28 14:37:28 +02:00
radare
fae079d20c Set asm.midflags=2 by default
- Filter flags starting by hit or $
2017-04-28 05:50:04 +02:00
yetmorecode
ca56112550 Added ev and evj command 2017-04-28 02:07:32 +02:00
pancake
96a6bd7d8f Update SDB from git fixing several vulns 2017-04-28 02:04:18 +02:00
pancake
02398e1e17 Implement r2 -X to specify custom rarun2 directives 2017-04-26 19:35:37 +02:00
0x0dada
92cde73473 Fix mode change to files ... (#7353) 2017-04-26 12:49:13 +02:00
pancake
5270b781e7 Fix #7355 - json indent with color glitch 2017-04-26 11:21:52 +02:00
pancake
7d460bc3cf Fix build for old linuxes 2017-04-25 01:27:14 +02:00
condret
1ab91415e6 kill vio 2017-04-24 19:45:33 +00:00
skuater
c6fe8ac4c9 fix Pl command on win64 2017-04-21 10:12:39 +02:00
pancake
5e209ecc92 Initial implementation of the anal plug for tms320c64x 2017-04-18 00:08:13 +02:00
pancake
54f6efddde Upgrade capstone-next to get tms320c64x support and more fixes for SFC 2017-04-17 23:37:04 +02:00
Pepe Vila
046a31cad4 ~? shows help 2017-04-17 17:15:20 +02:00
Anton Kochkov
a8d5b68320 Fix Cygwin build 2017-04-17 19:03:30 +08:00
pancake
04ff4a5195 Fix #6428 - Honor scr.color in ad command 2017-04-16 11:41:27 +02:00
pancake
eba88d8758 Honor midflags in pid and pdi 2017-04-16 11:12:41 +02:00
0x0dada
7327642241 Fix incorrect modes various .c files. (#7287) 2017-04-16 10:10:04 +02:00
Marcel
a4fc91f29b Remove dirent.h dependency for Windows and add utf16<->utf8 conversion function 2017-04-15 13:07:33 +02:00
Álvaro Felipe Melchor
825caa96bc Fix #6955 - get rid of .check in RBinPlugin and RBinXtrPlugin 2017-04-13 11:54:28 +02:00
Francesco Tamagni
05a52327e2 Expose class method's flags (#7253)
- a superset of method flags is defined with R_BIN_METH_* constants
- a new field, RBinSymbol->method_flags holds them
- every parser can expose them
- they show up in `ic` commands and VB, either in compact form, JSON and r2 commands
- exposed them for objc and dex
2017-04-12 02:27:27 +02:00
pancake
6cc2afefc9 Add agft, aka the tinygraph 2017-04-12 02:14:56 +02:00
Giovanni
2b6f6262fc Integrate crca in rahash2 and r2 2017-04-11 22:47:16 +02:00
pancake
65776308c9 RAR disassembler and bin plugin moved to radare2-extras 2017-04-11 13:53:58 +02:00
pancake
fb47d2ce74 Initial implementation of extracting class info from symbols 2017-04-10 12:52:42 +02:00
pancake
1cf650aceb Implement ad4 and ad8 commands 2017-04-10 02:18:47 +02:00
pancake
45889c7307 Implement Pn+, and fix bugs (thx clang-analyzer)
- Update SDB (use memmove)
- Fix garbage read in capstone x86 and lm32
- Add UT16/32/64_ALIGN macro for proper (ut16*) allocations
- Add Pn+ command
2017-04-10 00:49:02 +02:00
pancake
94d85cad32 Fix #7213 - Retrieve UID on XNU and Linux for RDebugPid 2017-04-09 23:41:32 +02:00
Duncan Ogilvie
75a7d708a4 fixed threading implementation on Windows 2017-04-09 10:09:45 +02:00
pancake
d031b7f130 Implement reentrant thread locks in RThread and use them in core.cmd() 2017-04-08 00:52:49 +02:00
Roi Martin
98f73f6b24 Remove r_config dependency from r_anal 2017-04-05 22:54:52 +00:00
Roi Martin
dae85e62ac Use RList in refs zignatures 2017-04-05 22:36:39 +00:00
pancake
bbc508b324 Move lua53 plugins to radare2-extras, available via r2pm
This reverts commit 16c2fd2fe4.
2017-04-05 10:16:50 +02:00
Roi Martin
0427524f97 Implement basic zign matching 2017-04-04 00:39:47 +00:00
Pepe Vila
86c8fa1a01 wasm disasm support (#7204) 2017-04-04 02:34:31 +02:00
Cararasu
16c2fd2fe4 Lua 5.3 Assembler/Disassembler, Analyzer and Binary Plugin (#3836) (#7197)
* Added Lua 5.3 Assembly and Disassembly
* Implemented Lua 5.3 Binary Analyzer #3836
* removed unnecesasry prints for lua implementation #3836

* implemented caching for parsing the lua-file #3836 grouped global data together
* added mnemonics to analyzer and fixed a wrong instructionname
* replaced llx and llu with PFMT64x
* removed trailing whitespaces from lua 5.3 assembler and binary analyzer
* made all functions in lua53 plugins that are possible static
2017-04-03 11:59:17 +02:00
Roi Martin
fb72dbb94b Do not add generated refs in zign 2017-04-03 00:47:53 +00:00
Roi Martin
668da7eeef Add refs to zign metrics 2017-04-03 02:28:20 +02:00
Roi Martin
d27f1c7d24 Add offset to zign metrics 2017-04-03 02:28:20 +02:00
Roi Martin
25134da7cf First steps in supporting multiple zign heuristics 2017-03-30 18:11:54 +02:00
pancake
cd28744049 Add r_mem_{alloc,free} to avoid issues mixing multiple allocators 2017-03-30 02:39:18 +02:00
Álvaro Felipe Melchor
a6e87ff6df Fix #7154 - /V* set flags and not behaves like aav (#7166) 2017-03-29 04:44:16 +02:00
Roi Martin
5d46f0224c Implement custom anal_mask for ARM 2017-03-29 02:25:43 +02:00
Roi Martin
dd447d0717 Add support for custom anal mask functions 2017-03-29 02:25:43 +02:00
pancake
8edcc53a18 Implement asm.section.sub to prefix offsets with section name in disasm 2017-03-28 22:55:58 +02:00
pancake
c504b85a7c Fix #7117 - Implement s! to show near flag names for history offsets 2017-03-27 13:12:59 +02:00
alvarofe
aa4374d347 Add missing definition r_debug_step_back 2017-03-27 00:29:31 +02:00
pancake
ce7104647e Add rahash2 -E xor and support -S - and -S @ to slurp stdin or files 2017-03-26 00:38:57 +01:00
Ren Kimura
ce5758b739 Add reverse singlestep command 'dsb' (#7116) 2017-03-25 16:00:25 +01:00
pancake
7205fbd665 ESIL can now emulate memory mapped devices 2017-03-25 03:29:03 +01:00
pancake
a93424a3db Indent cmd_search.c 2017-03-25 02:23:47 +01:00
Roi Martin
a3070b131b Restore zs names on load. r_spaces refactoring 2017-03-24 22:53:38 +00:00
radare
3d65ec6903 Fix #7088 - Remove io->raw and .keepio 2017-03-22 16:42:58 +01:00
condret
db884ecd1d Initial import of the io.null plugin and doc/siol.md 2017-03-21 20:00:35 +01:00
Roi Martin
38a112708d Improve zignatures naming 2017-03-20 23:06:24 +00:00
pancake
94ec966936 Do not exit if pledge fails, just return with disabled sandbox 2017-03-20 16:05:48 +01:00
xarkes
f5c67d8bdf Added custom tab to sdb json_indent function (#7050) 2017-03-19 21:34:30 +01:00
Roi Martin
0ca78a43e5 Do not add zignatures with zero mask
Fix #5688
2017-03-19 17:20:31 +00:00
pancake
3fc88ea96a Add R_NEWCOPY primitive in r_types.h 2017-03-18 23:13:24 +01:00
pancake
40bc4cb751 Fix ood symbol rebasing and add obr command 2017-03-18 21:40:01 +01:00
Roi Martin
09c3e12a8f Implement metric zign search and check 2017-03-18 11:33:30 +01:00
Roi Martin
1425fd4418 Implement metric zignatures management 2017-03-18 11:33:30 +01:00
xarkes
072551a8a7 Modified json indent character 2017-03-17 12:09:17 +01:00
Riccardo Schirone
084d5c1217 libr/parse: add another view for function variable/arguments (#7048) 2017-03-17 11:54:34 +01:00
pancake
56aeb2a6e3 RBinPlugin.load boolified 2017-03-17 03:52:43 +01:00
Roi Martin
3fa18414c3 Implement open/save zignature file 2017-03-17 00:43:02 +01:00
davidpolverari
1fb422b532 Fix #6162 - Renames r_str_concat to r_str_append 2017-03-16 22:29:49 +01:00
Ren Kimura
863e3566d2 Add snap_set command (#7032) 2017-03-16 10:09:17 +01:00
pancake
7a0a11f500 Apply minor naming and indent changes from the siol branch - thanks condret 2017-03-15 02:22:54 +01:00
pancake
6a9c4a652c Refactor get_sdb(RBinObject) -> get_sdb(RBinFile) + r2-indent 2017-03-15 00:21:37 +01:00
pancake
6506118fb9 Initial support for the NRO Nintendo Switch binaries 2017-03-14 20:02:59 +01:00
pancake
9a4a014e3c Update sdb and capstone 2017-03-13 14:59:00 +01:00
Roi Martin
5743f373ff Integrate support for FLIRT signatures 2017-03-13 11:38:23 +01:00
Roi Martin
bcb8072ec5 Move search code into r_sign. Refactoring 2017-03-13 11:38:23 +01:00
Roi Martin
e97444c3f0 Create flags in z/ . Revert changes in keyword.c 2017-03-13 11:38:23 +01:00
Roi Martin
488b688636 Implement zign search using r_search. Minor fixes
Note: Current implementation must be refactored and moved to r_sign.
2017-03-13 11:38:23 +01:00
Roi Martin
28f8a23632 Add r_sign_foreach(). Add dummy z/. Make r2-indent happy 2017-03-13 11:38:23 +01:00
Roi Martin
3f89eec3b0 Initial rewrite of zignatures
Includes:
* Add exact and anal zignatures (zae, zaa)
* Delete zignatures (z-)
* Manage zignspaces (zs)
2017-03-13 11:38:23 +01:00
pancake
0202236dbc Add missing function definition 2017-03-13 02:57:44 +01:00
Riccardo Schirone
4228c1defe core/graph: remove some dup code and fix mini nodes 2017-03-11 02:47:50 +01:00
Giovanni
eddf4ee678 ASN1 - Fix memory leaks, clean code and solve crash 2017-03-10 23:14:14 +01:00
Pankaj Kataria
c8e11c0828 Initial commit for parsing RTTI structures 2017-03-09 23:50:50 +01:00
Álvaro Felipe Melchor
e8f80a165c Remove fcn->vars and reindent anal/fcn.c var.c and flirt.c 2017-03-09 23:46:02 +01:00
pancake
9c870ef165 Add RAnalOp.opex, not yet used 2017-03-09 18:52:18 +01:00
pancake
1a5dbf3ccb Boolify rbin's check + check_bytes callbacks and fix null deref in dex 2017-03-08 23:16:46 +01:00
Giovanni
7e48260b04 Fixed SIGSEGV, fixed heap buffer overflow and UAF in the ASN1 code 2017-03-08 12:32:44 +01:00
Giovanni
43532031c4 Fixes for windows and some are also global (#6936) 2017-03-08 08:49:31 +01:00
Giovanni
5d669ed2f8 Improvement of iI for PE with signatures + refactoring (#6930)
* Improvement of iI for PE with signatures + refactoring
2017-03-07 15:54:22 +01:00
Roi Martin
a40343f2f0 Make spaces.c generic (#6931) 2017-03-06 23:23:40 +01:00
xarkes
4d7767883b Added PE overlay flag to r2 -nn and in iI (#6926) 2017-03-06 12:00:44 +01:00
Giovanni
347a392cc9 Fix #3499 - AVR-DES + DES Refactoring 2017-03-03 11:00:07 +01:00
Giovanni
fd38170338 Refactoring CMS/PKCS#7 and better use of the memory
Refactoring CMS/PKCS#7 and better use of the memory
2017-03-02 16:10:32 +01:00
pancake
a41a8252ae Initial import of the WIP support for WebAssembly (bin + disasm) 2017-03-02 14:42:05 +01:00
pancake
55f16419ae Fix build 2017-03-02 03:57:14 +01:00
Roi Martin
d82235285c Implement "rabin2 -L [plugin]" and command "iL [plugin]" (#6875)
* Fix r_str_cmp to follow the documented behaviour

Now r_str_cmp behaviour is consistent.

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

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

* Implement "rabin2 -L [plugin]"

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

Fix issue #6861.

* Implement command iL [plugin]

* Fix json output in rabin2 -L and iL
2017-03-01 20:05:40 +01:00
Rakholiya Jenish
5af263c821 Fix #4837 - Support punycode 2017-03-01 09:56:10 +01:00
radare
93e11e9d80 RHash cleanup 2017-03-01 09:02:28 +01:00
pancake
5057cb6fb6 Update ABI for debug, core and anal plugs 2017-02-28 02:29:54 +01:00
pancake
d6756e235c Implement author and version of RAsmPlugin 2017-02-28 02:26:55 +01:00
pancake
ef463f983e Fix rabin2 -qL -jL and add version and author in RBinPlugin 2017-02-28 02:16:36 +01:00
pancake
30aebdc521 Add author and version fields for RIOPlugin 2017-02-28 02:06:46 +01:00
pancake
81832436e0 Honor rabin2 -H, -rH, -qH and -jH 2017-02-27 10:55:47 +01:00
pancake
c1c4086e38 Fix #242 - Implement HFS timestamp in pth 2017-02-26 23:01:49 +01:00
Maijin
266eee75ae Fix #6560 Unify Windows/Win32 define 2017-02-26 16:51:03 +01:00
alvarofe
e506bc608e Get rid of r_strht.h 2017-02-24 23:42:17 +01:00
alvarofe
c549a33c6d Use sdb in cmd_print.c 2017-02-24 23:42:17 +01:00
alvarofe
a28726d467 Fix some warnings and leftover without update 2017-02-24 23:42:17 +01:00
alvarofe
f33febdd4f Remove r_db.h 2017-02-24 23:42:17 +01:00
alvarofe
623aed3163 More work into ht replacement 2017-02-24 23:42:17 +01:00
alvarofe
857656ed84 More leftover because of old ht imp 2017-02-24 23:42:17 +01:00
alvarofe
3e463d8069 Use ht_* in strht.c 2017-02-24 23:42:17 +01:00
alvarofe
8695dbf3b5 Use ht_* in mixed.c 2017-02-24 23:42:17 +01:00
alvarofe
ed8d668247 Use ht_* in config.c 2017-02-24 23:42:17 +01:00
alvarofe
d260e46cde Use ht_* from sdb in fcnstore.c 2017-02-24 23:42:17 +01:00
alvarofe
8307af0b10 Use ht_* from sdb in flag.c & r_flag.h 2017-02-24 23:42:17 +01:00
pancake
a622aaba3e More rework on the RBinField refactoring 2017-02-24 11:05:04 +01:00
pancake
0eadd79d5a Implement initial iHH for mach0 2017-02-24 02:33:50 +01:00
pancake
25f1d59036 Implement pxx and pxX for hex-less hexdumps 2017-02-23 17:34:12 +01:00
pancake
b7c192af29 Fix #6821 - Use (void) instead of () 2017-02-20 12:38:10 +01:00
Srimanta Barua
7cdf8660d8 Fix #6795 - ax- not working 2017-02-20 12:15:58 +01:00
pancake
1ea23bd604 Fix #6816 - null deref in r_read_* 2017-02-20 12:08:06 +01:00
pancake
4bbc73a0e2 Fix #6818 - json indent ~{} honors scr.color
- Cannot configure the color palette
2017-02-20 02:32:58 +01:00
pancake
a1164822c0 Drop \r in asn1|pkcs7|x509 and fix r2b 2017-02-19 01:58:51 +01:00
Giovanni
1f64c47c05 Add ASN1, X.509 and PKCS parsers (+ iC for PE) 2017-02-18 00:07:01 +01:00
pancake
be78c631b0 Fix #6806 - invalid delta diff boundaries 2017-02-18 00:04:13 +01:00
William D. Jones
2603cbf310 Improve Windows search path for sdb (#6802)
* Add r_sys_get_src_dir_w32 function
* Fix Windows search path for sdbs in pe.c and cbin.c
2017-02-17 04:31:20 +01:00
pancake
74748d9cd5 Say hello to the new compact hexdump (e!hex.compact) 2017-02-16 18:27:52 +01:00
pancake
423ea3dcf9 Fix build for gcc < 6 2017-02-15 22:42:24 +01:00
pancake
0a6913a2e9 Fix #6770 - Handle ^C in pdr 2017-02-15 03:41:28 +01:00
pancake
5c3a2f96b4 More wip work for the anal-blaze loop 2017-02-13 17:14:43 +01:00
pancake
93eb47ccac Update SDB fixing stack exhaustion in merge sort and enhance indentation scripts 2017-02-12 22:44:13 +01:00
SchumBlubBlub
a7c2f430d9 Add r_buf_set_bytes_steal to eliminate copying and reduce memory usage 2017-02-10 18:14:26 +01:00
pancake
70930f4496 Bring back the interest on sys/indent.sh 2017-02-10 02:05:58 +01:00
pancake
b70b0e02d4 Enhancements for aab and abb, codename 'analblaze' 2017-02-10 00:02:39 +01:00
Anton Kochkov
189bfb2de5 Aim to fix MSYS2/MinGW-w64 compilation 2017-02-09 10:34:52 +08:00
Álvaro Felipe Melchor
d8fa8c9475 Coding style fixes while reviewing code 2017-02-08 23:01:42 +01:00
condret
5e6b20e69d use id-pool-API for RBinFile->id (#6722) 2017-02-08 20:43:04 +00:00
SchumBlubBlub
313cb98073 Code style and Fortunes 2017-02-08 12:34:08 +01:00
Álvaro Felipe Melchor
05a4ed6607 Added new core binding to seek and set arch and bits
This born to handle arm/thumb since is a pain and we need to
track in which mode we are.
2017-02-07 23:58:35 +01:00
condret
3dee0cb665 implement id-storage-API 2017-02-07 01:55:24 +00:00
pancake
e11f033110 Honor Vd[x] in batch mode, also refresh with Vrq 2017-02-06 00:55:03 +01:00
SchumBlubBlub
6c00c9e2d5 Reorganize string macros 2017-02-06 00:00:03 +01:00
pancake
8ecf4238fd Fix #6676 - rbin warn after re-o 2017-02-03 20:47:09 +01:00
leberus
c5149f97b7 Fix: Fixed regression pointed by #6650 (#6672) 2017-02-03 18:20:07 +01:00
Sven Steinbauer
e8e9287c12 New asm.relsub enhancement 2017-02-03 09:53:57 +01:00
Polshakov Dmitry
249532bf53 Add support non-numeric signal numbers in RRunProfile (#6558)
* Add support non-numeric signal numbers in RRunProfile
* Add signal util module
* Remove old `signal_resolve` implementation
2017-02-02 14:34:44 +01:00
Lars Haukli
71cc67e390 Windows debugger: Added dce command. Fixed dmm commands. (#6628)
* Use double quotes to make .dmm* work on Windows
* Fix r2pipe.cmdj('dmmj') command on Windows. Report correct path when listing modules ('dmm')
* Removed unused local variable
* Added 'dce' command for windows
* Escape backslashes for JSON output only
* Do not include r_debug_native_continue() for __CYGWIN__ builds. Removed unnecessary memset.
* Added exception for CYGWIN to not escape backslashes in path
* Escape backslashes in both file paths and map names. Use map name for 'f mod.%s' instead of file path
* Added more exceptions for CYGWIN
* Validate escaped strings
2017-02-02 13:27:39 +01:00
pancake
4dc2b8b081 Add sys/sdk build script (wip) 2017-02-02 13:25:14 +01:00
leberus
4fd1e990d9 Add: coredump refactoring + RDebugMap offset field (#6633) 2017-02-01 22:17:59 +01:00
mrmacete
d50ba765eb Fix #4554 stackptr calculation on pdr and graph
- blocks have their stackptr
- inherit from parent when visited hierarchically (in pdr and graph)
- add the global anal->stackptr as a starting value for disasm, defaults to 0
2017-01-31 13:06:26 +01:00
pancake
08bbccfc5d Emscripten builds default to x86-32 2017-01-30 00:05:35 +01:00
pancake
0af4092ee4 More fixes for the emscripten build 2017-01-29 23:54:10 +01:00
Anton Kochkov
0ee11af2f8 Fix dump compilers complains of typeof 2017-01-30 01:09:30 +03:00
pancake
ef233e2bd5 Fix function signature casting issues 2017-01-29 23:05:02 +01:00
pancake
036632a3d7 Fix #2958 - Fill all the stats info for p-h 2017-01-29 18:21:29 +01:00
pancake
5974d2035f Enhance ragg2-cc to support -a arm -b 64 -k darwin (iOS) 2017-01-29 02:36:50 +01:00
Giovanni
276f9acae7 Add DES support to rahash2 2017-01-28 12:52:39 +01:00
Álvaro Felipe Melchor
19659c9b06 Workaround in fat binaries
This is not the final solution to the problem just a workaround.

Still the OS kill rabin2 -x with a dyldcache from 32 bits
2017-01-25 23:47:32 +01:00
Anton Kochkov
e9c2d22da9 Fix windows detection in headers (#6557) 2017-01-25 11:30:16 +01:00
pancake
dc203aeb27 Fix build 2017-01-24 00:50:22 +01:00
pancake
446d4b27db Colorize and enhance f= [glob] and kill f== 2017-01-24 00:43:57 +01:00
pancake
d619c6039f Fix undefined behaviour in pd with emustr 2017-01-23 22:42:27 +01:00
pancake
4e2cd40ed6 Implement bin.verbose for ELF, PE and MACH0 2017-01-22 01:50:41 +01:00
pancake
e9b7a07eb3 More fixes for emscripten 2017-01-19 23:34:52 +01:00
Álvaro Felipe Melchor
2ec6722bfe Handle f->bits as anal hints and blx/bx in aa/aae
This commit erases the need of ds->oldbits plus a few lines when handling
bits in disasm.

Moreover, the functionality that was introduced in disasm.c to switch
instruction set in arm when executing blx/bx, is now in anal loop
2017-01-19 21:53:02 +01:00
Moritz Eckert
c176c48ffc Implement: Show comments in hexdump #6460 (#6527)
* Add hex.comments variable to config
* Add get_comments callback to the core api
* Add comment printing functionality to px
* Add pxc function
* Change visual mode hexdump to pxc
* Boolify use_comments
2017-01-18 16:12:06 +01:00
pancake
41602c4212 Fix android build 2017-01-18 13:46:39 +01:00
Sevan Janiyan
0e4b401635 Upstream patches from pkgsrc/devel/radare2 (#6491)
* Upstream patches from pkgsrc/devel/radare2
Switch to using egrep instead of non-portable "grep -e".
Add support for SunOS.

* Add support for SunOS.

* FIONREAD is defined in sys/filio.h on SunOS.

* Ask find(1) to look for files with desired extension rather than searching for
all files & fishing out the desired extension in the pipeline, with grep.
2017-01-18 00:47:46 +01:00
leberus
286ca4d0ed Add: support for dbg.follow.child option (#6525) 2017-01-18 00:40:30 +01:00
Sven Steinbauer
a8d3d5b996 Retire x86_olly to r2e (#6521) 2017-01-17 14:28:14 +00:00
pancake
a3a42aa982 Implement RCons.jsonpath.grep via ~{json-path} 2017-01-17 13:38:42 +01:00
Sven Steinbauer
4687135c5b Add asm directives help (-hh) and update manpage 2017-01-16 12:03:06 +01:00
pancake
b46fa51f9c Colorize backward lines with pal.flow2 2017-01-16 00:41:31 +01:00
pancake
a2cb6b6647 Fix a bunch of pedantic warnings and drop exits in base85
* Define eprint() when no formatting is necessary
* Remove exit() from ascii85 when allocation fails
* Update capstone
* Return null instead of exit if malloc fails in r_str_word_get_first
* Update sdb with a bunch of pedantic warnings fixed
* Drop windows-style newlines from judy64na.c
2017-01-15 23:36:19 +01:00
pancake
b70ac26f4a Add R_FREE define guards to skip some warnings 2017-01-15 19:12:29 +01:00
pancake
62e1edc01c Bump sdb to fix hash collision issues 2017-01-14 22:02:33 +01:00
Álvaro Felipe Melchor
43e77cf459 Fix #6496 - add baddr and laddr in RBinXtrData 2017-01-14 16:15:52 +01:00
Álvaro Felipe Melchor
b3b81aa926 Fix build due to extern "C" 2017-01-14 11:52:46 +01:00
ninjahacker
f5c5c79136 Overhauled STR, fixed arm reg profile (#6504)
* Overhauled STR, fixed arm reg profile
2017-01-14 09:20:41 +01:00