Commit Graph

12281 Commits

Author SHA1 Message Date
pancake
fd0810fbf1 Fix memleaks in av, lot of anal code cleanup and do not always allocate bb->diff 2016-08-22 18:32:18 +02:00
Wladimir J. van der Laan
b68c345948 Add stackptr to aOj output (#5582)
It's 10:00 PM, do you know where your stack pointers are?
2016-08-22 18:07:15 +02:00
Joshua J. Drake
b526aded9c Don't restore breakpoints on STEP recoil (#5583)
As the comment says, we need to pretend to satisfy the caller. For some reason
I also restored the breakpoints here. I cannot for the life of me figure out
why since it should be ok with in all cases.

For swstep=false, the step will stop right away (regardless of any breakpoints)
and thus need to remove breakpoints anyway.

For swstep=true, a breakpoint is created on the next instruction and would stop
too and thus need to remove breakpoints anyway.

So yeah, don't do this. Thanks for the report skuater!
2016-08-22 17:13:13 +02:00
pancake
9a9e9326a5 Fix two null derefs in anal.var code 2016-08-22 14:52:27 +02:00
zlowram
97103102f4 Fixed warnings (#5579) 2016-08-22 13:26:35 +02:00
Alexandru Caciulescu
4bf045b5da Coverity patch + refactor (#5574) 2016-08-22 12:39:21 +02:00
Jaguar83
eb50b7edd1 Patch 1 (#5544)
* Bad Trap on MIPS ADDI ESIL
added $$ to TRAP as per ES_TRAP_DS

* Fixed ADDI logic

Based on QEMU, overflow occurs when the operands have the same sign, but the sign of the result is different.
2016-08-22 12:36:30 +02:00
pancake
59620e1364 Fixes in pf indent output. More to come 2016-08-22 12:33:42 +02:00
Rakholiya Jenish
18cd2f5ec5 anon pf struct and add n/N
add anon nested struct help and fix tests

fix tests

minor changes

add support for unsigned and signed char, short, int and long long

add help

cleanup

minor fix
2016-08-22 11:25:52 +02:00
Ahmed Mohamed Abd El-MAwgood
29bf4e2fe2 fixing bugs with tp (#5567)
- Fixing (type matching with esil into non initialized stack)

- FIXING CIDS in anal_tp.c and var.c

  - CID 1361741
  - CID 1361734
  - CID 1361731
2016-08-22 11:22:22 +02:00
Alexandru Caciulescu
d83779445d Update depgraph.pl script usage (#5577) 2016-08-22 11:22:13 +02:00
zlowram
8a08de39ec Improvements on zignatures generation and new mataching command
- Generation of zignatures were to specific to be useful. They were
generated by getting the first 128 bytes of the functions defined,
as is. Now, it generates more generic signatures by getting the
whole function bytes and masking out all the operands.

- New z. command, that performs zignature match by function. It
works for a given offset with @ addr, so with @@ fcn* it can be
run against all detected functions of the bin.
2016-08-22 10:48:56 +02:00
pancake
1a561b62ce Drop that speedup analysis 2016-08-21 12:10:44 +02:00
pancake
0016fb6d33 Add JAYRO_03 aac improvement (disabled for now) 2016-08-21 11:50:33 +02:00
pancake
2390075946 Try the JAYRO_04 patch to speedup analysis 2016-08-21 11:39:37 +02:00
pancake
5023918793 Add hotpatching function preludes from MSVC 2016-08-21 11:31:54 +02:00
Alexandru Caciulescu
43c99e4e6a Split ROP SDB per class (#5561) 2016-08-21 10:21:44 +02:00
pancake
56844d68f3 Rollback the tinyrange optimization 2016-08-21 03:07:19 +02:00
pancake
1bdb2c9f93 Add and use tinyrange.c: get 10% speedup in analysis 2016-08-21 01:41:03 +02:00
pancake
bab8d67c5e Add @@f foreach iterator to walk all the functions 2016-08-21 00:25:03 +02:00
pancake
c8fbe92cfe Update www-m from git 2016-08-20 12:27:04 +02:00
Rakholiya Jenish
f3085dd3e4 remove %hh usage 2016-08-19 19:58:38 -04:00
Ahmed Mohamed Abd El-MAwgood
4c60a11f7e Types docs (#5557)
* Adding types documentation

* refactoring and optimizing types databases

All based on docs

* fixing r_core_types_init

Basically we needed to try all possible 7 combinatios of file name,
I am not sure if there is a way to do that automatically.
one extra thing, since this is init subroutine we should make sure
that the db is already empty, when reloading this function
(by changing env vars), it will be reloaded thus it needs a reset first.
2016-08-19 14:31:41 -04:00
pancake
22b78d5c73 afn without arg show current function name 2016-08-19 14:15:10 +02:00
pancake
b5d1bbf333 Fix afn without argument issue 2016-08-19 14:13:57 +02:00
pancake
e0e15baa6c 2x speedup in objc mach0 parsing with memoication 2016-08-19 13:53:11 +02:00
pancake
d779aa3352 Fix debrujn format strings 2016-08-19 12:58:07 +02:00
pancake
c6d76d52b2 Fix #5562 - Only STACK_INC and RESET changes stackptr 2016-08-19 12:49:17 +02:00
Pau Oliva
3f2b2a1726 Fix endianness issues in CPS-2 decryption 2016-08-19 12:04:53 +02:00
Sebastien Marie
e0ee8cdefa update native sandboxing method for OpenBSD (#5545)
move from systrace(4) (removed in 6.0 release) to pledge(2) (available
since 5.9).
2016-08-18 15:59:36 +02:00
Mitchell Johnson
7661c3930a Add a missing MSP430 constant register instruction encoding (#5548)
* Fix a missing #1 constant-generator encoding for msp430
* Fix up some tab/space mixing
2016-08-18 15:58:38 +02:00
Pau Oliva
52ce3359a8 fix set_key return value in crypto_cps2 (#5552) 2016-08-18 14:48:31 +02:00
pancake
5d7cc088cd Update shlr/www from git 2016-08-18 14:25:06 +02:00
pancake
adaf59c718 Minor fixes for ios-cydia.sh 2016-08-18 14:25:01 +02:00
Ahmed Mohamed Abd El-MAwgood
8e23885816 adding option load types manually (#5550) 2016-08-18 10:52:20 +02:00
leberus
74e6fda450 Coredump support for ARM and fix-ups (#5549)
* Fixes: 5540 (now i386 will not complain in case they're missing GETREGSET)
 * Fixup: Owner set to Linux for NT_PRXFPREG
 * Fixup: Now extra section hdr is being written with the right offset
 * Fixup: Bug with multithread cfg fixed
 * Add: Now r2 is able to generate coredumps on ARM platforms
2016-08-18 10:43:08 +02:00
pancake
50473d8897 Reduce Cydia package size by removing development files 79MB -> 19MB 2016-08-18 02:48:29 +02:00
pancake
a877693dc7 Fix issue with silly compilers 2016-08-18 02:25:43 +02:00
pancake
b5febd2690 Add pP in Vv with afi, pds, pdc, pdr, pdf 2016-08-18 01:27:24 +02:00
pancake
38b1aedb03 Fix infinite loop in aftm 2016-08-18 01:27:11 +02:00
pancake
9021789382 Fix #5546 - Implement Vv[JK] to scroll pages of functions 2016-08-18 00:29:11 +02:00
pancake
3bc4716aad After release version bump 2016-08-18 00:15:30 +02:00
Philip Grohe
34dea157f0 Edit stack.size description for clarity (Fix #5542)
Remove mention of anotated stack from description of stack.size configurable.  stack.size applies regardles of value of stack.anotat

Fix for issue 5541
2016-08-17 09:09:19 -04:00
Maijin
b9ae1d9dc6 Add aO Description 2016-08-17 00:51:49 -04:00
pancake
940f2d311d Release 0.10.5 - codename: PreCon 2016-08-17 01:28:34 +02:00
pancake
4eafce512f Remove noisy printf for mach0 2016-08-16 19:54:29 +02:00
Alexandru Caciulescu
c647c23182 Adding ArithmeticConst pattern (#5531) 2016-08-16 19:41:58 +02:00
pancake
fb7ecedf73 Add edges and ebbs info in function 2016-08-16 19:35:25 +02:00
pancake
123d1f1964 Fix android-x86 build 2016-08-16 19:27:55 +02:00
Jeffrey Crowell
57b357fb0a eprintf on pattern that is longer than we can do
closes  #5513
2016-08-16 15:43:08 +00:00