Commit Graph

124 Commits

Author SHA1 Message Date
pancake
6b9671e7a9 Fix Fx.. float conversion in rax2 2015-10-28 10:27:55 +01:00
pancake
198174957c Fix rax2 -F C parser 2015-10-28 10:11:32 +01:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
jvoisin
98bb29c4ed Fix some clang-analyzer defects 2015-08-28 17:28:09 +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
pancake
a793859d5b Fix some COVs 2015-06-01 11:20:53 +02:00
Álvaro Felipe Melchor
75e719362d Fix #2603 2015-05-23 19:10:22 +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
pancake
12ea9734b5 Fix about 15 more random COVs 2015-03-21 02:04:49 +01:00
pancake
4ad5a7a27b Fix more base64 warnings 2015-02-09 23:37:49 +01:00
pancake
48422b07db Fix #1910 2014-12-26 19:42:35 +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
a2c3647ad0 Somewhat better BoostJam support 2014-10-26 02:47:08 +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
d176cb1d01 Fix rax2 2014-09-26 17:11:10 +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
jvoisin
359846b0d1 Fix some buffer overflow 2014-08-18 14:22:36 +02:00
pancake
c40a4a8e82 Handle negative hex values in rax2 2014-07-13 22:12:29 +02:00
condret
70744a1ad9 support ternary values in rax2 2014-05-28 21:50:13 +02:00
jvoisin
031691f44e Implement rax2 -D and rax2 -E
Plus some re-ordering.
2014-05-22 09:26:17 +02: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
pancake
a7778a5815 Fix r_num_free memleak 2014-05-06 04:00:26 +02:00
Anton Kochkov
b1f70bc0de Fix CID 1134969 2014-05-02 14:59:52 +04:00
Anton Kochkov
cefa742a25 Fix CID 1134727 2014-04-26 04:16:28 +04:00
pancake
eaccd3bb7a Fix #743 - rax2 -v shows interpreter 2014-03-31 05:46:42 +02:00
pancake
8279f508db Implement /P and Optimize + Fix #412 ROP search 2014-01-27 01:12:16 +01:00
pancake
7f28befc04 Fix static build 2013-12-31 05:40:16 +01:00
pancake
f02b0b2940 Minor refactor in rax2 2013-10-16 23:25:35 +02:00
pancake
92bdbf0c0a Add scr.fgets and fix rax2 -s for emscripten 2013-09-16 04:08:08 +02:00
pancake
c1629360f9 Better rax2.html - See http://rada.re/js/rax2 2013-09-16 02:50:37 +02:00
pancake
18cc767292 More emscripten/android build fixes 2013-09-07 02:20:38 +02:00
pancake
7855f4952f Initial work supporting emscripten compilation 2013-09-07 00:39:08 +02:00
pancake
3ff36c3965 Fix #205 - rax2: fix misuse of read on stdin 2013-09-03 19:29:33 +02:00
pancake
3c62d1905a Fix rarun2 stdout and stderr pipes
dcu requires argument to work
Enhace rarun2 manpage
Fix rax2 -B for negative values
2013-05-05 19:39:01 +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
96d1a1141b Fix invalid flag name filtering issue and add rax2 -t (timestamp) 2013-04-16 01:48:03 +02:00
pancake
9894b0075e Add 'rax2 -u' to get aproximated units measure for given value 2013-04-11 01:30:46 +02:00
pancake
3aa549ecb0 Share version function between all commands. Fix #76 2013-04-04 02:32:13 +02:00
pancake
cea398e345 Add rax2 -n for binary numeric values 2013-03-05 01:28:32 +01:00
pancake
8186395ebd Fix rax2 -S and ragg2-cc -x, better radiff2 error msg
rax2 -S is now obeying 0 input length for stdin streams
ragg2-cc -x is now working properly (needed rax2 -S)
Fix stupid parsing bug introduced in previous commit in armass
2013-02-19 21:21:39 +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
69a12884ed Simplify the build system
doc.sw has been moved to radare2-extras
2012-10-03 14:31:35 +02:00
pancake
3ffbba7aec Fixes in the debugger, for osx, software stepping and rax2
- Protect possible index out of array in osx register code
 - Fix possible segfault in debugger backtrace
 - Fix osx debug register state write
 - Fix software stepping. Needs more work and test on mips
 - New flag: rax2 -d . force integer output value (no hex or so)
 - Fix 'i' command output
2012-07-06 19:30:17 +02:00
pancake
41a230ddf7 Add p=?, rax2 suports negative values and more
- Support negative integer values in rax2
  - Fix column selection draw in r_print_hexdump
  - Implement p=p and p=e commants
  - Disallow visual insert if file is readonly
  - Similar to pZ, but
  - Honor -w flag to create file if possible
  - Use new r_io_create() api
  - Add scr.sparse to show hexdump in sparse mode
2012-07-06 02:17:44 +02:00
pancake
810d9a3dbc * Put rax2 buf in .bss instead of the stack
* Add support for wide string dump in r_bin
* Fix detection of data section in PE
* Show error if temporary seek flag does not exists
* Fix wrong disassmbly with 'pd' (invalid)
2012-05-30 03:23:53 +02:00
pancake
906275f98e * Fix echo - | rax2 -S bug
* Do not show fortunes if -q is passed
* Add support for anonymous macros
* Add support for quoted strings and backspaced
  spaces in macro arguments
* Fix r_num_get call from calc.c (a +3 == a+3)
2012-05-25 01:14:49 +02:00
pancake
621d78cff4 * add support for floating point arithmetics in r_num_calc
* show r_num_math parsing errors to stderr
* add rax2 -f to show result in floating point
2012-02-14 05:26:41 +01:00
pancake
dc1efdcdd8 * Add manpage for ragg2-cc
* Fix rax2 -S (by @earada, reported by @sre)
* Fix typos in manpages reported by lintian (thx @sre)
* Add r_core_file_reopen()
  - 'do' is an alias for 'oo'
  - close previous file
  - breaks debugger reopen .. needs more work
2011-12-05 02:42:06 +01:00
earada
bdd3bf9f06 * Update rax2 manpage 2011-12-04 02:44:58 +01:00
pancake
a5cb0c7810 * Add ragg2-cc
- shellcode compiler using gcc or llvm-gcc as backend
  - inspired in shellforge, written in shellscript
  - works on x86-32 with linux and osx
* Fix rax2 -S for binary data
2011-11-26 05:14:03 +01:00
pancake
0357ddf18e * Move rapatch into r_core_rapatch (r2 -P)
- Remove r_core deps from rabin2
  - Accessible via 'wp'
* Fix build check of test program in r_db
* Pass CFLAGS/LDFLAGS to sdb build
* Add rax2 -k to not change base
2011-09-09 09:49:55 +02:00
pancake
2c92c7d172 * Merge rapatch2 into rabin2 -p
* Honor bits in r_syscall_setup
  - Initial work on RPair in r_syscall
  - Not yet integrated, but design is mostly done
* Add r_str_split()
* Add python2 and python3 makefile rules in r2-bindings
2011-09-04 03:56:35 +02:00
pancake
763289b4aa * Fix Bx1d issue in rax2
- Applied patch by flux. Thanks!
2011-08-29 00:43:20 +02:00
pancake
168d38fc44 * Add rax2 -x to calculate string hash
* Use trim to avoid noisy chars in symbol names for egg/lang
* Properly handle osx/w32 os strings in r_egg
* Make string construction works in r_egg
* Initial work on while() constructs
2011-08-09 11:06:50 +02:00
pancake
28e5244064 * rax2 -s (without arg) uses stdin now
* Show help when no file given to rabin2 -O help
* Fix ELF strtab section read issue (workaround?)
2011-07-18 00:07:45 +02:00
pancake
ca5e38d239 * Fix w32 and w64 build (r_fs/grub issue)
* Dont quit rax2 when reading from stdin until 'q' or ^D
* Minor fix in fortunes
2011-07-13 13:59:55 +02:00
pancake
c2d5f9215b * Move R_SYS_DIR and R_SYS_HOME into r_types.h
* Parse space separated words in rax2
* Added r_str_binstr2bin() helper function in r_util/str
  - Converts binary string to raw bytes
  - rax2 -b is the commandline frontend for this
2011-05-13 00:25:36 +02:00
Nibble
ec340164c3 * rax2
- Fix another bug in format_output()
  - Remove unnecessary malloc+free
2011-02-15 23:51:05 +01:00
Nibble
4158466b28 * Fix bug in rax2 related to bin conversion (thx Jan Lieven!) 2011-02-15 18:38:18 +01:00
Nibble
f0d2279a0e * Little refactoring of rax2 2010-11-29 13:20:44 +01:00
pancake
58fc61d486 * Fix overflow (Thanks Adriana for the patch!) 2010-11-29 01:29:21 +01:00
pancake
6507ea67b8 * Apply patch from @astralia
- Adds -S and -s flags to rax2
2010-11-25 01:27:27 +01:00
pancake
4db5cded34 * Fix w32dist find command
* Display TODO message in r2 -L
* Implement rax2 -s - and rax2 -
* Honor dbg->tid in many places
* Implement basic stuff for dbg->reason
  - Only w32 and *nix atm
  - Not yet displayed or used
  - Added many new reason types in enum
* Fix w32 register map
* Handle attach:// in io_w32dbg plugin
* Implement w32 process and thread list
  - You can now select the thread
  > dp      # list pids
  > dp=1424 # attach to pid
  > dpt     # list threads
  > dpt=580 # select thread
* Added dummy code to list windows
2010-11-17 00:56:48 +01:00
pancake
a6629c610c * Fix static compilation on Linux systems
- Not really portable, needs some work to fix w32 build
2010-11-10 03:55:27 +01:00
pancake
3a44d471f4 * Fixes for pkgconfig and vapi deps
* Apply patch from @astralia for rax2
  - support int->bin and bin->int
2010-11-04 13:19:36 +01:00
pancake
f99e946b9b * Initial import of rasc2 (copypasta from r1) 2010-10-04 19:43:40 +02:00
pancake
3ef71b106a * Indentation fixes in rax2 as discused in chat
* Fix compilation of vapi/r_bin
* Some mods in test programs for swig/python
2010-09-26 03:18:04 +02:00
Nibble
483ab6160b Apply @earada's patch (thx!)
* Improving rax2
  - Support for many bases.
  - Add -s flag for transform byte to bin (ej: "48454c4c4f" to "HELLO")
  - Add -e flag for endian swap.
* New r_num_to_bits converts nums into binary representation.
2010-09-24 21:25:23 +02:00
pancake
9b2d428d1b * Initial hello world for rarc2 in ARM with GAS working
- Few changes needed to work with rasm
* Cleanup some warnings
* Handle foo() as a function definition, so emit frame in rarc
2010-09-15 10:50:43 +02:00
pancake
2f09509630 * Fail when binr build fails somewhere
* userconf R2_VERSION
* Implement some more # hashing algorithms
2010-07-15 13:34:53 +02:00
pancake
eb05e6a6b2 * Move all the r2 programs into binr/
- Little cleanup of the build system
2010-05-29 03:30:36 +02:00