Commit graph

10197 commits

Author SHA1 Message Date
Álvaro Felipe Melchor
d0032b08ea fix crash in dex 2016-08-07 12:54:29 +02:00
pancake
a4ff60743f Follow fcn calls one step further WIP 2016-08-07 09:17:05 +01:00
pancake
a211c48bd5 Update some indentation in asm.dalvik 2016-08-06 11:58:54 +02:00
pancake
744fad6418 Port to Termux (Android-Debian environment) 2016-08-06 05:12:58 +01:00
pancake
bc0f5fe119 Parse fields and statics in DEX 2016-08-06 03:10:56 +02:00
pancake
2113751573 Fix some false positives in aad using the API instead of r2cmd 2016-08-05 14:41:59 +02:00
Ahmed Mohamed Abd El-MAwgood
4668bc5ea3 Adding nonull (#5441) 2016-08-05 13:35:44 +02:00
pancake
2f339144f4 Fix some latest covs 2016-08-05 13:25:20 +02:00
pancake
cc01682132 Some playground with DEX 2016-08-05 13:11:30 +02:00
pancake
9902a5fc67 Detect local variables in Dalvik code analysis 2016-08-05 02:40:52 +02:00
pancake
53e9e91b4c Increase rafind2 -ZS wide and do not run aad in aaa 2016-08-05 00:30:56 +02:00
pancake
e553fc2bec Fix method names glitch in DEX 2016-08-05 00:27:01 +02:00
@bezjaje
9a9df6c3b7 ESIL: small x86-16 improvements (#5443)
+ LODSB and LODSW are compatible with 16-bits by using the proper size for 'si' register
+ added ss, ds, es segments to 16-bits register profile
2016-08-04 23:54:39 +02:00
pancake
5b189ee595 Fix #5447 - Implement aO command 2016-08-04 23:52:30 +02:00
Maijin
9a404b6d9c Add rowlog for aad in aaa 2016-08-04 14:26:30 -07:00
pancake
3ca1d5653c Add 'aad' to analyze data refs which are actually code 2016-08-04 22:53:18 +02:00
pancake
f840836af8 Add aad command to analyze data refs as code (LEA) 2016-08-04 22:52:33 +02:00
pancake
f47a328e32 Fix #5449 - Fix floating point computation 2016-08-04 19:45:36 +02:00
Lev Aronsky
913df9b74c Added a missing comma in ESIL parsing of a memory destination with arithmetics involved, fixes #5431 (#5440) 2016-08-04 11:24:04 +02:00
pancake
1fa04d98c3 Fix for crypto.cps2 2016-08-03 14:07:03 +02:00
pancake
9fda59e26d Only use ~/.config/radare2/prefix/bin 2016-08-03 14:03:09 +02:00
pancake
d179c06af3 Support wide strings in rafind2 -ZS 2016-08-03 01:17:27 +02:00
Álvaro Felipe Melchor
a99d53357d Fix #5352 - Endianness problems for wopO command 2016-08-02 23:22:34 +02:00
pancake
8d5e5d4add Fix io.r2k build on mingw 2016-08-02 13:47:45 +02:00
pancake
3c8e49e67e Fix w32 build of io.self 2016-08-02 13:22:25 +02:00
skuater
4c7290cb4e Implement io.r2k for Windows
* initial r0 io memory r/w
* add driver initialization add
* renamed and implementing installation
* add io command !=mod to list system modules
* flags using . =\!mod
2016-08-02 00:58:39 +02:00
pancake
d075e86e24 Enhance float support in pf 2016-08-02 00:37:07 +02:00
reddevillg
e9821b8181 #5406 2016-08-01 23:40:50 +02:00
pancake
4a190d770c Some anal cleanup and aim for the fwdjmp bb issue 2016-08-01 18:41:07 +02:00
pancake
94602683ed Fix debug/Makefile syntax 2016-08-01 18:07:26 +02:00
pancake
fc4354eff0 Add cps2 plugin in crypt.c (should be dynamic!) 2016-08-01 17:34:17 +02:00
pancake
c4083a207e Add crypto.cps2 plugin 2016-08-01 17:31:36 +02:00
pancake
d917902b4e Fix #5427 - ao[n] shows same bytes on all instructions 2016-08-01 16:18:24 +02:00
pancake
f883a00741 Fix some more arm-rel-pc issues (by CalArcher) 2016-08-01 14:49:42 +02:00
pancake
7b0622f85d Fix latest covs 2016-08-01 14:46:17 +02:00
pancake
5174f8f624 Fix #5436 - uninitialized var in izz 2016-08-01 14:19:51 +02:00
pancake
8e45f6248c Fix #5425 - Code cleanup and refactor 2016-08-01 13:58:14 +02:00
Alexandru Razvan Caciulescu
61518c2646 xrefs dir path fix 2016-08-01 12:55:47 +02:00
pancake
1e38b4521e Fix null deref in RBin.Symbol.bind 2016-08-01 12:36:20 +02:00
Moritz Eckert
143d2c3791 Fix #4965. Add support for luhn searching and hashing. 2016-08-01 12:34:54 +02:00
Maijin
f211c68095 Remove afg 2016-07-31 11:55:09 +02:00
pancake
2bf4dc7ffc Fix #5426 - r_bin_list uses RCons now 2016-07-30 19:17:17 +02:00
Eugene
b0970d563e fixes #5418 (#5421) 2016-07-30 18:56:24 +02:00
pancake
8c8887846d Fix absolute path resolution in rop.db 2016-07-30 14:47:00 +02:00
Dario B
d23f3fc97d #5179 and TODO about avoid forks (#5401)
* removed some forks

* a bit of refactoring

* done test and fix bug

* fix code style
2016-07-30 14:29:49 +02:00
Alexandru Caciulescu
adeb5b524b Implemented save/restore rop.db for projects (#5414) 2016-07-30 14:28:45 +02:00
pancake
77f19155b4 Fix io.self dlsym for r_lib_dl_open 2016-07-30 14:15:29 +02:00
Ahmed Mohamed Abd El-MAwgood
7c8414f585 FIX #5392 display values of args and locals in debugger (#5417) 2016-07-29 19:35:34 +02:00
Eugene
ef8daed816 Fixes #5389 - Add aflqj 2016-07-29 19:34:43 +02:00
Moritz Eckert
e1efde0b1c Fix #5338 - Add ability to start RAP server in background. (#5416) 2016-07-29 19:32:27 +02:00
Anton Kochkov
0324837100 Fix Jenkins Mingw-w64 build 2016-07-29 16:13:41 +03:00
Anton Kochkov
65e4ab058c Update sdb to 0.10.4 2016-07-29 15:51:36 +03:00
Anton Kochkov
5cc983a657 Fix Mingw32 building [2] 2016-07-29 14:45:54 +03:00
Anton Kochkov
0ca2034422 Fix Mingw32 building 2016-07-29 14:37:17 +03:00
pancake
e1d955d7ed Use r_lib_dl instead of the raw libc functions 2016-07-28 19:59:40 +02:00
pancake
838e4d6fa2 Add dlsym, call, alarm and other goodies to self:// 2016-07-28 17:12:05 +02:00
Alexandru Caciulescu
34147cd121 /Rk command for rop queries (#5403) 2016-07-28 15:05:38 +02:00
pancake
57996ce39f Add waitfor:// in io.debug description 2016-07-28 12:59:51 +02:00
pancake
f2ac0a1d52 Enhance ignore call warning message and minor refactor in mach0 entitlements parser 2016-07-28 11:33:53 +02:00
Maijin
7938640445 Move all /t/ from r2 to r2r 2016-07-27 19:19:30 +02:00
Maijin
90530319d7 remove more util/t 2016-07-27 18:57:43 +02:00
Maijin
34dfdd6fdf remove more util/t 2016-07-27 18:05:25 +02:00
Maijin
3894935a06 remove more util/t 2016-07-27 17:18:45 +02:00
Maijin
80171b0dc5 Cleaning r_util.h 2016-07-27 16:55:20 +02:00
Alexandru Caciulescu
fd76792386 All /R commands cache gadgets and use rop.db (#5398) 2016-07-27 16:19:33 +02:00
Maijin
da041b1b74 Delete useless r.h
Delete useless r.h
2016-07-27 16:19:30 +02:00
Ahmed Mohamed Abd El-MAwgood
2dbb3d8fc6 Calling convention profiles in SDB (#5358) 2016-07-27 13:50:14 +02:00
Sven Steinbauer
ca96796268 Prevent possible max shift value (#5391)
Protect against shifts that might be bigger than 31
2016-07-27 13:21:36 +02:00
pancake
4831b504bc Use proper relative includes in r_util.h 2016-07-27 12:55:05 +02:00
pancake
f5a73b73d7 Remove dupped hex2int function 2016-07-27 12:51:55 +02:00
pancake
f2c0ad9edb Fix null de-refs in GNU C++ demangler 2016-07-27 12:22:49 +02:00
Álvaro Felipe Melchor
f1236563f3 Refactor RBin.Xtr to speedup dyldcache extraction
* Refactoring RBinXtr API.
* Cache sub-fat bins in sdb to save memory.
* Fix the error while loading sub-bins of different archs.
* more work into xtr to fix the remaining tests
2016-07-27 11:01:57 +02:00
Álvaro Felipe Melchor
9e412a9048 fix again the crash in nz 2016-07-26 23:08:29 +02:00
Álvaro Felipe Melchor
5d493c1950 refix crash in nz assembler 2016-07-26 22:37:20 +02:00
Álvaro Felipe Melchor
8a0b1183c7 fix crashes in radiff 2016-07-26 22:34:00 +02:00
Álvaro Felipe Melchor
3c8066ce57 fix crash in nz assembler 2016-07-26 22:08:25 +02:00
pancake
e62aac49f3 Update C++ demangler from the latest GNU binutils 2016-07-26 18:57:57 +02:00
pancake
2dda628da1 Null terminate array of instructions in x86.nz to fix a crash 2016-07-26 18:46:48 +02:00
pancake
d46fa6ddd5 Implement waitfor:// in io.debug. Fixes #5380 2016-07-26 17:23:50 +02:00
pancake
102261ba37 Implement pidof:// URI handler in io.debug 2016-07-26 17:16:56 +02:00
pancake
9b053064fd Fix dmp command for OSX and make it work with 1 parm instead of 3 2016-07-26 16:54:18 +02:00
pancake
2638b07571 Fix r2 -d mame on OSX asm.bits=16 problem 2016-07-26 15:30:26 +02:00
pancake
2a2226978e Fix dmi on OSX and minor cydia tweak 2016-07-26 15:17:07 +02:00
pancake
30bdc476a1 Some cleanup in xnu.debug 2016-07-26 04:15:23 +02:00
pancake
9500455c87 Remove noisy error message 2016-07-26 00:33:28 +02:00
pancake
b342358513 Fix x86.nz warnings from clang 2016-07-25 21:26:35 +02:00
Sven Steinbauer
e436e66428 Kill dead code (#5378)
Fix dead code warnings from coverity scan
2016-07-25 21:24:29 +02:00
pancake
36af078830 Fix regression 2016-07-25 21:24:19 +02:00
pancake
085a156a86 Fix #5334 - add support to analyze interrupt handler functions 2016-07-25 20:15:50 +02:00
Sven Steinbauer
c5635eec3c Fix error on invalid reg (#5374)
some instructions wouldn't error on invalid source or dest values.
Set valid reg to false by default and only set true if actually valid
2016-07-25 18:52:58 +02:00
pancake
e829c007fd Fix #5371 - format string in blocksize error 2016-07-25 18:50:14 +02:00
Sven Steinbauer
887f5bfa8c Support extended 64bit registers [Fix #5364] 2016-07-25 18:02:46 +02:00
Paul
6b9bc8560e iS[j|*|q] [hash] fix 2016-07-25 14:48:49 +02:00
Kodoque1
e582ab8dbb Correction for #5349 (#5369)
* q[y/n][y/n] options added

* Adding crowell remarks

* checking beginning whitespace and fixing else if

* updated

* cleaning update
2016-07-25 10:37:51 +02:00
sdlf
96858ac1e9 Some improvements for arm pseudo code (#5370)
* Fix logical typo scanning for separator

The test would only accept ] as a separator. This was ok for
expressions like:

  r2 = [pc + 8]

But would strip the terminating ) in:

  if (r1 == 0

* arm/pseudo: fix typo /halt/half

* arm/pseudo: fix spacing before byte/half

it is now consistent with the other instructions and
have a space after the '=' also consistent with vmov/vdif.

* arm/pseudo: fix ldr/str

The following str instruction:

  str r0, [r4, 0xc]

Would produce the broken pseudocode:

  [r4 + 0xc] = r0 + 0xc]

With this change we get the expected:

  [r4 + 0xc] = r0

We need to handle 2/3 parameter instructions
differently for ldr/str. By doing this the
special case checking for [ is no longer needed.

* arm/pseudo: add a couple of XXXXs variants

these were arbitrarily selected based on the sample
i have been looking at.
2016-07-25 05:16:51 +02:00
pancake
6dfba715b1 Fix #5361 - realtime hexview edit mode 2016-07-25 05:14:48 +02:00
pancake
6c549b424a Remove x86.tab from r2 master (moved to extras) 2016-07-25 03:47:47 +02:00
pancake
845bfebc9e Fix null deref in x86.nz 2016-07-25 03:42:28 +02:00
pancake
91fe80f4ca Fix avr's rjmp disasm, analysis and esil 2016-07-25 03:19:16 +02:00
pancake
0cffcb981e Fix vsize=0 issue in PE parser (fixes asm68k.exe issue) 2016-07-25 00:03:20 +02:00