Commit graph

382 commits

Author SHA1 Message Date
condret
7c5deb4a4d roundkey calculation for des 2015-10-18 02:02:58 +00:00
seu
b3de57697c broken DES impl. 2015-10-18 01:44:41 +00:00
pancake
5ecd98305e Add support for MBN/SBL roms, fix 11acb8392, binsect->has_strings 2015-09-29 00:42:31 +02:00
pancake
783d31bf5a Find strings in esil and support thumb aap 2015-09-10 04:20:09 +02:00
Kevin Grandemange
71c4245df7 add clearenv in rarun2 and update documentation
fix unsetenv wrong description
add some example for environment variable
fix r2 use of rarun2 example

Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2015-08-29 19:22:15 +02:00
shuall
0807686d86 #3052 all printf member functions changed to cb_printf 2015-08-09 03:25:05 +02:00
Riccardo Schirone
5adf6b4043 util/str: add r_str_ansi_crop function and tests 2015-07-30 01:05:31 +02:00
Riccardo Schirone
46ffc1346f util/str: add some comments and fix r_str_ansi_chop
util/str: fix r_str_ansi_filter
2015-07-29 21:33:42 +02:00
Riccardo Schirone
6c6e9f5f3c util/graph: RGraphEdgeCallback now accepts a RGraphEdge 2015-07-13 20:33:52 +02:00
Riccardo Schirone
5d66b7510b util/list: add r_list_insert to insert element in a specified position 2015-07-13 20:33:52 +02:00
pancake
bdfbc4f076 Fix several COVs, and build issues related to appveyour 2015-07-13 11:21:21 +02:00
Riccardo Schirone
316a529a80 core/graph: fix a regression where dots are printed out of node 2015-07-07 00:54:38 +02:00
Riccardo Schirone
40e0884e57 util/graph: move adjacency lists to the RGraphNode 2015-07-03 09:40:35 +02:00
Riccardo Schirone
31099a3a54 util/graph: add DFS visit implementation and r_graph_del_edge/node 2015-06-17 11:22:10 +02:00
pancake
8d0b8c6b78 Add CS command to manage meta-spaces 2015-06-15 04:19:29 +02:00
Riccardo Schirone
b279f282ba Refactoring ascii art graph
util/stack: extend stack api with r_stack_size
core/graph: use RStack instead of a custom implementation
util/graph: change implementation to use lists and extend api
core/cmd_debug: avoid free r_graph_get_nodes
core/graph: rename some functions and use typedefs for graph struct
core/graph: use RGraph for the ascii art graph
util/list: add const whenever possible
util/graph: add const on r_graph_get_nodes/neighbours
core/graph,core/cmd_debug: use const
core/graph: clean the code (add comments, use const, remove magic nums)

* use r_graph_node_iter for the current node
* reset graph when reloading nodes
* on callgraph edges printing, nth should be 0
* force seek of current node when reloading nodes
* use graph_foreach_node
* core/graph: remove get_current_node because useless
2015-06-14 00:46:11 +02:00
Riccardo Schirone
177ee3ac56 include/r_types: fix R_NEWS0 calloc usage and use it in libr/util 2015-06-12 12:48:39 +02:00
Riccardo Schirone
49ebf0942c libr/util: reimplement graph api
libr/util/t/graph: add test
2015-06-11 22:53:48 +02:00
Riccardo Schirone
9558a2b7f8 libr/util: implement a tree
libr/util/t/tree: add test
2015-06-11 22:53:48 +02:00
Riccardo Schirone
c640e68e56 libr/util: implement a simple queue
libr/util/t/queue: add test
2015-06-11 22:53:48 +02:00
Riccardo Schirone
0b091a6c5f libr/util: implement a simple stack
libr/util/t/stack: add test
2015-06-11 22:53:47 +02:00
pancake
2970b9817b Fix #2674 - merge diff into util 2015-06-02 01:35:12 +02:00
Judge_Dredd
264883a097 Refactor cons highlight 2015-06-01 21:58:07 +02:00
pancake
663cbb0455 Fix some warnings 2015-05-28 11:09:13 +02:00
Judge_Dredd
b190fff5e2 fix for #2314 and #2312 2015-05-28 00:28:25 +02:00
Skia
1b99f7126e pf: add uleb128 support 2015-05-04 10:03:58 +02:00
Judge_Dredd
0ce2c0033c cons less chop lines to terminal width 2015-04-12 16:12:02 +02:00
pancake
882a0ee164 Add --without-fork and r_sys_fork() 2015-04-11 05:00:05 +02:00
pancake
87162dc8bf Add wta support for appending dump. 2015-04-03 04:11:26 +02:00
pancake
efc7ebff17 Add prgi and prgo commands to get consumed and generated bytes at gunzip 2015-04-03 03:20:04 +02:00
pancake
595db83d93 Add RBufferSparse API and sparse:// io plugin 2015-03-16 01:19:25 +01:00
pancake
f53cb526cd Add r_str_utf16_encode and use it in isj 2015-03-14 03:47:34 +01:00
pancake
0040f8cb44 JSONify PDB and remove useless function in r_util 2015-03-08 17:30:41 +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
ebf85b56cb Initial implementation of Pn command for project notes 2015-02-10 02:13:53 +01:00
pancake
e0d7e3271d izj strings encoded in base64 instead of uri-encode
URI encoded is not designed to handle binary data, and some implementations
verify that the resulting string is an uri or not. So it may fail if it
contains : or / chars.
2015-02-09 01:17:42 +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
pancake
b7c3ded3b9 Fix #1975 - Replace flags in ${} for ?e 2015-01-18 02:17:55 +01:00
Jeffrey Crowell
1fc3a177f6 Separate fortunes to fortunes.{fun,tips,nsfw}
add `e cfg.fortunetype = fun,tips,nsfw`

Add some "legacy" nsfw fortunes.
2015-01-15 10:43:09 +01:00
jvoisin
a8937732b8 Fix all 'warning: function declaration isn’t a prototype [-Wstrict-prototypes]' 2015-01-13 03:40:35 +01:00
pancake
3b3fa3584f Initial implementation of asm.reladdr 2015-01-12 00:11:06 +01:00
pancake
31d1ec7349 Implement r_file_dirname and support DOS paths in r_file_basename too 2014-12-12 13:59:39 +01:00
pancake
3a31198ffd Fix #1702 - Revert and fix the dwarf/dex crashes related to uleb overflows 2014-12-01 23:44:20 +01:00
pancake
5e236429c7 Implement ^Z in RCons for prompt and visual modes (unix only) 2014-11-19 22:25:17 +01:00
pancake
41b6f99ec1 Revert "Fix several crashes in dalvik. Thanks nightmare!"
This reverts commit f6440fc526.

Conflicts:
	libr/bin/dwarf.c
	libr/bin/p/bin_dex.c
2014-11-19 12:14:23 +01:00
pancake
b7e1dc4354 Fix #1698 - dr rflags=cpz is now supported 2014-11-18 17:22:43 +01:00
pancake
40f202c7ee Fix issue bad string filtering in PDB symbol names 2014-11-09 18:11:03 +01:00
pancake
ccffbeb9c8 Fix #1567 - Show error when trying to divide by zero 2014-11-07 12:16:29 +01:00
pancake
f6440fc526 Fix several crashes in dalvik. Thanks nightmare! 2014-11-05 00:15:40 +01:00
pancake
cab0c6ae49 Fix crash in r_utf8_decode 2014-11-04 23:17:52 +01:00
pancake
e5461c14ce Fix COV#1250308 and COV#1250307 2014-11-01 10:52:22 +01:00
pancake
e8140ab8bf Add r_buf_seek() 2014-10-29 22:53:51 +01:00
pancake
92b167bbdd Add r_buf_read/write methods using CUR, fix some more warnings 2014-10-29 22:12:16 +01: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
718e175892 Add $p for getpid(), hide UNKNOWN refs, 'cat' works with bigger chunk if unknown size 2014-10-18 00:25:55 +02:00
deeso
55fe0a9e9a Added command that 'bruteforces' the parsing of a class file in a blob of data 2014-09-20 19:46:21 +02:00
pancake
fc2bb2af7f Fix 4GB issue file and some more warnings 2014-09-20 15:53:29 +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
deeso
3adb00621b Fixing the issue where file size exceeds size of an integer 2014-09-17 23:53:25 +02:00
pancake
30acdbf50c Refactor debruijn code and make it accessible from ragg2 -P 2014-09-05 16:03:40 +02:00
Jody Frankowski
f930a97adc Unify gzip and zip 2014-09-05 15:12:40 +02:00
Jody Frankowski
8e3d7e045d Add support for both zlib and gzip streams 2014-09-05 14:10:00 +02:00
pancake
6231f00a2b Minor typedefication in .h function definitions 2014-08-29 18:45:14 +02:00
pancake
c6bc6f099d Rename l to T, add cfg.user and 'TT' chat prompt
* Add cfg.user variable
* Implement TT chat prompt
* Invoked from 'VT'
* Rename 'l' to 'T' command (log -> textlog)
* Add r_sys_whoami () -> set default username
* Add $$ trap instruction in ESIL
* Implement POP and STACK esil commands
2014-08-28 03:11:13 +02:00
pancake
b4715d4e50 Fix R_BUF_CUR definition 2014-08-24 13:09:12 +02:00
jvoisin
524ac829fc Remove unused r_alloca_* 2014-08-18 02:36:08 +02:00
pancake
b717518f8f Fix some warnings 2014-08-15 02:04:20 +02:00
pancake
504f006d5d Fixes more gunzip support in r_util 2014-08-10 18:24:00 +02:00
Skia
75b331d114 Add pf.obj.str=bar and fix some more 'pf' issues 2014-07-17 04:18:09 +02:00
LemonBoy
841a1ed5b6 Better string escaping. Fixes graph view 2014-07-02 18:26:03 +02:00
pancake
036873a9b7 Fix RBin flag strings issue and name filtering 2014-07-01 22:43:28 +02:00
LemonBoy
9208946109 Add support for UTF-8 and better WChar strings in RBin
- Better string recognition.
- Better wchar string detection
- UTF-8 helpers. Better string detection.
- Break on invalid sequences
- Fix the vaddr translation. Misc fixes
2014-06-30 16:39:24 +02:00
tosh
38b9674bd1 Fix: floating point exception in UTX_MUL functions 2014-06-23 15:34:51 +02:00
tosh
eb6b86dd4b Some fix in the ELF parser
New functions used to prevent integer overflow when add, sub or mul
Fix an out of bound in r_buf_fcpy_at
2014-06-23 15:34:51 +02:00
pancake
5c209802a7 More work on arm-thumb-capstone + esil 2014-06-19 04:03:11 +02:00
pancake
8330ea59fc Fix stale pointer issue in RBinELF. Add r_mem_dup 2014-06-14 00:04:40 +02:00
condret
70744a1ad9 support ternary values in rax2 2014-05-28 21:50:13 +02:00
pancake
0d68756791 Add r_str_crop() will be used by canvas to shifted render text 2014-05-18 03:41:39 +02:00
Adam Pridgen
5bb7ddef66 Added listing for binfiles, selection by binobject ids, selection by binfile ids, and deletion by bin object ids 2014-05-13 21:54:18 -05: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
deeso
4ad0f2a400 Tweaking bin plugins so that they can check bytes along with a binfile and fixed extraneous * in buf.c and r_util.h 2014-05-08 14:09:10 -05:00
deeso
621e425e26 Adding buffer accessors 2014-05-08 12:27:50 -05:00
pancake
d138f61816 Add r_num_as_string() in '?' and in disasm as comments 2014-05-07 02:51:04 +02:00
pancake
a7778a5815 Fix r_num_free memleak 2014-05-06 04:00:26 +02:00
deeso
14354feb61 fixed MMap Read-Write issue in io plugins and RBuf 2014-05-02 16:43:47 -05:00
deeso
3adcb54f17 Overhauled how files are loaded. Now *all* files use an IO plugin the default one is mmap'ed 2014-05-01 20:13:57 -05:00
pancake
7028b225bd Added 'VV' command to run the visual graph mode 2014-04-29 03:54:20 +02:00
deeso
a1e81a4cbd refactored some of cmd_hash 2014-04-20 17:22:51 -05:00
pancake
2397c956c9 Use R2_ as unique header guard prefix 2014-03-27 16:34:17 +01:00
pancake
d3af1ea077 Fix #723 - header guards conforming to C standards 2014-03-27 02:32:26 +01:00
pancake
13fb09ee5f Update sdb from git and sync base64 fixes 2014-03-26 23:17:40 +01:00
pancake
b001eed6bb Update sdb for an array iteration optimization 2014-03-06 02:31:31 +01:00
pancake
8d68b37b02 Add MOD operator '%' in RNumCalc 2014-02-26 19:42:56 +01:00
pancake
03b61eeb25 Implement AND, OR, XOR, NEG operations in r_num_calc() 2014-02-26 18:33:42 +01:00
pancake
4180b24f56 Fix graph with trash data in it 2014-02-25 00:38:18 +01:00
pancake
070bc97286 Fix #582 - Escape binary strings in output error message 2014-02-23 01:56:26 +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
Fedor Sakharov
18d7167f63 dwarf: Implement it. 2014-02-08 14:08:07 +04:00
pancake
d86bf57ca4 Remove more r_lib references 2014-01-18 02:52:49 +01:00
pancake
802e808072 Merge libr/lib into libr/util and add r_sys_environ API 2014-01-18 02:42:23 +01:00