Commit Graph

1330 Commits

Author SHA1 Message Date
pancake
497cb0e2e1 Fix #57 - 'is' does not work for attached process 2013-11-04 03:30:46 +01:00
pancake
ede55b55c4 Fix r_mem_mem and handle 'K' in visual cursor mode to see manpages 2013-11-03 13:47:34 +01:00
pancake
cbecfb8f4a Initial import of rahash2 '-S' seed and '-i' iterations 2013-11-02 11:49:32 +01:00
pancake
ed1d87f19d Fix #289 - Oops. Negative function size at ...
- Negative values is the status, not a negative length
2013-10-27 02:34:31 +01:00
pancake
e26763a496 Fix some more regression tests. Implement ahc/ahf, COND,REP are now op flags 2013-10-25 02:06:00 +02:00
pancake
bec4f5b63a Fix radiff2, Ps segfaults and ARC syntax
- Fix some nullptr derefs on uninitialized graphdiff structs
- 'ar' is now r_cons compliant and rnum friendly (add arj)
- Fix some arc disasm syntax issues
- Fix segfault when saving analysis info in projects
- ARCompact analysis needs to be rewritten
2013-10-24 13:59:19 +02:00
pancake
bd100e9853 Oops 2013-10-24 00:58:27 +02:00
pancake
36055d5c1f Merge branch 'master' of https://github.com/radare/radare2 2013-10-20 02:13:57 +02:00
pancake
d814a5b01b Fix #264 - Add a command to display changed registers 2013-10-20 02:09:03 +02:00
pancake
a5b9d9126a Code analysis fixes, add 'sf' command and add visual seek feedback 2013-10-20 00:25:37 +02:00
pancake
4b58282fec Fix #226 - Hash names are now insensitives in r_hash_name_to_bits 2013-10-16 03:12:28 +02:00
pancake
a5844a241f Add r_cons_color_random() and handle 'random' as color 2013-10-14 23:48:18 +02:00
pancake
de857fa91d Fix #251 - Segmentation fault running "rabin2 -I classes.dex" 2013-10-14 23:28:17 +02:00
pancake
e173008266 Fixes on io maps and fd descs 2013-10-11 03:11:15 +02:00
pancake
4565790b2f Rename '_' macro as 'B' 2013-10-09 03:00:05 +02:00
pancake
d100e603c9 Fix #157 - sandbox issue in webui
- add 'f' and ':' print formats
- fix nocolor disasm artifact
- add VW command to launch webui
- rename sN to sp (seek to previous hit)
2013-10-09 00:29:49 +02:00
pancake
117a462424 Fix rarun2 preload for latest OSX. Add il help and fix R_EGG constants 2013-10-06 03:54:19 +02:00
pancake
653881eb3a Merge and fix jvoisin #235 #236 2013-10-04 13:57:49 +02:00
pancake
06b02592d5 Fix crash in rabin2 (unnecessary free of const string) 2013-09-27 20:14:18 +02:00
pancake
800c1de3a4 More work on ctypes+rcore 2013-09-24 23:03:39 +02:00
pancake
354bd7cbaa Apply modified patch of @jjdredd to handle ^x^e to run editor from rline 2013-09-18 17:24:43 +02:00
pancake
7403b1d671 Implement 'dk' to handle signal events in debugger 2013-09-18 02:11:23 +02:00
pancake
92bdbf0c0a Add scr.fgets and fix rax2 -s for emscripten 2013-09-16 04:08:08 +02:00
pancake
5372d0acb2 Add 'woR' and 'dd-' commands. Update enyo and add missing PNGs. 2013-09-15 02:24:23 +02:00
pancake
f67f8cefdd Fix some warnings 2013-09-12 02:02:08 +02:00
pancake
60d40a6374 Add 's.' command 2013-09-12 01:58:05 +02:00
pancake
f058b5e0ad Handle \n as well as ; for line separators in r_core_cmd 2013-09-11 23:41:40 +02:00
Adam Pridgen
da5bf8db45 Squashed commit of the following:
commit 7800f979cc84c48395581b7106627f7f23563ee2
Author: Adam Pridgen <adam.pridgen@thecoverofnight.com>
Date:   Wed Sep 4 21:58:35 2013 -0500

    - Added visibility field to structures RBinField, RBinMethod, RBinBind, RBinReloc, and RBinImport
    - Added handling for listing java classes

commit 1e7014342d16094fe21ddcb9b6b1991c5e3908b1
Author: Adam Pridgen <adam.pridgen@thecoverofnight.com>
Date:   Wed Sep 4 18:41:00 2013 -0500

    -- Added mappings for access flags

commit cb8e4f0af99fc77f04263ddf292442835e128cff
Author: Adam Pridgen <adam.pridgen@thecoverofnight.com>
Date:   Wed Sep 4 17:53:04 2013 -0500

    -- Updated the get sections command.
2013-09-06 16:22:26 +02:00
pancake
f61fa0565e More work for cparse, Show type links in disasm. Fix some warns 2013-09-04 02:01:42 +02:00
pancake
1168998743 Add scr.heightfix 2013-08-29 05:42:50 +02:00
pancake
e5e441f318 Implement '. file.{c|h|cparse}' extension handler 2013-09-03 23:47:18 +02:00
pancake
302328a76c Fix #203 - Call to a section + some more work on utf8 2013-09-03 22:45:43 +02:00
pancake
38a3d0fa3f Renamed some 't' commands and more work on supporting sdb types everywhere 2013-09-02 01:20:12 +02:00
pancake
53428f374c Merge ../radare2-xvilka
Conflicts:
	libr/include/r_cons.h
2013-08-30 00:39:38 +02:00
pancake
0c108154b5 Add 'gs' to assemble syscall eggs and 'dis' to inject them 2013-08-29 04:44:18 +02:00
pancake
eabb791936 Add r_flag_relocate() and 'fR' command 2013-08-29 03:19:16 +02:00
pancake
a46eb958e7 Initial implementation of the wip multiline text editor 2013-08-28 03:06:10 +02:00
Anton Kochkov
2d3297e26d UTF8 arrows initial support 2013-08-28 00:26:30 +04:00
pancake
fb610cdc62 Update sdb and fix android build 2013-08-26 02:43:15 +02:00
pancake
9850c0a3c3 Fix some warns and enhace GIT_TAP in makefiles 2013-08-26 01:07:21 +02:00
pancake
d636d730a1 Add r_cons_canvas api and fix #192(pK output) 2013-08-26 00:51:36 +02:00
pancake
b6ae1b64f2 Add 'dpe' command to discover the path of executable from given pid 2013-08-19 00:36:17 +02:00
pancake
e1bdd9e64f Fix #171 autodetect script by extension, Initial work on 'ts' 2013-08-17 19:53:04 +02:00
pancake
daddfcc7b6 Fix warnings and mdisassemble signature 2013-08-15 17:33:41 +02:00
pancake
05df20f411 Update sdb, more work on types 't' 2013-08-13 03:23:39 +02:00
pancake
59820d6b14 Implement pointer arithmetics in 'pf', 't?' and 'td'. 2013-08-11 14:23:51 +02:00
pancake
6e1a87b274 Update sdb and some minor fixes for 'tf' and 't' 2013-08-02 01:02:04 +02:00
pancake
8d8c9f4ee5 Initial import of the new cparse engine using sdb and tcc
* There's still lot of work to do, this is just the base
2013-08-01 00:39:19 +02:00
Juan RP
9101835c58 Accept @xtraeme's massive warning cleanup 2013-07-25 15:14:49 +02:00
pancake
5297304067 Fix gdb 100% cpu and connect timeout bug in socket api 2013-07-24 08:58:10 +02:00
Eduardo de la Arada
7187adb5e8 Add alloc/dealloc memory
* Allow memory alloc and dealloc on debug (APPLE ONLY)
2013-07-21 03:05:56 +02:00
pancake
05d52bc589 Add r_anal_op_hexstr and enhave test-asm example 2013-07-19 11:51:51 +02:00
Eduard Burtescu
5e096a4fd7 r_bin: new generalized relocs, with only arch-independent types.
Basic implementation for ELF relocs (x86, x64 and ARM).
2013-07-19 09:29:58 +03:00
Eduard Burtescu
b8e031d91c r_bin: removed hint from RBinImport, as it's only used in PE and even there it's doubtfully relevant. 2013-07-19 09:29:58 +03:00
Eduard Burtescu
8403699f2e r_bin: removed rva, offset and size from imports.
PLT-like lazy import wrappers are now part of symbols, where applicable.
The "imp." prefix is a temporary solution, it should be a flag.
2013-07-19 09:29:58 +03:00
pancake
a597b0e414 Bring back code|data xrefs to life. Use 'ar' command
'ax' and 'ar' are in conflict. must resolve
Uses sdb to store code and references
Ugly code that needs a huge cleanup
Update to latest sdb
2013-07-19 03:35:45 +02:00
pancake
19314bc27f Better comments in disasm, fix io->size = 0 regression 2013-07-18 23:00:38 +02:00
pancake
670bb111d8 Add 'floc' and 'invalid' color palettes, Vdr renames locals
Vdr now support renaming local function labels
Do not colorize lines when scr.color=0
2013-07-17 23:06:06 +02:00
pancake
fd075de90a Add 16bit dithering for 256/16M rgb console + fixes
Add scr.rgbcolor to disable 16bit ansi escapes
Disabled by default on windows
Implement ansi to rgb and rgb to ansi conversors
Implement 256 color to rgb bruteforcer
ec: renamed to ecr
Fixes for the VE menu
Drop --enable-devel flag from r2-bindings/README
2013-07-17 22:12:14 +02:00
pancake
be46b9da31 Initial support for truecolor (xterm only)
Add e scr.truecolor variable
Add !! command to save history
Add ec: command to randomize palette
Minor rgb trash fix,
2013-07-17 19:34:27 +02:00
pancake
a1123b6a69 Added default color paletes for rcons
Added 'ecf':load colorschemes
Added VE visual menu to configure colors
r_cons_rgb_parse() needs a rewrite
2013-07-17 03:51:53 +02:00
Anton Kochkov
00c3c70f3b Implement functions flow lines colorization 2013-07-17 00:38:02 +04:00
pancake
dc8e37f420 Update sdb, simplify some makefiles 2013-07-15 02:51:55 +02:00
pancake
209ac5696c Fix '$' alias command (thanks alxchk for reporting) 2013-07-13 01:13:23 +02:00
pancake
e2537b9484 New command: 'pB', the px-like pb (xvilka idea) 2013-07-12 00:29:27 +02:00
pancake
6cadbbcd40 Allow to force screen size, more work on r2wui
Add scr.columns, scr.rows eval vars to force screen size
Fix rightpanel menu glitch in r2wui
Add calculator in assembler panel
Fix open-rightpanel button in main panel
2013-07-05 01:45:45 +02:00
pancake
2992f7c951 Add cfg.colorops and 'reg'+'num' palete elements in r_cons 2013-07-03 17:43:20 +02:00
pancake
b963192a31 Redefine local flags commands and minor fixes in disasm.c
Use Color_RESET after fcn, label and flags in disasm.c
RCore.anal_fcn_local_list() now takes RCore* as 'self'
Redesign commands to add/list/remove local flags (f.)
f.a@3: set local flag 'a' at offset 3
f.   : list locals in current function
f.*  : as above using radare commands output
f.** : list all locals from all functions
2013-06-30 02:45:33 +02:00
Anton Kochkov
0711e60667 local labels inside functions - initial support 2013-06-29 10:21:15 +04:00
pancake
8377c98458 Use xdg configuration path ~/.config/radare2/ 2013-06-27 19:15:59 +02:00
Jaume Delclòs (cosarara)
16740f0367 Add size argument to ah- 2013-06-27 01:06:33 +02:00
pancake
72581dd93e Many enhacements for the lua bindings
Load module and cast core instance at startup
Requires latest valabind.
Add RCore::ncast api
Use pkg-config everywhere to fix lua plugin build
Fix install path for lua bindings
Export RCore instance to #!lua shell
Example:
  #!lua
  print(c.assembler.bits)
2013-06-25 02:45:12 +02:00
pancake
04cfefb9d8 Fixes on dyldcache list and x86 branch analysis
Fix some branch analysis issues for x86
Add new simpler r_reg api r_reg_getv()
Store library offset in dyldcache xtract info
Accessible via rabin2 -A or r2 <file>
Looks like dyldcache is too slow and buggy for latest caches
Fix indentation in branch comments
2013-06-20 02:49:39 +02:00
pancake
caded0de14 Honor load program headers when no sections found in ELF 2013-06-20 01:25:40 +02:00
pancake
8912bda995 Fix typo 2013-06-18 12:19:46 +02:00
pancake
2cbce80f2f Add __cplusplus extern "C" boilerplate everywhere 2013-06-18 12:09:23 +02:00
Anton Kochkov
9adaefef8e Fix build 2013-06-17 09:56:27 +04:00
pancake
ef781cbadd New flag rasm2 -c CPU. pointer hints, fix analysis of x86-16 jmps
Add ahp (pointer hints)
Add rasm2 -c flag to select cpu (wip for arm)
rasm2 -e toggles instead of setting
Fix analysis of absolute jumps in x86-16
Push and pops are now magenta \o/
2013-06-17 03:26:48 +02:00
Anton Kochkov
823b179308 Added ROL and ROR opcodes types 2013-06-16 23:17:26 +02:00
pancake
d6de30eba4 More R_LIB_VERSION and initial r_asm_set_cpu() dummy api 2013-06-15 02:56:25 +02:00
pancake
bc0104563b Initial support for runtime versioned libraries
- This check will ensure you are running the latest r2 version.
2013-06-14 02:51:33 +02:00
pancake
082fccc1b2 Change r_anal ABI to fix bindings +to_esil_string() 2013-06-09 03:25:32 +02:00
pancake
cdea34616d Fix some warnings 2013-06-09 02:55:03 +02:00
pancake
4d32b6b8e4 Initial import of r_bin_bios plugin 2013-06-09 02:11:17 +02:00
pancake
ced24c443d Load <file>.r2 if exists, last 3 args of 'S' are now optional 2013-06-09 01:09:47 +02:00
pancake
433c1ce26c Fix build 2013-06-09 00:10:16 +02:00
pancake
e68f3999ac Fix #101 r_io_redirect was wrong and causing 'r2 -d ls' to fail 2013-06-08 18:08:17 -04:00
pancake
3f1d3ba146 Better r_str_hash(), Fixes in CCa, Added ?h, Better rbin for BEOS bins
Identify Haiku binaries as 'beos' with noodle()
Fix CCa for non numeric offsets
Use sdb's r_str_hash() instead of old one (much less collisions)
Added ?h command to hash strings
CCa now appends instead of replacing comments
Do not mark as static if bin links to libs
2013-06-07 10:26:37 +02:00
capi_x
c9eb90adbc Add initial Haiku support 2013-06-06 00:21:52 +02:00
pancake
802824bd31 Fix build 2013-06-05 16:10:00 +02:00
pancake
96accbd14b Begin r_io review. Fix r_socket_http query for xpcshell's httpd.js
- Added libr/io/README in order to documentate the api
- Some minor refactoring and code cleanup in libr/io
- Fix hexdump title
2013-05-31 02:09:45 +02:00
pancake
29066085de New 'afb <bits>' per-function asm.bits, Renamed 'afb' to 'afbb' 2013-05-24 02:53:15 +02:00
pancake
3ba48ac9ad More color theme fixes and categories (math, bin, other) 2013-05-23 12:37:40 +02:00
pancake
ecc45d8d53 More fixes in 'ec' and 'ecs' commands for color palette 2013-05-23 03:03:40 +02:00
pancake
e5cdab6d20 Fully configurable console palette for disassembly, hexdump and prompt
- Fix overflow in r_cons
2013-05-23 02:26:48 +02:00
pancake
d31a0333d4 Remove unnecessary r_db dependency for r_cons 2013-05-22 16:15:56 +02:00
pancake
9d65bfe70c Initial r_cons palette support. See 'ec' command 2013-05-22 04:22:49 +02:00
pancake
8c5a6d68ff Handle fcn in r_parse, unify filter() and add locdiff utility 2013-05-22 01:49:18 +02:00
pancake
16ddff4eb9 More work on ESIL, and implement r2 -Desil .. 2013-05-20 03:00:49 +02:00
pancake
9f309aea25 Rename RAnalOp->code to RAnalOp->esil (Evaluable String Intermediate Language) 2013-05-17 01:50:49 +02:00
th0rpe
a42e574954 Initial import of the c55+ disassembler (by th0rpe) 2013-05-15 16:11:15 +02:00
pancake
32391e5f79 Update sdb and fix Linux build (-fPIC) 2013-05-14 02:26:43 +02:00
pancake
9c8692ab06 Some udis86 anal fixes, update sdb and fix mingw32 build 2013-05-14 01:53:52 +02:00
pancake
f6a8d7b3b8 Initial import of binr/r2agent 2013-05-11 01:58:05 +02:00
pancake
be02d4fc9d Initial work on the evaluable opcode analysis strings
- New command 'ae' to evaluate those expressions
- Use 'ao~code' to see the generated eval strings
- Rerefix udis86 16bit issue
2013-05-04 02:35:52 +02:00
Shane Peelar
24ccb7aabb Fixed compilation problems on Windows with MinGW-w64 4.8 2013-05-02 10:17:59 +02:00
pancake
c22aaf16d2 Fix bindings, loading strings of unknown filetype 2013-04-26 00:04:05 +02:00
pancake
26a7854dd6 Rewrite DEX parser 2013-04-25 03:42:17 +02:00
pancake
d1459f5665 Add r2 -A and -k, implement stackptr for udis86, update manpage 2013-04-23 03:38:39 +02:00
pancake
f52fdf762f Fix armthumb disasm, 64bit inc/dec on x86, syscall in r_asm
- rasm2 -k to select kernel like ragg2 does
- rasm2 -k linux -b32 'mov eax, $sys.write'
- Implement x86-64bit INC and DEC
- Add x86-8 and x86-64 bit calling conventions in r_syscall
2013-04-22 01:09:27 +02:00
pancake
8afdf330ae List and remove projects using '-p' and '-p -$prj' 2013-04-18 09:39:37 +02:00
pancake
59670523e2 Initial transition to sdb: anal.xrefs
- Cascade core_project_save > anal_project_save > anal_xrefs_save
- Database is stored into ~/.radare2/rdb/$prj.d/xrefs
- Build libsdb properly to get access to all the api
- Use sdb from r_anal_xrefs() - needs cleanup
- Update sdb to the latest version from git
- Fix some warnings
2013-04-18 03:58:44 +02:00
pancake
5c40488acc Fix .ia* issues when demangling c++, Fix visual hexa
Fix recent regression with scr.cols -> hex.cols
Minor fix that was causing some nasty r_num parsing
Show demangled symbol/imports names as comments
2013-04-16 19:48:59 +02:00
pancake
0d993c8cbd Initial working code injection with r_debug_execute() 2013-04-16 04:01:39 +02:00
pancake
426873d911 Better support for macros and fix dex checksum hint
- .(fix-dex) macro defined when loading a dex
2013-04-12 01:15:00 +02:00
pancake
032860782d Add checksum correction hints for DEX 2013-04-11 01:25:25 +02:00
pancake
469db755bf Enhace 8085 disasm and add basic code analysis support 2013-04-10 02:04:50 +02:00
pancake
5285d1bdea Break ABI. r_asm_disassemble's length is now 'int' 2013-04-09 22:54:04 +02:00
pancake
189e5553cc Initial 8051 disasm and ihex:// io plugin 2013-04-09 20:05:36 +02:00
pancake
93f9d519cf Fix build 2013-04-08 09:58:12 +02:00
pancake
ad0f93e8c9 Add r_num_units and hash list is no longer hardcoded
Added ?o (octal) and ?u (units) new commands
Minor random code cleanups
2013-04-08 09:38:23 +02:00
pancake
076a2837c9 Update sdb and fix build 2013-04-05 03:09:54 +02:00
pancake
dd301cd6a7 Add adler32 checksum, fixes in dex, add 'ws' command
- Handle ^C in searches
- Safer progerssbar for small terminals
- Add 'ws' command to write pascal/dalvik/java strings
- Fix visual refresh on terminal resize
- Partially fix dex negative section issue
2013-04-05 01:53:21 +02:00
pancake
128097572a Optimize DEX header parsing. Fix 'psp' command
Added r_buf_get_at() method to avoid copies
2013-04-04 23:19:19 +02:00
pancake
5c1cd1f0ef Initial support for UTF8 in r_cons and r_util 2013-04-04 01:42:12 +02:00
pancake
7e4d92c6fb Fix some warnings 2013-04-02 12:45:16 +02:00
pancake
3917cbe019 Update sdb again and hopefully fix jenkins build 2013-04-01 06:04:07 +02:00
pancake
d39af2028d Update sdb and fix configure 2013-04-01 05:52:21 +02:00
pancake
ba7c3b8896 Various fixes in visual tracks and handle window resize
Make Ve run callbacks when values are modified
Visual refresh on window resize
Use r_cons_visual_flush() in vmenus
Add workaround for Prompt iOS client (scr.widthfix)
2013-04-01 05:28:34 +02:00
pancake
99040c9ad7 Initial import of r_cons_rgb API (ansi 256 color) 2013-04-01 04:42:14 +02:00
pancake
7ff12dfeee Fix #72 : Honor per-section arch/bits in io+core 2013-03-31 04:34:46 +02:00
pancake
0f807f1bdb Honor RASM2_{ARCH|BITS} environment in rasm2
Alphabetically sort the options in rasm2 -h
Globally defined nibble definitions
2013-03-28 18:43:55 +01:00
pancake
ff36a72088 Update sdb, not found warn in r_config_get
Fix core_config_init ciclic dependency issue
Add support for 0b... expression as well as ...b
Update to sdb 0.6
2013-03-27 00:17:32 +01:00
pancake
6fbbb3dea0 Add arch/bits fields in RBinSection (breaks abi) 2013-03-26 23:37:19 +01:00
pancake
52990edf37 Update sdb from git 2013-03-20 03:52:59 +01:00
pancake
ce4382abb7 Use anal-udis86 by default instead of anal-im86 2013-03-19 10:27:57 +01:00
pancake
8846cb79cf Pass t/test.arm, new cmd !123 to run historic command
Fix all opcode constructions listed in t/test.arm
Add 'hlt' opcode for arm.
Minor changes in arm disassembly output
Typing !#number you re-run the command in !history
!history is now listed (! is an alias)
Added API to access history from dietline
2013-03-14 02:32:53 +01:00
pancake
352dde392b Update to the latest sdb from git 2013-03-13 11:58:36 +01:00
pancake
dacede5ae9 Initial port of io-mmap to w32 2013-03-12 13:24:48 +01:00
pancake
8f4d23a5ce Initial implementation of io.map plugin 2013-03-12 01:50:55 +01:00
pancake
ba3ad8112a ELF parser more permissive, add 'fsr' and other fixes
Make ELF loader more permissive
Add 'fsr' to rename flagspaces
Fix parsing issue in 'yy'
Fix crash in r_num
2013-03-07 23:47:41 +01:00
pancake
5f4623ed46 Fix some bugs appeeared during the training course
Fix segfault in "rasm2 'xor e'"
Fix overflow in 'ad@esp' when long strings are analyzed
Fix null pointer check in r_num
2013-03-07 13:08:05 +01:00
pancake
b45f07a39a dtc now uses r_cons_printf 2013-03-03 05:47:33 +01:00
pancake
97484a7b6c Add conditionals, 'dsi' to continua !, Fix bindings build
Added r_num_conditional function to stop the instruction set. I is accessible in vuu¡
2013-03-03 05:03:48 +01:00
pancake
2e8677af24 Merge git://github.com/XVilka/radare2 2013-03-03 01:12:48 +01:00
Anton Kochkov
f6a7dde070 Forgot to add TE plugin in list :) 2013-03-03 03:09:51 +04:00
pancake
701a43fc23 Use r_sandbox_kill instead of kill 2013-03-02 19:44:10 +01:00
pancake
4c244a818c Add 'Ch', handle c++ lang in rbin and obey cursor in V: 2013-03-01 09:57:30 +01:00
pancake
06787d0972 Fix 'ad' command (r_anal_data was broken) 2013-02-26 22:03:02 +01:00
pancake
0042752a08 Fix 'r_magic_free' definiton (thanks @tautschnig)
> The function magic_close has return type void, but x is of a pointer type.
> Yet the C standard requires that the second and third argument of the
> conditional operator ?: are both void or compatible pointer types (there
> are several other cases, see 6.5.15 of the C Standard). Failing this, the
> compiler may produce arbitrary code.
> The best way to fix this is likely changing the definition to
>  { if(x) {magic_close(x);} }.
2013-02-25 22:52:57 +01:00
pancake
fc6e799c26 Add pfD (disasm). Fix VI and Vi with+without cursor
Simplify r_print_string
Fix r_io write boundaries
2013-02-25 09:36:07 +01:00
pancake
25529090fe Add xxhash algorithm and add rahash2 -L 2013-02-25 03:23:13 +01:00
pancake
16bf36e55c Implement http.allow firewall rule
Fix socket transfer for http server
Shorter io descriptions for io_zip and io_gdb plugins
2013-02-25 01:47:55 +01:00
pancake
e9c38878de Fix endian stuff in r_print 2013-02-22 21:05:08 +01:00
pancake
770f556e9d Reverse walk all xrefs as a tmp fix the broken analysis (SLOW) 2013-02-13 17:54:20 +01:00
pancake
766563cc6e Big endian for arm.winedbg and addn randomart in rax2 -k
r_asm: Add support for big endian arm.winedbg
rax2: Add -k randomart to rax2, -k is now -B
rax2: Handle multiple flags on a single argument
rax2: update manpage
2013-02-13 01:20:42 +01:00
pancake
84270da643 Add randomart print mode (pk/pK commands and rahash2 -k)
Random code cleanup
Remove borders in webui/two
2013-02-12 02:42:34 +01:00
pancake
af2d3de5b4 Code cleanup 2013-02-07 09:41:05 +01:00
pancake
c443ab1f30 Implemented 'p%' in api form. Handl p%h and p%j
Added json and histogram table p% views
Add ?B command to get boundaries (use api)
Rename ahA into ahs
2013-02-07 03:09:53 +01:00
pancake
f70dbe784b Fix --host crosscompile (acr 0.9.2) 2013-02-06 11:47:31 +01:00
pancake
febfb770bc Added http client shell, fixes in http server and random dev
Initial RCoreAnalStats
=h accepts ports argument for listening
'r' command now supports flags (thanks @earada!)
Added http mutex to avoid running more than one server
Added http.uri /cmd/ redirect
Added support for http remote shell
Enhacements in the r_socket_http api
Handle http:// uri in socket connections
2013-02-06 10:35:23 +01:00
pancake
db77c97df1 Add missing files 2013-02-01 10:44:05 +01:00
pancake
dc2690e529 Support get/set introspection in 'pf' and handle scr.stride in px
Rename pf$ to pf.
Add support for introspecting and setting named pf fields
Introspection supports get and set
Add scr.stride property for 'px'
Initial work on slist
Add judy arrays implementation (not integrated)
2013-02-01 03:15:48 +01:00
pancake
1c93e8a727 Better webui, fix segfault in ag, add agj for json graphs
More work on the webui
New 'agj' command to get function graphs in json
Fix segfault in 'ag' command
'agv' now launches the internal http server
Initial refactoring for RAnalHint integration into RCore
Add basic mime-type support in the http server
Enhace the graph view style
2013-01-24 03:48:24 +01:00
pancake
9b1df62609 Fix mmap and other minor issues on w32 2013-01-23 18:38:08 +01:00
pancake
4ffa7952a2 Fix segfault in DEX parser, remove more r_print refs 2013-01-23 01:53:32 +01:00
pancake
2365918652 Fix slow ELF loading and add anal hints support to projects
Fix slow ELF loading when shstr section was huge
Added 'ahj' command to list anal hints in json
Add 'ah*' and use it from r_core_project
Fix 'i*' command
2013-01-22 18:08:33 +01:00
pancake
fc9301b14b Add hints and named print formats and more
Initial implementation of anal hints (ah?)
Use anal hints in core/disasm. Needs more work
New data structure StrHT (string hashtable)
Simplify core/libs.c with cpp macros
Added r_cons_color() wip function for ansi256 consoles
RPrint no longer depends on r_cons
Sort 'a?' help commands
Add support for named print formats with pf$ command
Add support for 64 bit string pointers in 'pf' ('S')
Add r_print_mute and r_print_format_length functions
Bump r2 nodejs bindings version number
Merge r_print into r_util
2013-01-22 05:06:12 +01:00
pancake
18ff639bd6 Add 'fj' and 'fsj' commands to show json instead of blocks 2013-01-17 03:29:46 +01:00
pancake
60a951e9b1 New io.buffer cache system and refactorized RHashTable
Implement io.buffer for fast IO (work in progress)
Rewrite util/cache.c and use it form io/buffer.c
Refactor util/ht.c and util/ht64.c to reuse code
Various minor fixes in RIO api
cache.c must be rewritten into r_buf for
2013-01-12 04:29:45 +01:00
pancake
3635f85336 Better http support and handle asm.offset in 'px'.
Implement dirlisting in http
get in /up/. Honor asm.offset in 'px'.
Fix r_file_root and crosspath vuln in http server
2013-01-04 10:16:41 +01:00
pancake
35808e31f8 Add io.zeromap to toggle old buggy mode doublemapping file to 0
Add http.maxsize to define the maximum file size to be uploaded
Add http.upget config var (not yet implemented)
2013-01-03 01:43:23 +01:00
pancake
a8a4c5e3e8 Initial implementation of http.upload (disabled by default)
Open http://localhost:9090/upload.html to upload
curl -F file=@/bin/ls http://localhost:9090/up/ls.bin
Tested on 10MB files without problems
Default upload directory is $TMPDIR
2013-01-03 00:47:58 +01:00
pancake
3fb4c7dd5e Use encodeURI in r2.js and implement http upload support 2013-01-02 18:37:48 +01:00
pancake
2d0dd302be Add RCoreLog API ('l' command), '-' cmd is now '$'
Fix in disasm comments
Fix bugs in r_strpool api
Log API allows rss-like messaging
2012-12-23 13:52:57 +01:00
pancake
0d04880367 Add support for small push in x86.nz assembler
Better Visual Assembler and help ('?' show help)
2012-12-22 04:28:19 +01:00
pancake
4d22fcb806 Implement VA (Visual Assemlber), readline with callback and chs
r_cons_readline now have a callback api
r_num_chs() to convert from disk CHS to real address.
2012-12-22 02:37:01 +01:00
pancake
48f710abe8 Share RBinJavaObj to RAsmJava plugin, better java and fixes in config
Some more work to get java support back (analysis, disasm, bin share)
Honor ordinal field in java r_bin methods
Fix segfault in 'af*' on FreeBSD (thanks idwer for reporting!)
Fix some valgrind warnings
Better io.maxblk handling
Fix div by zero when blocksize is 0
Fix disasm lines when no function and extra code comments
2012-12-20 11:31:38 +01:00
pancake
4647109763 Honor asm.segoff in r_print for hexdumps and use dec in pcj 2012-12-19 12:15:35 +01:00
pancake
caaccaddc9 Fix some warnings 2012-12-13 18:32:26 +01:00
pancake
488ea96089 Remove r_socket_*later() hacky methods 2012-12-12 13:26:26 +01:00
pancake
c98cc9d1ab Fix some bugs and add close_later() methods in RSocket
Uglify d3.js (the smaller the better)
Fix premature socket close on http reply with a hack
2012-12-10 16:25:57 +01:00
pancake
58371d6e2f Add rabin2 -N flag to set minimum string length
By default is 2, but PE which is 4
Sort rabin2 -h flags alphabetically
Add r_bin plugin-specific minimum string length
New r_list_newf() constructor which replaces the hacky R_LIST_NEW macro
2012-12-09 01:39:27 +01:00
pancake
a14f48918f Fix build and pdj on invalid opcodes 2012-12-07 16:00:36 +01:00
pancake
bc63849795 Initial implementation of memory watchers (cw) 2012-12-07 15:44:36 +01:00
pancake
55bb8dc95e Fix udis86 trailing spaces, add 'dw' command 2012-12-07 12:03:53 +01:00
pancake
70b037e154 Show refs in disasm, better analysis for ARM and x86-16
Fix status line bug in visual debugger
2012-12-07 03:12:25 +01:00
pancake
475372ec2c Fix archbits in overlap mem, fixes for ad, pd and segmented addressing
Fix invalid wide string identification in 'ad' command
Temporal blocksize syntax ':' has changed to '!'
  - x @ 1024!33
Fix overlapped IO sections handling
Add support for segmented address in temporal seek
Fix disassemlby to print more lines than blocksize
2012-12-06 00:55:22 +01:00
pancake
84002a421f Better new WebUI, fix pdf,pD, implement http.timeout and more
Enhacements in the new webui
Fix r_socket_block_time()
Implement assembler for the 1bit arch RAR (wip)
Fix pdf, pdb and pD (print_disasm)
Implement http.timeout and http.sandbox
2012-12-03 04:01:55 +01:00
pancake
7a0da18725 Add r_bin.rar plugin, per-section arch/bits, fix in S=
Add Sa to set/get per-section arch and bits configuration
Cache io->section and core->io->section to speed up the Sa
Update r_sys_arch*
Add dummy plugin in asm/rar
Fix lines of S=
2012-11-30 01:06:30 +01:00
pancake
83ea1201e9 Working refactoring of RAnalData API 2012-11-20 12:17:46 +01:00
pancake
e495421782 Initial implementation of 'ad' (analyze data)
Force tid=pid when tid=-1 in r_debug_select()
Add support for 16bit mov in x86.nz assembler
2012-11-20 03:59:00 +01:00
pancake
8ea25c4a46 Use RNum in RAsm, fixes for segoff and better disasm
Reference of RNum in RAsm (use flags in 'wa/pa'!)
Use RNum in x86.nz plugin
Rename scr.segoff to asm.segoff
Fixes for segmented addressing resolution
Honor lineswidth in disasm
Remove rabin2 -p flag in help and manpage
Fix disasm.c loop for small blocksizes and invalid ops
2012-11-16 01:34:26 +01:00
pancake
6dadd63c4b Ad od scr.col and cjange more settings
Fix parsing of segmented addresses
Move hud to shlr/hud
Add r_cons_print_clear () for delayed 'clearscreens'
Add blankline option to RCons
Add scr.segoff to show prompt as segmented or not
Add scr.colpos to choose the position of cmd.cprompt
Deprecate old flags code
2012-11-14 03:25:32 +01:00
pancake
674c732f53 Implement 'fb' command and enforce 'fr' rules 2012-11-13 03:25:07 +01:00
pancake
25df4aef1c Fixed io ports flagspace usage and multiple asm filters
Handle negated flagspace in RParse
Support pseudo+decode+disasm
2012-11-13 02:00:00 +01:00
pancake
8e1dbb443a Better support for IO ports on asm.pseudo and analysis
* Analyze IO opcodes on x86
* Fix 0x0x in olly disasm
* Fix segfault in objc mangling
* Support for writing nibbles with 'wx'
* If optype is IO, use 'ports' flagspace
* Add support for flagspaces in RParse
* Use RList in RParse instead of list.h
* asm.pseudo handles for in/out x86 opcodes
* Random code cleanup
* Fix udis86 64bit disasm bug
2012-11-13 00:53:52 +01:00
pancake
b252b34358 Some initial work to support emscripten 2012-11-12 17:13:01 +01:00
pancake
1a6d3155e5 Enhace r2wui and implement 'pdj' command (disasm to json) 2012-11-08 09:49:27 +01:00
pancake
6956fe003a Add PIE (ASLR) field in RBinInfo for ELF, MACH0 and PE 2012-11-07 18:18:52 +01:00
pancake
08e93418f5 Some better support for classes in rabin2 2012-11-07 10:41:12 +01:00
pancake
ea8dc25221 Initial objc support, visual 'i' with cursor and 'wow'
Some more fortunes
Initial support for Objective-C
New command 'wow' to fill block with cyclic hex value
Visual 'i' when cursor enabled uses 'wow'
2012-11-07 04:25:42 +01:00
pancake
2ac70dd5e8 Fix stack exhaustion bug when repeating null commands. add strpool api 2012-11-06 09:47:52 +01:00
pancake
7c1e0c85d9 Support for remote raw commands (client/server)
See the '.:' command
Full integration with awk bindings
Add install make target for the awk bindings
Handle as debug mode if io->file->debug
Fix typo quite/quiet in rabin2
Resolve $pc,$bp,$sp,$a0.. in r_core_num
Minor random fixups
2012-11-05 02:00:34 +01:00
pancake
07929b169d Add Quiet and JSON in RCoreBin, more awk, fix rafind2
Use rabin2 -j flag to get JSON output
You can also get those jsons using the i?j command
Better awk bindings and added some examples
rabin2 -v (without any other arg) shows version
Fix some segfaults in rafind2 and use RList
Add quite output mode for rabin2 (activated with -q)
2012-11-02 03:35:50 +01:00
pancake
8431655bf8 Some fixes in the file interpret command and the www
Fix loading of omap3830 script (support longer calc expressions)
Fix some glitches and TODOs in the www ui
2012-10-31 10:42:49 +01:00
pancake
256c0e0bd9 dded r_cmd_alias_del to remove aliases and honor DEBUG=1 2012-10-30 03:22:30 +01:00
pancake
fe6cb8c378 Added '-' to create command aliases and lowercase i8080
Lowercase i8080 disassembler (use e asm.ucase=true)
Add Alexander in AUTHORS
Extend r_cmd api to support aliases
Add new '-' command to register and call command aliases
Use RList in RCmd instead of kernel's list.h
Autocomplete aliases with <tab>
Add 'make DEBUG=1' to compile with -g
Do not strip symbols when compiling in debug mode
2012-10-30 02:49:05 +01:00
Alexander
2c5cd9b32d Initial implementation of i8080 analyser. 2012-10-29 20:51:45 +00:00
Alexander
278a24126e Initial implementation of i8080 disassembler. 2012-10-29 20:51:40 +00:00
pancake
5ae5849992 Implement support to associate comments to flags 2012-10-26 10:00:22 +02:00
pancake
1f15df18c4 Fix build and http shutdown, WebUI (afr, pdi), add socket timeout
Fix http server shutdown issue
Add timeout on socket connect
Enhace web ui with 'afr' and 'pdi' commands
Fix segfault in 'afr'
Fix build (thanks @egeektronic)
2012-10-25 21:40:11 +02:00
pancake
1e52015eee Add px[QW], fix segmented io and handle ! pipes
Handle `!` with r_core_cmd_str_pipe
Fix 'afl' output
Add help for 'px' command
Add pxQ and pxW to show one word per line
Fix segmented io with maps and sections
Some test cases got fixed
Add test-r_anal.py
2012-10-25 12:55:28 +02:00
pancake
73a7b77306 Add 'omr' to relocate maps and rm libr/README 2012-10-25 09:48:45 +02:00
pancake
a876acb60e Fixes for sha384 and crc16/32 in RHash. thx bus1ng 2012-10-22 11:06:03 +02:00
pancake
858c65f239 Add sandbox-kill and disable reopen in sandbox mode 2012-10-22 10:43:10 +02:00
pancake
16e0c555e5 Add 'oo+' and 'o+' commands to reopen in read-write 2012-10-22 10:12:13 +02:00
pancake
e48b9b2f30 Add cfg.sandbox functionality
f.example: $ r2 -c=H -e cfg.sandbox=true -
2012-10-20 00:31:18 +02:00
pancake
3540924f40 Better paralelization of build system 2012-10-04 01:20:00 +02:00
pancake
0aa55a4e01 Add support for http response headers
Fix some issues in the www ui
2012-10-03 12:10:18 +02:00
pancake
7e9af106bb Implement RAnal.fcn_del_locs() to fix Vdu and af-
New commands: fx and fxd to show contents of flags
Fix pZ-pz help message and stuff
fF in visual is now nN
nN in visual has been deprecated
sfF also renamed to snN
sn renamed to so
e scr.fkey is now scr.nkey
Beautify the disasm loc functions
Toggle breakpoints with 'b' in visual
2012-09-28 02:20:52 +02:00
pancake
4ffdaeb04f Fix warnings and refactor 'p' subcommands (pw -> pxw ..) 2012-09-27 19:35:19 +02:00
pancake
c40dda0b0a Fix 16 bit x86 code analysis
Mark cursor in visual for pw and pq
2012-09-24 23:34:12 +02:00
pancake
83cfbb2236 Add initial ARC code analysis module (branches)
ELF parser setups the proper ARC asm and anal
Fix segfault in the GNU ARC disassembler
2012-09-23 17:33:19 +02:00
pancake
807c8a4088 Initial import of the ARC disassembler from binutils 2012-09-22 21:03:01 +02:00
pancake
850045c329 Fix many bugs noticed during the training course
Fixed ragg2 -e segfault
Fix use of ragg2 -p
Fix memleaks and null derefs in rio and rsocket
Fix some build warnings
Fix the segfaults found in the ELF parser
Dwarf parsing is only done if bin.dwarf is true
2012-09-22 20:32:19 +02:00
pancake
2e83fa67b8 Fix python bindings: do not use homonim methods and fields 2012-09-19 14:08:44 +02:00
pancake
9448a64c51 Fix python bindings build 2012-09-18 19:04:30 +02:00
pancake
9f92f9aece Fix many null pointer deref when passing trashed data
Added 'pa' command to print assembled instructions
2012-09-18 03:39:32 +02:00
pancake
5eda1f485e Fix bindings 2012-09-17 17:49:23 +02:00
pancake
d2c7832d96 Sync with sdb git 2012-09-17 11:18:20 +02:00
pancake
77dc9bc471 Fix overflow in r_bin_dwarf 2012-09-12 18:56:11 +02:00
pancake
1296854be0 Merge git://github.com/XVilka/radare2 2012-09-07 10:09:13 +02:00
pancake
17250ee357 Add api to set config keys as readonly
Handle apk:// from the r_io.zip plugin
Suffix android builds with git version
Fix r_sys_rmkdir
2012-09-07 10:07:41 +02:00
pancake
3861772e6d Initial implementation of r_io.zip plugin
Allows to: r2 zip://foo.apk//classes.dex
Honor LDFLAGS in r_bin
Fix filename issue in r_io_redirect
Add testing on-activate event in r2w2
2012-09-07 03:26:38 +02:00
Anton Kochkov
a3f90c27d0 Added vala attributes 2012-09-07 03:26:32 +04:00
Anton Kochkov
2ac6bc345d Improved vala attributes model 2012-09-07 02:32:26 +04:00
pancake
7fc1614cb5 Fix android build, update sdb code from git 2012-09-06 11:01:17 +02:00
pancake
be247348b5 Rename r_file_exist into r_file_exists 2012-09-06 08:59:13 +02:00
pancake
46e29afb98 Initial working web ui: r2 -c =H /bin/ls
Autodetect osx, win, linux and android browsers
Default port is 9090
Add support for local networking in RSocket
Add r_str_unescape() helper function
Fix htmlgraph.sh script.
Added wwwroot in shlr/www
Swap eval/cmd load order in r2
Add r_core_cmd_str_pipe()
Use RCons in 'fs'
2012-09-06 03:12:54 +02:00
pancake
de519e7b6b Initial implementation of the RSocketHTTPServer 2012-09-05 19:31:32 +02:00
pancake
3b65f42167 Update sdb to 0.5, sdb is now public api
Update pkgconfig files
sdb now supports json and cas operations
sync pair.c to use the new cas api
2012-09-04 01:46:12 +02:00
pancake
76ccb4d8c6 Honor -e priority in r2, add dalvik pseudo disasm
r2 -e now evaluates before and after loading file
Dalvik pseudo disassembler is work in progress
2012-09-03 03:07:16 +02:00
pancake
a8757a695f Fix android build and add r_core->anal_define api
Fix static build (libr.a)
Fix android build farm scripts
Build system is still hacky
2012-09-03 01:27:52 +02:00
pancake
a395c8d6c8 Initial implementation of the MIPS assembler 2012-08-31 13:50:05 +02:00
pancake
5c236fa0e3 Add mips pseudocode, anal.hasnext, fix anal bugs
Better mips analysis
Implemented mips pseudocode plugin
Change asm.parser in asm.arch callback
2012-08-31 11:45:06 +02:00
Anton Kochkov
ef4217a87c Add supported types, improve types printing 2012-08-30 01:11:54 +04:00
pancake
cd30c0c0e4 Various little bugs fixed and pz/pZ renaming
Fix r_core_system pipes after scr.interaction
Fix 'ao N' (parse argument)
Fix segfault in p= N >blocksize
Split BBs in pdr with '--'
Add help for ps?
Do not show invalid rahash2 -a entropy at the end of p=e
pz is now psz
pZ is now pz
2012-08-29 17:24:30 +02:00
pancake
af45d0ee16 Initial working tree walker for cparser (see td) 2012-08-29 12:59:31 +02:00
pancake
476e3b0082 Fix consgrep segfault and do changes in print cmd
Add python print buffer (pcp)
Use psw instead of pS for wide strings
Add dir.types config variable
Fix segfault in RConsGrep
2012-08-28 17:50:49 +02:00