Commit graph

4964 commits

Author SHA1 Message Date
pancake
d68822c389 Honor q in scripts to stop interpreter 2016-03-31 04:48:36 +02:00
pancake
7bfa3f42cf Add graph.gv variables to set custom graphviz styles 2016-03-31 02:25:54 +02:00
pancake
4053c60295 Use vee arrows in graphs 2016-03-31 02:12:53 +02:00
pancake
c724e3b1a5 Honor ec graph.{true|false|trufae} in aga for graphviz 2016-03-31 02:03:44 +02:00
pancake
cdc6fb4687 Fix parsing of rgb colors and support html 2016-03-31 01:16:19 +02:00
pancake
a9a8fa2886 Do not show function address in graphviz's basicblocks 2016-03-31 00:16:33 +02:00
Kitsu
3e5d281815 Fix #4436 - more help for o subcommands 2016-03-30 22:39:30 +02:00
Alexandr
45bb5ef079 Fix #3955 2016-03-30 13:30:22 +02:00
pancake
354b9efbf2 Add ?E clippy echo and use it in ???? 2016-03-30 12:44:56 +02:00
pancake
41a280c3c6 Fix #4453 - Honor cursor in Vx 2016-03-30 12:30:51 +02:00
pancake
2177eff8e8 Fix #4450 - No more empty aga graphs 2016-03-30 12:28:44 +02:00
Mizari
ae2bcb649a Fixed #4449 2016-03-30 11:31:04 +02:00
oddcoder
f64d2bb494 Fixing coverities
libr/core/cmd_type
Incrementing a pointer which might be null: "ptr".

/libr/core/cmd_anal.c: 2319 in cmd_anal_esil()
Variable "old_arch" going out of scope leaks the storage it points to.
2016-03-29 22:44:44 +02:00
pancake
f672804964 Rename realsize -> realsz 2016-03-29 15:33:53 +02:00
pancake
fe0c38e372 Add asm.symbol to show flag/fcns in disasm 2016-03-29 02:03:17 +02:00
pancake
e93436ee5b Show calls and refs in aai 2016-03-29 01:13:00 +02:00
pancake
089ee49261 Fix #4410 - aai command to show analysis statistics info 2016-03-29 00:39:50 +02:00
pancake
9d54015029 Handle referer in http server for CSFR protection 2016-03-28 23:38:45 +02:00
pancake
c74b476464 Fix tk fflush issue for /t webui 2016-03-27 17:20:21 +02:00
pancake
365162d4a8 Run file.analyze only when file contains entrypoint 2016-03-27 14:05:43 +02:00
pancake
f641200bdc Enhancements for the p=ej 2016-03-27 00:32:12 +01:00
oddcoder
e1c120e654 Fix #4390 - Fixing tl? allignment and tl* output 2016-03-26 23:21:06 +01:00
Maijin
b25f3af2d7 Add aan in rowlog 2016-03-26 19:42:11 +01:00
Maijin
616a73610c Add [@addr] in p? help via @neobrain fix #4425 2016-03-25 14:07:01 +01:00
pancake
cd6ef644bf Fix warnings in aex command 2016-03-25 10:18:45 +01:00
pancake
f1f83276ea Fix static build with libbochs 2016-03-25 10:13:50 +01:00
Álvaro Felipe Melchor
2cf64fbb8a fix memory leak 2016-03-25 00:25:26 +01:00
Álvaro Felipe Melchor
2c70142294 Fix #4393 2016-03-25 00:18:48 +01:00
Darredevil
9c998618aa Fix #4362 2016-03-24 23:06:50 +01:00
oddcoder
6919b58716 adding tk* 2016-03-24 22:48:59 +01:00
oddcoder
7c5a2ef97a adding tl tl- tl-* 2016-03-24 22:47:42 +01:00
alvaro_fe
27459b7deb fix latest covs 2016-03-24 20:43:33 +01:00
HummyPkg
cbedd8fd33 Put esil discovered strings into strings flagspace 2016-03-24 12:46:21 +01:00
pancake
bf904374ef Enhance icj 2016-03-24 00:41:56 +01:00
pancake
90bc56dc43 Implement variable to get minimum map address 2016-03-23 22:42:02 +01:00
Álvaro Felipe Melchor
80ef8540da fix segfault ecp 2016-03-23 22:42:57 +01:00
HummyPkg
44d3e54c44 #4403 - Find more string references for MIPS and remove some false positives. 2016-03-23 22:19:42 +01:00
pancake
a00c916028 Fix #4404 - Fix ij json 2016-03-23 22:16:50 +01:00
pancake
71bd7719c1 Fix #4409 - eco segfault and implement ecp 2016-03-23 22:13:55 +01:00
Maijin
1a3e09d1e8 Save types in the project file 2016-03-23 09:08:26 +01:00
pancake
f9a36d9da8 Fixes for the last commits 2016-03-23 01:35:20 +01:00
oddcoder
a17ff1546c fixed bug with t-
see this is not the expected
[0x00000000]> q
[ahmed@localhost radare2-regressions]$ ./run_tests.sh t/cmd_types
[ahmed@localhost radare2-regressions]$ r2 -
 -- Learn pancake as if you were radare!
 [0x00000000]> "td union x{int x; int y; int z;}"
 [0x00000000]> tk*
 unsigned int=type
 unsigned char=type
 unsigned short=type
 int=type
 long=type
 void *=type
 char=type
 char *=type
 const char*=type
 uint8_t=type
 uint16_t=type
 uint32_t=type
 uint64_t=type
 type.unsigned int=i
 type.unsigned char=b
 type.unsigned short=w
 type.int=d
 type.long=x
 type.void *=p
 type.char=b
 type.char *=*z
 type.const char*=*z
 type.uint8_t=b
 type.uint16_t=w
 type.uint32_t=d
 type.uint64_t=q
 x=union
 union.x=x,y,z
 union.x.x=int,0,0
 union.x.y=int,0,0
 union.x.z=int,0,0

 [0x00000000]> t- x
 [0x00000000]> tk*
 [0x00000000]>
 now it is fixed
2016-03-23 01:19:49 +01:00
oddcoder
5383fd6772 adding tu for enums
+ indentation
2016-03-23 01:19:49 +01:00
oddcoder
e19501168a Fix #3925 2016-03-23 01:19:49 +01:00
oddcoder
9c8253dd22 fixing type in sdbforce that lead to brocken t 2016-03-23 01:19:49 +01:00
pancake
cf7a751fc5 Fix #4367 - Honor pds [num-bytes] 2016-03-23 01:18:27 +01:00
pancake
e6011f0cc2 Fix #4367 - Implement pdsf and pdfs 2016-03-23 01:13:16 +01:00
oddcoder
3c02f8ebca Fix #4355 2016-03-22 17:10:28 +01:00
oddcoder
a918b21fc5 FIX #4358 2016-03-22 17:10:28 +01:00
Kitsu
55b0769c5e Missed fix in f4618c0 of r_core_diff for proper compilation 2016-03-22 14:47:57 +01:00
pancake
f4618c0bbd Remove radiff2 -CC because we already have -A, -AA, -AAA ... 2016-03-22 13:00:02 +01:00
oddcoder
ad9d8fd0f1 Fix #4354
Fix #4354

fixing indentation
2016-03-22 11:49:40 +01:00
Mizari
59d614edf1 Added drw/arw command + r_reg_arena_set_bytes 2016-03-22 11:48:42 +01:00
pancake
0dcdab6d19 Fix #4279 - do not prefix fcn. in afn 2016-03-22 02:05:23 +01:00
pancake
ac96249a99 Set anal.autoname by default for now 2016-03-22 02:00:42 +01:00
pancake
f64cae4118 Fix #4374 - ags command to show simplified flowgraph 2016-03-22 01:55:37 +01:00
pancake
218ffda4f2 Do not autoname functions by default. Add e anal.autoname 2016-03-22 01:39:43 +01:00
pancake
895a966884 Do not diff function strings, increase memlimit 2016-03-22 01:31:10 +01:00
Darredevil
b362e2d2fb Alias 'doo' command for issue #4365 2016-03-21 23:55:01 +03:00
Álvaro Felipe Melchor
6e4c68f6f6 Fix oob read in cmd_anal.c 2016-03-21 16:41:18 +01:00
Maijin
2a82395c3f Typo Exapmle => Example
Typo Exapmle => Example
2016-03-20 13:51:33 +01:00
oddcoder
8b9c7e3a7c td? is not really helpful #4352
fixing indentation
2016-03-20 14:24:06 +02:00
oddcoder
9013158f4d output of t is wrong #4351
adding struct support to t

adding enum handling to `t`

and optimising the stuct type finder
2016-03-20 14:23:38 +02:00
pancake
d1b36b01ec Fix #4267 - Prefix all env vars with R2_ 2016-03-20 02:24:17 +01:00
oddcoder
75d290833e removing support td-
| td-<name>          Undefine type by name
| t- <name>          Delete types by its name
their is no obvious difference between both of them basically td- was
buggy so I copied it into t- then fixed the bugs there.
2016-03-19 23:25:16 +01:00
pancake
0442a71fa8 Fix agc by only showing flagged nodes 2016-03-19 02:43:36 +01:00
pancake
efc215d587 Fix aap for static and make it work in debugger 2016-03-19 02:39:28 +01:00
pancake
5b7c9f5aad Implement pvj command 2016-03-19 02:26:28 +01:00
pancake
23d8f286bc Fix aap boundaries issue for static binaries 2016-03-18 19:23:56 +01:00
Adrien Garin
10de21de7e RBin: fix PE and ELF versioninfo
PE parser is now able to get the StringTable value even if the
wValueLength of the structure is incorrect.

Fix a regression with ELF versioninfo.
2016-03-18 18:35:05 +01:00
Evan Shaw
db00a291a5 Prettier memory region printing 2016-03-18 13:55:26 +01:00
pancake
03c49f92af Avoid fixed size buffer in t 2016-03-18 13:50:33 +01:00
oddcoder
9a7ea1b3f1 fixing indentation 2016-03-18 13:44:24 +01:00
oddcoder
6b256183c2 fixing t- 2016-03-18 13:44:24 +01:00
oddcoder
9c8158d397 unused variable 2016-03-18 13:44:24 +01:00
oddcoder
0b4a7635a0 fixing t-* 2016-03-18 13:44:24 +01:00
oddcoder
09bc8f2eaf fixing tb 2016-03-18 13:44:24 +01:00
oddcoder
f71a8e66db Off by one error?
[0x00000000]> t int
Breakpoint 1, cmd_type (data=0x55555575c5c0 <r>, input=0x5555558598e1 " int") at cmd_type.c:82
82		RCore *core = (RCore*)data;
(gdb) n
84		switch (input[0]) {
	(gdb)
	197			const char *isenum = sdb_const_get
	(core->anal->sdb_types, input+2, 0);
	(gdb) p input + 2
	$1 = 0x5555558598e3 "nt"   <-- shouldn't be "int"
	}
2016-03-18 13:44:24 +01:00
pancake
09aed6e525 Simplify ?T and fix load time 2016-03-18 13:39:45 +01:00
Darredevil
12e40a9249 Loading time for issue #3244 2016-03-18 12:34:17 +01:00
Adr1
ab5792d132 RBin: improving versioninfo
Store ELF versioninfo in Sdb.
Display VS_FIXEDFILEINFO for PE.
2016-03-16 18:10:49 +01:00
pancake
84fc735501 Some enhancements for the MIPS ESIL emulation 2016-03-16 16:37:57 +01:00
pancake
cb119968dd Fix #4293 - Fix mips string reference detection with ESIL 2016-03-16 15:14:05 +01:00
Álvaro Felipe Melchor
43e5171cf7 remove eprintf message 2016-03-16 14:15:16 +01:00
pancake
b34b3c55e6 Fix build (missing dep for core) 2016-03-16 13:45:38 +01:00
pancake
b461e3989a Implement woE/woD to encrypt/decrypt with rc2/rc4/xor/blowfish/aes... 2016-03-16 13:33:50 +01:00
pancake
21bb24b7a4 Honor anal.strings in aae 2016-03-16 13:08:27 +01:00
pancake
ec895d787c Fix ROR/ROL ESIL expressions for x86-64 capstone 2016-03-16 12:51:26 +01:00
easyhard
ddaa6dff07 Fix issue #4319 can not use regex sequence in rop 2016-03-15 18:14:43 +01:00
pancake
15d9563014 Fix #4313 - & in function switches fcn->bits instead of global ones 2016-03-15 11:47:13 +01:00
pancake
b0f887edd9 Add tiny warning for anal.calls 2016-03-15 11:28:56 +01:00
easyhard
91cc270fbf only try smaller addresses in non-align arch 2016-03-14 23:08:26 +01:00
easyhard
312f72ac01 Fix #4020 - ROP: Find gadgets from all offsets
End gadgat instruction may be part of a different
isntruction, depends on starting offset. Therefore,
rop searching should try some starting offsets that
are smaller than the previous end gadgat.
2016-03-14 23:08:26 +01:00
oddcoder
f5f28caa14 fixing little error in the description 2016-03-14 23:04:18 +01:00
oddcoder
021b9950db fixing a bug in eco
eco just freezes when requesting doc by the command `eco?`
2016-03-14 23:04:18 +01:00
pancake
e4e9b01728 Add anal.strings false by default and enhance string detection 2016-03-14 09:42:54 +01:00
pancake
185207cc1c Fix #4305 - aar detect and define strings 2016-03-14 01:45:25 +01:00
pancake
6d204b1bc3 Fix another whitespace issue in pd 2016-03-14 00:15:51 +01:00
pancake
b80904319d Fix #4194 - Remove RCons dependency from RIO 2016-03-14 00:11:31 +01:00
pancake
23b3c5fe30 Fix #4290 - @@@ was not documented 2016-03-14 00:01:39 +01:00
pancake
1b1e722795 Workaround for 6502 to show 16bit PC register 2016-03-13 23:56:23 +01:00
pancake
ad2df38fca Fix onespace issue in pd 2016-03-13 21:56:46 +01:00
pancake
bd11cf8f81 Fix pd regression with spaces at the end 2016-03-13 03:13:27 +01:00
pancake
21fecbaf87 Some more p= fixes 2016-03-13 02:31:13 +01:00
pancake
fd5c8d17fe Refactor the p=X, honor current seek and better ascii bars 2016-03-13 01:30:28 +01:00
Maijin
daafa94407 Enable demangle by default fix #4266 2016-03-12 18:01:12 +01:00
Maijin
38bc88fb67 Also add the warning in aaa 2016-03-12 17:48:53 +01:00
Álvaro Felipe Melchor
1828d76dcf Add missing type iej 2016-03-12 13:09:23 +01:00
Álvaro Felipe Melchor
1f2139fd54 Fix null dereference 2016-03-12 13:09:19 +01:00
pancake
0104b0b324 Show checksum info in rabin2 -I, need better naming 2016-03-12 11:28:05 +01:00
Aneesh Dogra
5c3f5904ea Add a way to compare claimed CRC (in header) of PE files with the actual CRC. 2016-03-12 11:22:55 +01:00
pancake
977aeb8173 Show entrypoint type info in rabin2 -e and ie 2016-03-12 11:16:42 +01:00
pancake
4fc392eefa Remove dead code 2016-03-12 02:36:37 +01:00
pancake
04a5eb3fb4 Fix #4292 - JSON and quiet modes for p=[pe] 2016-03-11 12:19:37 +01:00
pancake
e68b5f2463 Do not print ao's type2 if it's null 2016-03-11 09:50:36 +01:00
Jeffrey Crowell
3511c9198f refix pdfj 2016-03-10 11:34:21 -05:00
Aneesh Dogra
c7867da944 versioninfo: Fix SEGV on files with no info (.txt, ...) 2016-03-10 16:40:21 +01:00
Riccardo Schirone
8fa47870b2 core/disasm: at should not depend on i, that is used as index for buf
"i" was reset to 0 when the buffer is moved, so "at" pointed back to an
already printed instruction. With this patch "at" is calculated based on
"k", a new index that is never reset and simply indicates the delta from
the starting address.
2016-03-09 12:24:10 +01:00
Elia Geretto
5f3d9d4899 Sort afl output by offset 2016-03-09 11:52:22 +01:00
pancake
342961a3c5 Fix #4251 - Blank space using fcnlines=0 and flgoff=1 2016-03-09 10:08:53 +01:00
pancake
bb5d4d7b56 Fix #4261 - duplicated offset with asm.spacy 2016-03-09 09:53:53 +01:00
pancake
bfdde3f565 Remove flag listing issues with asm.functions=false 2016-03-09 09:50:30 +01:00
Maijin
f728ed6bc3 Add command name in aaaa
Add command name in aaaa
2016-03-08 09:05:01 +01:00
pancake
588e264f9f Fix latest COVs 2016-03-07 12:54:40 +01:00
pancake
75bf9b233a Fix aat->aap typo and add no-mclass option for x86.arm.cs 2016-03-07 12:31:50 +01:00
pancake
2c049ad05e Better aaaa reports 2016-03-07 04:12:11 +01:00
pancake
377ff92134 Fix #4190 - Scroll below 0 in cursor mode not jumping to -1 2016-03-07 03:35:13 +01:00
pancake
b2bb2ff78c Fix #4235 - oob read in aaf 2016-03-07 01:01:05 +01:00
pancake
3c6cd37ba9 Fix #4243 - Stack overflow in aae 2016-03-07 00:18:06 +01:00
pancake
0f4239cf71 Fix oob read in afe 2016-03-06 23:31:21 +01:00
pancake
1f1813dd45 Aim to fix #4231 - Segfault in cursor+fold 2016-03-06 23:23:39 +01:00
Matthieu Tardy
bb84bbc276 Fix memory leaks in rabin2 and libr 2016-03-06 23:17:44 +01:00
Álvaro Felipe Melchor
ee988122de fix oob read when doing aae 2016-03-06 23:15:42 +01:00
Maijin
fbb1b1e80f Adding verbosity in aaa 2016-03-06 19:38:25 +01:00
pancake
9c05579ade Add ecn and use it from VR with scr.randpal 2016-03-06 12:35:07 +01:00
pancake
92ad561fea Fix latest coverities 2016-03-05 20:46:04 +01:00
Riccardo Schirone
48fb9e14e0 core/visual: fix 'J' and 'K' when screen is full of flags/comments/etc. 2016-03-04 13:46:10 +01:00
Adr1
611c3d1752 RBin: Display File Version info 2016-03-04 01:15:56 +01:00
pancake
6ed05a7812 Fix pd regression 2016-03-04 01:15:20 +01:00
pancake
ec3ee44ae0 Implement asm.flgoff and asm.spacy + minor optimization 2016-03-04 00:33:24 +01:00
pancake
7a1993b057 Fix str_case regression 2016-03-03 11:45:04 +01:00
pancake
ec41dca741 Fix lowercase sdb filenames for DLL import resolution 2016-03-03 11:03:14 +01:00
Riccardo Schirone
ec6b55527c core/disasm: fix set of last row offset
core/visual: reset cursor position on 'u'/'U'/'o'/'V'.
2016-03-02 11:29:13 +01:00
pancake
3533813995 Fix #4190 - Scrolling beyond zero 2016-02-29 15:55:25 +01:00
Riccardo Schirone
64c3c9a723 core/graph: disable cursor when in graph mode to avoid glitches 2016-02-28 14:19:57 +01:00
Martin Heistermann
fbd0905c56 Add initial indirect relocation (irel, ifunc) support. 2016-02-28 02:43:25 +01:00
pancake
a22258e99a Better error message for dbg.bpinmaps 2016-02-28 02:43:13 +01:00
pancake
35af84c978 Implement pxd[#] for signed num dumps 2016-02-27 18:36:28 +01:00
pancake
0f21114112 Initial implementation of ?vi[1248] to compute signed integer values 2016-02-27 17:58:32 +01:00
pancake
09117ca99b Fix Cov CID 1352280 2016-02-27 12:38:02 +01:00
pancake
1f994eec76 Fix #4182 - ignore asm.tabs in pdc 2016-02-26 14:39:53 +01:00
pancake
517f7fa23e Handle Vi in Vppc - aka change reg values with cursor 2016-02-25 11:35:59 +01:00
pancake
eef4665242 Initial support for tab in visual debugger 2016-02-25 10:28:54 +01:00
pancake
a7f137f215 Support cursor in dr= 2016-02-25 02:58:26 +01:00
Riccardo Schirone
a87a77f9e4 core/disasm: asm.bbline should be based on RAnal
The BasicBlock is a concept you can have only with analysis info. This
ensure that the displayed result is correct.
2016-02-24 23:00:41 +01:00
Riccardo Schirone
e727e662db core/disasm: fix bbline reflines 2016-02-24 23:00:41 +01:00
Mario Ballano
47d9888f93 Various RAP client/server bugs, endianness and remove RAP_RMT_SYSTEM 2016-02-23 15:00:59 +01:00
Riccardo Schirone
dddb490969 core/anal: give better names to function when they have symbols 2016-02-23 14:21:41 +01:00
Riccardo Schirone
28f3561512 core/vmenus: add 'Vdn' option to rename flags/vars in current inst 2016-02-23 02:35:47 +01:00
pancake
c2f5b72c80 Fix #4010 - axg: show recursive xrefs tree 2016-02-23 02:31:53 +01:00
pancake
607491e1ce More fixes for pd@x:90 variants. New tests in r2r 2016-02-22 23:53:29 +01:00
pancake
8d60ef61dc Fix #4110 - Fix pd@x:90 issue 2016-02-22 23:45:36 +01:00
pancake
223a31d2ef Fix #3084 - pd 0 prints nothing 2016-02-22 23:29:05 +01:00
pancake
d5decff694 Fix #4134 - Honor min,maxlen in izz 2016-02-22 22:51:37 +01:00
Riccardo Schirone
81555efde2 flags: use name instead of realname as the key field of a flag item
flags: remove r_flag_set_name API because not consistent
       the right way to change the name of a flag item is by using
       r_flag_rename. the old api has been then marked as static and
       refactored.
2016-02-22 18:21:25 +01:00
Riccardo Schirone
23006460c1 flags: refactoring of r_flag_set
flags: remove dup parameter from r_flag_set
2016-02-22 18:21:25 +01:00
Riccardo Schirone
b80c635aba flags: refactoring of the APIs to unset a flag item
flags: free items when using unset_name, unset_off or unset_glob
2016-02-22 18:21:25 +01:00
pancake
f7fbbc419e Add dh in anal.x86-64.reg and fix some arm/x86 esil bugs 2016-02-22 01:14:06 +01:00
pancake
07ff9bb5fb Beautify aae and fix some arm32 esil 2016-02-22 00:22:52 +01:00
pancake
fbd834c5ba Add ARM32 prelude for aap command 2016-02-22 00:22:09 +01:00
pancake
af2f02515f Support and load r_fs plugins 2016-02-21 02:32:28 +01:00
pancake
100df3bb32 Better MIPS32BE ELF relocs, add Rx regs in mips.cs and add scr.wheelnkey, nN defaults to flag now 2016-02-21 01:56:50 +01:00
Riccardo Schirone
3cbba20b4e core/visual: fix bug with 'J' when in hex mode and r2 launched with -nn 2016-02-19 00:31:37 +01:00
pancake
8a1968824c Increase max disasm size 2016-02-18 11:08:26 +01:00
William Robinet
d3ab5f38aa Remove execution bit from source files 2016-02-16 23:21:46 +01:00
William Robinet
0c7cacc2dc Fix typos 2016-02-16 23:21:24 +01:00
pancake
9197972e1c Add some preludes for arm64 and fix fcncount in aap 2016-02-16 04:23:34 +01:00
pancake
0e69bfd541 Add default noreturn functions, adjust xrefs and fix regression in type 2016-02-16 03:24:47 +01:00
pancake
3140749266 Fix #4095 - Export RBinSection info for mach0.la_symbol_ptr 2016-02-16 02:58:29 +01:00
pancake
de4cbb47ad Show flags referenced by the Cd 4|8 pointers 2016-02-16 02:50:02 +01:00
pancake
5d210f526e Support array definitions of Cd 4[10] 2016-02-16 02:42:44 +01:00
pancake
384cfb1042 Fix last coverities 2016-02-16 02:08:09 +01:00
pancake
11326489df Add Vdx to find xrefs with ./r 2016-02-16 01:21:36 +01:00
pancake
994eea2acb Fix 10 row limit in Vx 2016-02-16 01:20:25 +01:00
pancake
d35556a3e6 Fix #2276 - Implement et command 2016-02-16 00:10:46 +01:00
pancake
fd359e9121 Implement radiff2 -D and optimize r_strbuf 2016-02-15 23:51:20 +01:00
Álvaro Felipe Melchor
a2c9a63b82 Add repetitions when defining data for b and B when Vd 2016-02-13 22:17:14 +01:00
Riccardo Schirone
5282ed2d98 core/visual: estimate blocksize when in disasm mode 2016-02-13 09:24:37 +01:00
pancake
1a89cac78f Initial support for search.overlap 2016-02-12 11:37:48 -06:00
Riccardo Schirone
0b8a589e16 anal/bb: keep track of ops positions inside a RAnalBlock 2016-02-12 09:06:36 -06:00
Álvaro Felipe Melchor
27d60454a4 Fix #4096 2016-02-11 07:30:09 -06:00
Riccardo Schirone
82385bdbd1 core/disasm: ds->addr can change, addr remains always the starting value 2016-02-11 11:17:00 +01:00
Álvaro Felipe Melchor
feaaab517b demangle afl and disassembly 2016-02-11 01:32:36 -06:00
Riccardo Schirone
b6351ec833 core/visual: better implementation of cursor movements
core/visual: refactoring of movements with ocur enabled
2016-02-11 00:14:36 -06:00
Riccardo Schirone
b4fda922cd libr/core: calculate the offset of each disasm row
util/print: fix bug in r_print_row_at_off

core/disasm: fix bug when setting the row offset of last line
2016-02-11 00:14:36 -06:00
Riccardo Schirone
94123f158c core/disasm: review screen_bounds meaning
core/visual: enable screen_bounds only on default modes
2016-02-11 00:14:36 -06:00
Riccardo Schirone
444c6e616a core/visual: replace global variables with core->print fields 2016-02-11 00:14:36 -06:00
pancake
54419df6b4 Do not start webserver if http.root does not exist 2016-02-10 17:19:05 -06:00
pancake
6b79f915df Fix #4095 - VdW chopping down to 32bits 2016-02-10 11:45:25 -06:00
pancake
24d76819d0 Expose reftype in /r 2016-02-09 11:52:26 -06:00
pancake
9f2ce614d3 Avoid null bytes in axt output 2016-02-09 11:38:55 -06:00
Maijin
530dbe72c1 Save/restore macros in projects fix #4050 2016-02-07 00:51:26 +01:00
pancake
f5181c4d90 Initial rework for dyldcache 2016-02-04 15:44:49 +01:00
Maijin
8571a9c2ba Add ahi for syscall numbers fix #4068 2016-02-03 17:05:03 +01:00
pancake
37d4b269b5 Use io.va in debugger mode to disable io.isValidAddress and fix analysis 2016-02-03 12:53:35 +01:00
pancake
3a2a713775 Implement ahi 32 for IP address hints 2016-02-03 12:29:32 +01:00
pancake
805e3f26e8 Fixes for lldb/debugserver on x86-64 2016-02-03 12:09:58 +01:00
pancake
63854eb4ca Fix #4048 - Fix autocomplete of macros 2016-01-29 00:32:46 +01:00
pancake
c9779da737 Fix iopa tests 2016-01-27 03:33:52 +01:00
pancake
75d7faf35e Fix regression in comments in disasm 2016-01-27 02:49:40 +01:00
pancake
86b2cd3812 Fix #3958 - asm.emu obeys asm.cmtright 2016-01-27 02:35:45 +01:00
pancake
bcb065e5dd Fix #4031 and #4030 - asm.jmphints independent from asm.comments 2016-01-27 02:25:25 +01:00
pancake
90e2fc3031 Fix reg-write in gdb-thumb and tiny io cache optimization 2016-01-27 00:26:49 +01:00
pancake
32dbac517f Several bug fixes for gdb-arm and thumb remote debugger 2016-01-26 23:36:02 +01:00
ninjahacker
15717c0a9e Fixed ?v as first command returning strange value on 32-bit arm 2016-01-26 21:55:06 +01:00
Jeffrey Crowell
043d653339 respect search.to, search.from in rop search 2016-01-25 15:01:50 -05:00
pancake
d2e6ab52fd Fix adf issue 2016-01-25 19:19:01 +01:00
pancake
8d7c86c016 Fix #4023 - Add afb- command 2016-01-25 17:28:56 +01:00
pancake
79cc7c9958 Add adf and adfg commands to define function gaps as data 2016-01-25 17:19:30 +01:00
pancake
59aa68c443 Do not warn in e- 2016-01-25 15:54:25 +01:00
pancake
3b85974b82 Show help in aaa? 2016-01-24 11:33:44 +01:00
pancake
bea71d7074 Add ap command to find prelude for current offset 2016-01-24 03:05:27 +01:00
Álvaro Felipe Melchor
c372743315 xnu: get rid of ptrace even for attach and detach
some rework in order to handle mach message as mach_exc_server and alike does
api change in plugin debug, now the function detach receive a pointer to RDebug
trying to deallocate port when are not needed any more
2016-01-23 22:50:28 +01:00
deffi420
e7fdedd501 Improve r_hex_str2bin, fix overflow and error check 2016-01-23 11:53:43 +01:00
Jeffrey Crowell
462bd1da4c s/poped/popped 2016-01-21 17:21:11 -05:00
pancake
9c39df6806 Fixes on previous commit 2016-01-21 04:03:49 +01:00
Jeffrey Crowell
8f0342166c fix Missing last '}' in pdfj output #3987
closes #3987
2016-01-20 21:01:05 -05:00
condret
e9aa1bfa80 hardening 2016-01-20 16:13:30 +00:00
condret
ccab168cb5 fix a memleak and implement esil.stacksize for @crowell 2016-01-19 23:36:21 +00:00
pancake
5f8697f10a Fix #3972 - Use API instead of command for named functions 2016-01-19 00:44:24 +01:00
Álvaro Felipe Melchor
d9e77ca0d1 xnu: first series of patches to use mach exceptions
* use set_trace_bit and clear_trace_bit macros

* use PT_ATTACHEXC since PT_ATTACH will be deprecated in the future
and we are interested in receiving mach exceptions

* first attempt to handle mach exceptions

* api change: added a parameter to r_core_setup_debugger
at least in OS X this function was producing double attachment.
I've added a boolean value to indicate when use dpa.

* added pipe to communicate between main process and traced process
by far this is not a good implementation. We should develop a better
approach/design to save all the exceptions and handle them accordingly.
This is the initial implementation

* bring back ptrace for stability and in order to merge this into master
2016-01-18 22:24:16 +01:00
Maijin
ebed8e45f1 to is now disable in Sandbox 2016-01-18 21:51:15 +01:00
pancake
31ee717f81 Fix latest coverities 2016-01-18 11:15:02 +01:00
Álvaro Felipe Melchor
34fde89422 Fix #3969 2016-01-17 22:12:05 +01:00
jvoisin
3b7d9c42fc Use letters as well as numbers for ahi bases 2016-01-17 19:34:30 +01:00
pancake
c831afedcc Fix #3960 - crash in pD - 2016-01-15 03:16:06 +01:00
Y. Sapir
66225b9ee1 Filter unselected flagspaces in r_flag_get_at. 2016-01-15 03:11:55 +01:00
pancake
43d5c2b327 Add aea{nrw} subcommands to show and help for aea 2016-01-15 02:51:49 +01:00
pancake
94f822ebe7 Fix #3949 - aea command to list regs used in a range 2016-01-15 01:50:08 +01:00
pancake
3b4fc2cf9a Fix #3950 - Implement asm.emustr 2016-01-15 00:17:28 +01:00
pancake
8839fad03e Fix scr.fix_{columns|rows} 2016-01-14 23:41:14 +01:00
pancake
dd08af0158 Remove unused code 2016-01-14 14:58:02 +01:00
Jeffrey Crowell
82d1ba53af show the acutal function next to the variables 2016-01-13 09:59:31 -05:00
Jeffrey Crowell
2b6203e2fa show the vars and args, fix a small leak. 2016-01-13 00:35:14 -05:00
Jeffrey Crowell
e8332fef8c start adding var editing experience to vmenu 2016-01-13 00:23:49 -05:00
DZ_ruyk
69b0e9f6ef anal af helpmsg fix 2016-01-13 02:43:50 +01:00
pancake
beb2dd2f3f Enhance asm.nodup to support invalid instructions and count them 2016-01-11 22:28:22 +01:00
pancake
5eea48f3a8 Fix #3915 - respect endianness in ? numstr 2016-01-11 01:39:15 +01:00
pancake
fc8ebbebc3 Fix breakpoints issue in ARM 2016-01-11 01:43:05 +01:00
pancake
5badc6acc2 Show more disasm preview in Ve 2016-01-11 00:40:14 +01:00
pancake
a362dcf6d9 Update sdb and fix more null derefs caused by mem exhaustion 2016-01-11 00:24:18 +01:00
pancake
5ed63681b4 Fix #3921 - do not show dupped instructions with asm.nodup 2016-01-10 22:31:20 +01:00
pancake
23e7fbb398 Avoid repeated commands in sandbox mode 2016-01-10 12:10:38 +01:00
akrasuski1
c33af2d540 Added real telescoping.
Right now, the telescoping works only one level deep: something points to something. This commit adds recursive telescoping, similar to gdp-peda's.
Sample screenshot: http://i.imgur.com/JsThuTD.png.

Uses hex.depth which is 5 by default
2016-01-09 03:15:09 +01:00
pancake
7bef915a8d Implement arC/drC to show comments in regprofiles 2016-01-09 03:14:18 +01:00
Riccardo Schirone
a20562d6e8 util/print: fix glitch when cursor is on . at the end of hexpairs
* fix visual instruction alignment when using asm.bytespace
2016-01-08 23:33:57 +01:00
Jeffrey Crowell
8ede2fd32c fix infinite loop in graph minimize_crossings
see
https://github.com/praetorian-inc/angr/tree/binaries/tests/binaries/tests/x86_64
for test binary
2016-01-08 20:50:46 +01:00
pancake
e007cf8c71 Fix last coverities 2016-01-07 14:08:25 +01:00
DZ_ruyk
0e8b42787a Boring typo fixes
Can't -> Cannot (since most of error messages use second form)
2016-01-07 00:13:54 +01:00
pancake
b1a9899dc1 Fixes for #3846 - agg help messages 2016-01-05 00:47:41 +01:00
Riccardo Schirone
3e40ca0a93 core/graph: extend r_core_visual_graph to accept a graph
Now it is possible to pass an already initialized RAGraph that can be
used in interactive mode, without being based on a function.
2016-01-05 00:36:26 +01:00
zlowram
dc828478a8 Implemented Sda command 2016-01-04 01:05:11 +01:00
zlowram
a494a59901 Get current section baddr if multiple files are open 2016-01-03 03:12:33 +01:00
zlowram
abc5575dfc Fixes for #3899 and #3902
- If lines.from is 0, sl 1 seeks to baddr
- Added sll command to show total number of lines and removed the other
messages
2016-01-03 03:11:16 +01:00
pancake
6f47901a06 Clarify r_io_section_mget->_in api and use the heap for section->name 2016-01-03 03:08:58 +01:00
pancake
23c81e7642 Fix int->bool issue after de-boolt-ification 2016-01-03 02:38:14 +01:00
pancake
9e129a793c Fix '& cmd' task state 2016-01-03 02:32:56 +01:00
pancake
42acaa7596 Softly kill boolt type 2016-01-03 02:05:26 +01:00
pancake
a93ecf2b69 Fix #3898 - Persistent section name in project files 2016-01-03 01:36:16 +01:00
Florian Mauracher
8ff4b566b3 Fix stack configuration options in visual debug mode
Re-enable the cmd.stack and stack.{anotated,size,delta,bytes}
configuration options, which were previously overwritten before every
refresh by the default format string.
For this, integrate the dbg.slow option into the general debug format
configuration.
2016-01-02 11:40:04 +01:00
Anton Kochkov
0dbad32d34 Fix #3897 2016-01-01 01:55:06 +03:00
pancake
5132a499c2 Fix many coverities 2015-12-31 17:10:02 +01:00
Iñaki Rodríguez
da033d6b79 Get the first flag coincidence in autoname 2015-12-31 14:58:49 +01:00
pancake
4618834f26 Do not show search help on invalid commands 2015-12-31 14:13:28 +01:00
Álvaro Felipe Melchor
c939ba7da9 Fix #3852 & changes in midflags 2015-12-31 02:10:18 +01:00
pancake
15b2eff455 Fix #3885 - implement uname 2015-12-30 12:43:15 +01:00
pancake
6f5f32bb17 Fix #3877 - Add comments in graph mode 2015-12-29 18:17:33 +01:00
Judge Dredd (key 6E23685A)
60ecab6324 fix anal.bbline with scr.utf8 bug 2015-12-29 17:59:15 +01:00
zlowram
c916d1ca18 Fixed bug in r_core_lines_initcache 2015-12-29 11:38:04 +01:00
zlowram
db8fbcc68b Added config variable to set absolute or relative lines 2015-12-28 16:44:26 +01:00
pancake
e91024c279 Fix #3827 - Implement r_anal_var_delete_byname() 2015-12-28 02:01:41 +01:00
Anton Kochkov
8347a07eda Add missing help for afv* command 2015-12-27 23:39:43 +03:00
Anton Kochkov
6d7f440873 Add missing help for ee command 2015-12-27 23:32:18 +03:00
Dax
b8b0b3e73e Adjusted zignature help 2015-12-27 17:05:29 +01:00
Dax
31a9be7b98 Validate z/ input 2015-12-27 17:05:29 +01:00
pancake
dae75dacfa Fix null deref in r_core_free and add naked.h 2015-12-27 02:33:53 +01:00
pancake
a224ffc1ac Fix #3829 - bug when removing a comment 2015-12-24 15:30:25 +01:00
pancake
f29a33893a Fix zb signature crash 2015-12-24 15:13:17 +01:00
zlowram
91611e8cbb Implemented slc subcommand and slc? help. prl now uses lines cache if
available.
2015-12-24 13:18:09 +01:00
Dax
e350505f7b Implemented 'zp' command 2015-12-24 12:24:05 +01:00
pancake
d6974f7081 Fix #3829 - Fix V;- glitch 2015-12-22 23:09:23 +01:00
pancake
3d1eec808f Fix regression with undefined behaviour 2015-12-22 02:52:13 +01:00
pancake
6de6f35b30 Fixes for sl and lines.* eval vars 2015-12-22 02:33:09 +01:00
zlowram
b371b9a4f7 Implemented 'sl' command
- Fixed tabs indentation
 - Using r_num_math instead of atoi
 - Fixed warning and used R_SNEW0 instead of calloc
2015-12-22 02:32:33 +01:00
pancake
6a274bd3c6 Initial import pds|pdsf to disassemble only strings 2015-12-21 15:53:53 +01:00
Álvaro Felipe Melchor
fff125e54e Fix #3862 null dereference 2015-12-20 20:55:11 +01:00
jvoisin
3727f0794d Change the anti pattern if (A) free (A); for free (A); 2015-12-20 19:28:39 +01:00
Jeffrey Crowell
fdba4bca4d prevent scrolling past end of fcn list in vmenu 2015-12-20 13:12:16 -05:00
Jeffrey Crowell
d814386aeb speedup vmenu function view on long functions 2015-12-20 12:28:46 -05:00
Jeffrey Crowell
82fbd87a7a fix number of fcns before you go off cons 2015-12-18 18:30:33 -05:00
Jeffrey Crowell
2ca166ae80 fix crash if you Vv before anal 2015-12-18 18:15:13 -05:00
Jeffrey Crowell
89ee004a8b fixup vmenus (leak, full fn) 2015-12-18 17:41:14 -05:00
Jeffrey Crowell
d1dc4b0267 fix null deref in cmd_debug ddw closes #3860 2015-12-18 15:57:03 -05:00
Jeffrey Crowell
7f1c766296 show full function when possible on vmenu
if we can't show the full function, just print to fill the screen
2015-12-18 15:53:51 -05:00
pancake
a991e008d1 Fix Vk scrolling in hexdump view 2015-12-18 19:53:54 +01:00
Jeffrey Crowell
a594c79b96 enhance vmenu to show entire function if possible
otherwise show some hopefully useful amount
2015-12-17 08:41:16 -05:00
pancake
1d0768bf74 Fix asm.emu in projects 2015-12-16 22:07:30 +01:00
pancake
d75f77038f Fix afF in projects 2015-12-16 21:57:50 +01:00
Maijin
712855a210 Add help for f4 key in Visual mode
Add help for f4 key in Visual mode
2015-12-16 20:42:21 +01:00
Maijin
5ec0a6e537 Add f4 dcu to cursor fix #249
Add f4 dcu to cursor fix #249
2015-12-16 20:35:45 +01:00
Maijin
af10e7fc79 Add seek history for "." in Visual mode
Add seek history for "." in Visual mode
2015-12-16 19:58:54 +01:00
pancake
f264b1d1e3 Fix pdf on folded function issue 2015-12-16 15:30:13 +01:00
murphy
1b5f5d674e Add support to show comments and function name in axt 2015-12-16 14:44:08 +01:00
alvaro_fe
a6e4d6b93e Fix #838 2015-12-16 11:40:23 +01:00
pancake
69b974eca3 Fix afv-* 2015-12-15 02:08:53 +01:00
pancake
25892b084a Show comments in folded functions 2015-12-15 01:03:42 +01:00
pancake
2f9623786f More fixes for the folded functions in disasm 2015-12-15 00:37:33 +01:00
pancake
d0444bbe15 Fix multiple folded functions glitch in disasm 2015-12-15 00:18:44 +01:00
pancake
e955a2a58f Implement aggd command to output agn/age graph in graphviz format 2015-12-14 23:23:08 +01:00
Dima Turchenkov
ca26ad47da also don't analyze function twice and get normal xref-s for aac 2015-12-14 21:28:24 +01:00
Dima Turchenkov
2bcf5cc8c2 fix for list corruption 2015-12-14 21:28:24 +01:00
pancake
1f647dd2e6 Refix #3785 2015-12-14 12:11:34 +01:00
pancake
84616baaa8 Fixes for eobjmp and jmptbl 2015-12-14 11:18:26 +01:00
pancake
a3d8a3a50d Fix asm.emu regression 2015-12-14 10:57:50 +01:00
pancake
07610b8e83 Fix dup hit issue in /c 2015-12-14 10:56:36 +01:00
pancake
db5a76f8b3 Initial support for fold/unfold functions with afF and Vz 2015-12-14 10:19:07 +01:00
pancake
71536f3fd9 Fix #3833 - af[av]t to change type of variable 2015-12-14 02:25:07 +01:00
pancake
bfcdc09479 Only attach from config.c if cfg.debug is set 2015-12-14 02:24:57 +01:00
Riccardo Schirone
af62362fb1 core/anal: complete the list of analhint commands to print 2015-12-11 00:45:47 +01:00
Dima Turchenkov
7c8fe76de3 bb_max_size 2015-12-11 00:40:11 +01:00
Dima Turchenkov
c7fdb730ee bbs_alignment 2015-12-11 00:40:11 +01:00
pancake
6dc0bd41c1 depgraph for r2 ascii graphs, agn doesnt requires body now 2015-12-10 22:45:00 +01:00
Ricardo Quesada
2c3fdba551 Fix for bug 3788
- `r_io_read` calls `r_io_read_at` with vaddrs, and not with maddr
- `r_io_section_maddr_to_vaddr` uses a reverse iterator to check the
  sections
- adds `r_io_section_mget_prev`: this function can be removed if the
  behavior of `r_io_section_mget` is changed to use a reverse iterator

Squashed commit of the following:

commit a31d359bf1c79b92f518fa8237c7f9d4cf146577
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Wed Dec 9 11:40:54 2015 -0800

    fetches sections starting from the back

commit 0b687439ea6225c8db9f387cc93bc53300e297a7
Merge: 8485676 92c1631
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 23:40:35 2015 -0800

    Merge branch 'master' of https://github.com/radare/radare2 into revert_3788

commit 8485676cf5c042d8c4e10c798b4fadb1a43df50c
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 23:09:05 2015 -0800

    This seems to be the "correct" patch...

    ...but it breaks some tests... apprently searches a few bytes
    out of the section creating some false-positives hits

    I'm just commiting this PR to give an idea of where the bug is

commit 2e4b8de397a4ef23c02c3e08113cf6b984479275
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 22:46:29 2015 -0800

    not good... reverting

commit 324afba7e2853ddb72750f7f8b38bf59af310873
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 22:09:25 2015 -0800

    workaround for bug 3788

commit 6e6283eaa18edcca1987a8f4227f163a6926c430
Author: Ricardo Quesada <ricardoquesada@gmail.com>
Date:   Tue Dec 8 15:14:12 2015 -0800

    Reverts fix for bug #3788

    please, reopen bug #3788
2015-12-09 22:20:54 +01:00
Asger Hautop Drewsen
c72cd131ee Fix syntax choice for asm_x86_as 2015-12-08 21:32:15 +01:00
Ricardo Quesada
8b7bfbd6ad fixes cmd.hit for bug 3788 2015-12-08 21:09:30 +01:00
Dima Turchenkov
e521a0b31b ut16 bufsz 2015-12-08 17:29:36 +01:00
Dima Turchenkov
229836c97a enlarge buffer for probing data references 2015-12-08 17:29:36 +01:00
pancake
75ea729679 Fix regression in t.anal/x86/emu 2015-12-08 16:49:15 +01:00
pancake
0880d7d4f5 Some refactor/cleanup for agf and io cache (wip) 2015-12-08 14:59:30 +01:00
mrmacete
eb51d68d3a esil_step: little refactoring, merging conditions 2015-12-07 21:53:17 +01:00
mrmacete
dac375c541 Delay slot simulation state in ESIL
+ added $ds, $jt, $js internal registers
+ added read / write capability for internal registers in ESIL instructions
+ esil_step 'aes' command ported to new delay slot state handling
2015-12-07 21:53:17 +01:00
pancake
9f72edbd67 Honor more base address in search hits 2015-12-07 18:37:16 +01:00
Ricardo Quesada
f1cbbb13f3 fix for bug 3788
The problem is that if the file is mapped, then base address
is incorrect.
Not sure if there is a better way to fix this bug though
2015-12-07 17:54:56 +01:00
Dima Turchenkov
984dfc3c17 Improve data references analysis: search for functions pointers 2015-12-04 14:06:03 +01:00
pancake
8dedcf406b Fix #3785 - Fix refline colors in arg/var with custom color theme 2015-12-03 14:48:15 +01:00
Dima Turchenkov
fcbbb5e12e option: analyze function references as well if function is broken 2015-12-03 12:41:52 +01:00
Dima Turchenkov
9a929fff84 set function size as length of continuous sequence of bbs 2015-12-03 12:41:52 +01:00
mrmacete
239dec9a87 Delay slot using goto repeat
+ this permits to handle invalid instructions fairly in the delay slot
2015-12-02 12:44:13 +01:00
mrmacete
81cbe04c7c implemented delay slot in esil_step
+ the delayed instruction is executed first
+ and then flow continues normally
2015-12-02 12:44:13 +01:00
fabs
bc0bd43be6 Honor anal.depth in aac. 2015-12-01 21:17:29 +01:00
pancake
40e08dbd89 Get rid of _Bool 2015-12-01 12:39:12 +01:00
Riccardo Schirone
5311241537 core/disasm: add '~' mark when midflags is into effect
'~' is used to notify the user that the instruction is using some bytes
of the next instruction because of asm.midflags.
2015-11-29 12:25:31 +01:00
Riccardo Schirone
fce421b0f0 core/disasm: change cursor when in the middle of an instruction
fix #3748
2015-11-27 20:37:19 +01:00
Riccardo Schirone
3989c94c5a core/disasm: fix some corner cases in the cursor display
fix #3747
2015-11-27 20:37:18 +01:00
Álvaro Felipe Melchor
90e338e934 added autocompletion for pfv pfj and fix invalid frees 2015-11-27 16:47:25 +01:00
Dima Turchenkov
05eb32fdd8 Trash filter for data references 2015-11-27 13:06:13 +01:00
Dima Turchenkov
cded3acaba Search string references in data references option 2015-11-27 13:06:13 +01:00
Dima Turchenkov
03c5d606e0 Don't follow data references by default 2015-11-27 13:06:13 +01:00
Dima Turchenkov
68bae51e3c Follow data references for code coverage 2015-11-27 13:06:13 +01:00
Dima Turchenkov
3e6b474ca5 Don't jump above function address option 2015-11-27 13:06:12 +01:00
Riccardo Schirone
0407aab9c5 core/core: add afvn autocompletion
cons/dietline: add support for autocompletion in the middle of the
input, without destroying the other part of the string
2015-11-27 12:57:39 +01:00
Riccardo Schirone
ac3f94217a core/cmd_anal: show help on afv? and afa? even when not in a fcn 2015-11-27 11:47:24 +01:00
pancake
dd8b7b1e04 Handle PIC field in ART file format 2015-11-26 13:18:11 +01:00
pancake
b5cb0ba1b1 Fix ood on relative paths 2015-11-26 12:55:47 +01:00
Riccardo Schirone
aeddf25348 core/graph: fix behaviour of pagedown/up and home/end
fix #3688
2015-11-26 10:50:00 +01:00
pancake
85ba262c17 Fix #3761 - Fix drd and add aras command to swap arenas 2015-11-25 15:20:25 +01:00
pancake
e0ce78f08c Fix double reglisting in linux-arm 2015-11-25 12:49:02 +01:00
skuater
513200a7fa Fixes for the w32 debugger 2015-11-24 23:28:50 +01:00
Álvaro Felipe Melchor
d8b269f11f Fix last covs 2015-11-24 21:53:25 +01:00
Riccardo Schirone
c7a444cb39 core/cmd_meta: fix regression with format memory metadata 2015-11-24 12:45:43 +01:00
pancake
078739dc2b Check if ds->line is null in asm.bbline 2015-11-24 03:11:55 +01:00
pancake
cffa44b2f7 Add ara command and fix RReg.arena.push/pop implementation 2015-11-24 00:58:03 +01:00
Dima Turchenkov
ad6581f265 Config variables for jmp/cjmp references 2015-11-23 21:04:18 +01:00
pancake
2ff40ad4d4 Some minor refactoring in visual 2015-11-23 17:09:46 +01:00
pancake
a211cf28ba Some missing sr sp -> sr SP 2015-11-23 16:31:31 +01:00
pancake
0b383eba98 VS step overs also on esil 2015-11-23 16:24:36 +01:00
Riccardo Schirone
d47216b349 core/graph: fix SEGFAULT on some "complex" functions 2015-11-23 14:40:08 +01:00
pancake
b4308219e7 UJMP also bbsplits 2015-11-23 11:03:10 +01:00
pancake
4c4747aa33 Fix asm.bbline fcnline glitch 2015-11-23 10:30:49 +01:00
pancake
d42ecbf95b Some random code cleanup and fixes 2015-11-23 02:36:26 +01:00
pancake
cab871f3e6 Fix #650 - asm.bbline - blankline on every basic block 2015-11-23 01:40:35 +01:00
pancake
92be0bd683 Fix #3722 - afa?/afv? doesnt need a function 2015-11-22 21:45:25 +01:00
pancake
aa2dfd2fe6 Fix #3732 - pdj broken 2015-11-22 21:28:11 +01:00
Maijin
5886546420 Fix build 2015-11-22 11:39:54 +01:00
pancake
ccfee9fcca Fix many important issues reported by clang-analyzer 2015-11-22 11:27:45 +01:00
Dima Turchenkov
5d4001cf13 Jump tables #1: direct jump 2015-11-20 16:48:32 +01:00
Dima Turchenkov
02643892fe Split function if overlaps, do not split inner functions 2015-11-20 16:48:32 +01:00
pancake
f188ef836e Fix java build 2015-11-20 16:08:24 +01:00
Anton Kochkov
afa2b8b9db Fix aep command 2015-11-20 18:23:16 +03:00
pancake
6e67049d6f Fix infinite loop, bring back the java crash to greenify 2015-11-20 14:46:23 +01:00
pancake
ef03bb2f5a Another aac boundary fix 2015-11-20 00:29:16 +01:00
Riccardo Schirone
75eba76561 core/cmd_anal: check if fcn exists before renaming vars 2015-11-20 00:21:41 +01:00
pancake
c69d2cd507 Another aac boundary fix 2015-11-20 00:19:13 +01:00
pancake
7c2f9b2e03 Another aac boundary fix 2015-11-20 00:14:24 +01:00
pancake
cab996437e Fix aac default boundaries 2015-11-19 23:49:53 +01:00
Álvaro Felipe Melchor
2612fcd197 Remove unnecessary r_core_seek because of 0f94d1c 2015-11-19 23:05:09 +01:00
pancake
6027d6e44e Implement asm.relsub 2015-11-19 23:12:25 +01:00
pancake
0f94d1c562 Fix #3710 - cursor+enter in call 2015-11-19 12:23:10 +01:00
pancake
4b7328f942 Fix #3695 - Proper /R disasm colors 2015-11-19 12:11:36 +01:00
Jeffrey Crowell
7f903ce589 s/commant/comment 2015-11-18 17:32:18 -05:00
Jeffrey Crowell
d831150a8c avr is aligned on even bytes 2015-11-18 17:15:39 -05:00
pancake
ba74db8e3a Initial implementation of CC, 2015-11-18 17:03:46 +01:00
pancake
30b1fcc208 Initial implementation of the V, comma-ents stuff 2015-11-18 13:03:35 +01:00
pancake
0d9e29bd26 Fix #3704 - Handle db.. like dcu.. or s.. 2015-11-18 11:55:22 +01:00
pancake
95791f76c2 Refactor drp command and implement drps to query/set arena size 2015-11-18 11:29:48 +01:00
pancake
2b446ad88a Fix #2557 - Use same regprofile for thumb and arm in gdb debugger 2015-11-18 10:48:39 +01:00
pancake
40ab1e2be6 Fix #3701 - Implement r_num_tail for dcu 2015-11-17 22:38:01 +01:00
Dima Turchenkov
8fbe365187 Fix in aac buffer length initialization 2015-11-17 13:30:18 +01:00
Dima Turchenkov
43eb41efbe functions overlapping prevention 2015-11-17 13:30:18 +01:00
pancake
067dc20077 Optimize aac 2015-11-17 02:38:01 +01:00
pancake
f0fd83aef1 Fix regression in re-entrant analysis + references 2015-11-17 02:24:30 +01:00
pancake
8ff8b5df7b Fix cmd_pf tests 2015-11-17 02:04:38 +01:00
pancake
1364da444f More fixes in aaa and aac 2015-11-17 01:14:18 +01:00
pancake
091e3c1877 Fix in aac boundaries 2015-11-17 00:59:24 +01:00
pancake
0327c8fb97 Add dp- and autocomplete f- 2015-11-17 01:00:25 +01:00
pancake
b91eade93b Fix malloc(0) issue in /c 2015-11-16 22:15:26 +01:00
pancake
9ef50c29e7 Skip invalid and unaligned instructions in /c 2015-11-16 21:32:17 +01:00
pancake
79c844a687 Fix dmi command and issue in aap 2015-11-15 01:06:42 +01:00
Dima Turchenkov
e38e5dd5c2 One more standard prelude for x86-32/64 2015-11-13 20:47:47 +01:00
Álvaro Felipe Melchor
eee5f76d40 Fix in visual.c to follow references with 0-9 2015-11-13 19:03:34 +01:00
Álvaro Felipe Melchor
9bd735a844 Fix u/U in visual mode when scr.feedback=0 2015-11-13 18:09:59 +01:00
pancake
19ef474dd4 Fix af-* 2015-11-13 09:22:56 +01:00
pancake
9523a37b53 Autocompletion for 'z' commands 2015-11-13 01:41:09 +01:00
Jeffrey Crowell
6ea16a56f4 fix some crashes in the NES bin
cc @mossberg
2015-11-12 13:46:56 -05:00
pancake
7fd4b02ea0 Do not preserve scroll when switching to functions 2015-11-12 14:01:22 +01:00
pancake
d91df64286 Initial support for 'an' aka no-return analysis points 2015-11-12 13:47:44 +01:00
pancake
c0da7a1c9e Fix #3661 - Backup/restore scroll position on comment toggling 2015-11-12 11:06:41 +01:00
pancake
e496f574ff Fix crash introduced in bind/type check 2015-11-12 10:48:45 +01:00
pancake
2b519dee07 Fix #3599 - save/restore file map address 2015-11-12 10:33:20 +01:00
pancake
7901b57803 Fix #3684 - Do not flag LOCAL NOTYPE ELF symbols 2015-11-12 10:06:16 +01:00
pancake
0351b4479d Fix cov after mem optimizations regression 2015-11-12 00:39:51 +01:00
Udayan Kumar
4ff5f3f91a Fix #3676 - implement IP filtering in bin.strfilter 2015-11-10 22:33:19 +01:00
Jeffrey Crowell
f61ceae94c fix null deref in bin.c 2015-11-10 15:11:33 -05:00
pancake
b701626cfc Fix some clang-analyzer issues 2015-11-10 12:18:27 +01:00
pancake
2e9cc2f1b2 Fix issues with DEX flags and class methods 2015-11-09 21:47:11 +01:00
pancake
e37ada9096 Fix some asan issues with latest rbin changes in dex 2015-11-09 18:51:45 +01:00
Álvaro Felipe Melchor
8d9af55342 Fix #3628 2015-11-09 15:30:13 +01:00
pancake
45de9bc433 Shrink Imports and Strings RBin memory footprint 2015-11-09 04:41:31 +01:00
pancake
baf63a0cba Reduce RBinSymbols memory (smaller footpronum) 2015-11-09 03:41:07 +01:00
pancake
9c9bb2dbd5 Memory optimization for flags (-70%) + some warnfixes + sdb-sync 2015-11-08 23:38:42 +01:00
Riccardo Schirone
24f675e8af core/reflines: improve reflines algorithm 2015-11-07 11:23:31 +01:00
Riccardo Schirone
932ba39978 core/disasm: remove asm.linesup(date) option 2015-11-07 11:23:31 +01:00
Riccardo Schirone
f651209623 core/reflines: start cleaning up the code 2015-11-07 11:23:31 +01:00
pancake
0b9b018aed Fix issues in anal.trace and aei 2015-11-05 16:45:45 +01:00
pancake
cf395d0dc1 Fix use-after-free in ood 2015-11-05 13:39:32 +01:00
pancake
ffed819994 More disasm+analysis fixes for RISCV 2015-11-05 12:36:59 +01:00
pancake
0fdae7223a Do not show OKs in tests + minor code cleanup 2015-11-05 02:07:35 +01:00
skuater
ae3edbbf1f fixed some bugs in rcons 2015-11-03 22:30:50 +01:00
Álvaro Felipe Melchor
b1583d5b24 Fix more issues reported by clang-analyzer 2015-11-03 22:14:00 +01:00
pancake
6e01343887 Fix #3653 - asm.pcalign issues 2015-11-02 18:57:01 +01:00
Riccardo Schirone
c8804ee0a8 core/disasm: a little refactoring for show_colors 2015-11-02 15:22:44 +01:00
pancake
b0ab964303 More vulnfixes reported by clang-analyzer 2015-11-02 12:44:06 +01:00
sghctoma
35b180a484 Refresh only nodes' text instead of the whole graph when leaving prompt. 2015-11-02 12:00:21 +01:00
sghctoma
c2fb50a932 Refresh graph after using the prompt (':') 2015-11-02 12:00:21 +01:00
pancake
36179944fd Fixes Thumb detection from CPSR, NULL 2015-10-31 03:45:14 +01:00
pancake
d651c626ed Fix breakpoints on Thumb/ARM debugger 2015-10-31 03:07:00 +01:00
pancake
bfec76bfb4 More uppercasing 2015-10-31 02:20:25 +01:00
pancake
5c99eb0c3f Uppercase register aliases 2015-10-31 01:59:01 +01:00
pancake
43571c8ef5 Add $B internal var to point to the begining of the function 2015-10-30 17:16:11 +01:00
Álvaro Felipe Melchor
b2e93f5f29 Fix #3627 2015-10-30 13:08:39 +01:00
pancake
6060659d7d Fix windist for fcnsign 2015-10-30 11:20:59 +01:00
pancake
c04256f39f Export fcnsign from t* to asf 2015-10-30 03:34:40 +01:00
pancake
72b27776d7 Initial support for function signatures using pf and initial symbol tables 2015-10-30 03:07:22 +01:00
pancake
36558baf54 Add 'r2' command 2015-10-30 01:45:49 +01:00
shengdi
49bf08cba0 Added size to radiff -C output 2015-10-29 23:44:19 +01:00
Álvaro Felipe Melchor
5543f73cb1 Fix some covs 2015-10-29 23:39:49 +01:00
pancake
ec2ac9c640 Initial implementation of asm.emuwrite and asm.emu for CALL and UCALL 2015-10-29 23:37:51 +01:00
pancake
98762bf220 Fix regression in RCore.bin_load 2015-10-29 18:41:21 +01:00
pancake
97233ecbae Fix #3431 - Implement support for SMD roms 2015-10-29 13:55:03 +01:00
pancake
365d089eb8 Fix #3557 - V_ is the new VF_, old one is in V?? 2015-10-29 12:54:19 +01:00
pancake
4756e610d9 Add RBin.srcdir and dir.source for asm.dwarf 2015-10-29 12:37:14 +01:00
pancake
079a679de6 Fix #3605 - infinite print loops in m68k and mcs96 2015-10-29 12:02:06 +01:00
pancake
894fa1cdf8 Do not abuse rcons for asm.emu.syscall 2015-10-29 11:54:00 +01:00
pancake
6a85a44962 Handle syscalls in asm.emu, better debug.arg and osx-syscalls 2015-10-29 11:22:49 +01:00
Riccardo Schirone
fe02223754 core/core: fix out of bound read when using non existing asmqjmps
core/graph: fix HJKL/hjkl help
2015-10-29 08:41:24 +01:00
Riccardo Schirone
dcb5cbfe1a core/core: return UT64_MAX when shortcut is not valid 2015-10-28 21:07:11 +01:00
pancake
52cfe459a0 Enhance te command. Autocomplete and partial args working 2015-10-27 12:41:09 +01:00
pancake
aa7e041fd0 Fix #3580 - aarj output was invalid 2015-10-27 12:11:21 +01:00
Riccardo Schirone
1ce7c419d4 core/graph: rename commands and seek on debug only when node changes 2015-10-26 20:19:52 +01:00
Riccardo Schirone
efc5f8d917 core/graph: fix segfault when returned list has length 0 2015-10-26 14:39:54 +01:00
pancake
02e719fafe Aim to fix eeaf87ece627fe94f92f836ac3467ffd @revskills dyldcache crash 2015-10-26 03:45:54 +01:00
pancake
b312439484 Fix #3476 - wf support offset and size parameters 2015-10-26 03:29:57 +01:00
pancake
1641acb11f Fix #3521 - keep asm.bits across reopens 2015-10-26 03:08:39 +01:00
pancake
798de76fc2 Initial autocompletion support for #!pipe 2015-10-26 02:42:08 +01:00
Riccardo Schirone
14c0f656fe core/graph: rethink commands
* add :cmd and / commands to the help
* use r to refresh the whole graph, not only update the layout
* use pd instead of pi in callgraph mode
* remove 'O' and 'p' commands
* use 's'/'S' instead of 'z'/'Z' for step/step over
* use page up/down to go to the top/bottom of the graph
* use 'C' to toggle asm.comments
* remove 'c' because it will be used for the cursor inside a node (TODO)
* remove 'e' because diagonal lines are broken
* use 'p'/'P' to switch between print modes (normal, normal with offset
  and bytes, esil, esil with offset and bytes, small nodes)
2015-10-25 23:56:22 +01:00
sghctoma
78701a8888 On project load seek to saved offset rather than entry0. 2015-10-25 11:55:15 +01:00
sghctoma
24e5d0583b Fixed afb+ commands emitted by afl*. 2015-10-25 11:55:15 +01:00
pancake
0f541befd7 Fix some recent regression in cmd parsing 2015-10-25 03:34:51 +01:00
pancake
63fa578363 Fix #3585 - Implement cp and mv #syscmd 2015-10-25 02:32:22 +02:00
Maijin
30209a3f4b Add mrwx in Section help
Add mrwx in Section help
2015-10-25 00:32:58 +02:00
pancake
21fe9f1fa9 A bit deeper zerosep 2015-10-24 23:25:56 +02:00
pancake
880821634f Refactor zerosep for r2 -0 2015-10-24 22:49:12 +02:00
Jeffrey Crowell
523948cb32 fix ddr segfault 2015-10-24 15:51:11 -04:00
deffi420
0a42eb1501 Fix parsing of aar[?*j] commands 2015-10-24 12:42:53 +02:00
pancake
74ec59d624 Fix workaround for /R/ 2015-10-24 02:41:43 +02:00
pancake
f3ddfbb9ec Fixes for RRegex, Use r_regex_match(), comp+exec seems buggy 2015-10-24 02:06:45 +02:00
pancake
c1cdaf3d16 Fix RLang.r2pipe regression 2015-10-23 22:27:04 +02:00
Álvaro Felipe Melchor
764eb84be6 Fix #2905 - Handle _ in Ve 2015-10-23 17:12:55 +02:00
pancake
77d34628d7 Fix @b: 2015-10-23 17:11:04 +02:00
Álvaro Felipe Melchor
0028756c81 added name_filter to bin.prefix 2015-10-23 14:57:36 +02:00
pancake
888c05d31f Fix some recent covs 2015-10-23 12:07:07 +02:00
Riccardo Schirone
70669bafc0 bin/bin: do not filter out non-pie binaries when using baddr 2015-10-23 10:55:13 +02:00
pancake
6c4bfb94b1 Fix windist, r2pipe and plugins paths 2015-10-23 02:58:48 +02:00
pancake
2377f38d51 Fix (null) in ls -l 2015-10-23 01:39:47 +02:00
Álvaro Felipe Melchor
14a775f14f Fix #3509 - bin.prefix option 2015-10-22 23:36:43 +02:00
pancake
992cf9eef7 Fix #3555 - Support pf.k=v syntax 2015-10-22 17:39:05 +02:00
pancake
dcbddab6e3 Initial support for pfd and better pf autocompletion 2015-10-22 17:19:33 +02:00
Jeffrey Crowell
511b82e796 add json doc to abj 2015-10-22 09:18:45 -04:00
pancake
b08add890a Fix the 80/96/128 fpu reg value issue 2015-10-22 13:38:30 +02:00
pancake
ac65ff95b1 Implement @@dbt* maybe dup for @@='dbt..' 2015-10-22 13:08:05 +02:00
pancake
0b92947b30 Make dbt= @@=-friendly 2015-10-22 12:53:34 +02:00
pancake
2c86d90bd8 Implement dbt* and extend backtrace to support stack frame addresses 2015-10-22 12:38:57 +02:00
pancake
3de77ad6e6 Initial support of dbg.libs/unlibs for Linux/OSX 2015-10-22 04:48:56 +02:00
pancake
31737e3ecf Fix #3541 - Implement oonn+ command 2015-10-22 03:20:30 +02:00
pancake
a05ac7eaa4 RDebugPlugin.arch.typeof(char*) 2015-10-22 03:11:03 +02:00
pancake
1b88200e31 Add support for 'interpreter' in RBin, ELF and MACH0 2015-10-22 02:13:26 +02:00
pancake
680d354942 pv prints values and p- is the new pv thing 2015-10-22 00:49:07 +02:00
pancake
366ba23b30 Fix ab88f42f9b mach0 crash (reported by @revskills) 2015-10-21 23:46:41 +02:00
Jeffrey Crowell
541e2dd132 fix DEADCODE thanks coverity 2015-10-21 12:29:29 -04:00
Anton Kochkov
a67f7d6d8a Fix the memleak 2015-10-21 17:44:59 +03:00
pancake
0fd1733279 Fix pIf regression 2015-10-21 15:56:03 +02:00
pancake
78cb412a6d Fix a null deref in some class fuzz case 2015-10-21 12:48:16 +02:00
pancake
461b714503 Fix objc heap overflow class parsing bug 2015-10-21 12:19:19 +02:00
pancake
347c10c770 Implement 'oonn' command 2015-10-21 02:31:00 +02:00
pancake
f64077871a Fix q regression 2015-10-21 01:57:56 +02:00
pancake
620d47675f Workaround for the fixedblock issue 2015-10-21 01:51:34 +02:00
pancake
3fd5fb4ed2 Fix pDi 2015-10-21 01:36:24 +02:00
pancake
005c022f63 Minor code cleanup for pdc 2015-10-21 01:20:54 +02:00
pancake
c48f769773 Escape import names 2015-10-21 01:05:24 +02:00
pancake
c59ea904e5 Fix #3532 - visual prompt always at bottom 2015-10-21 00:57:15 +02:00
pancake
6fe72bc3ad Fix #3533 - demangle imports 2015-10-21 00:54:32 +02:00
pancake
79d212eafa Fix pdi 2015-10-21 00:26:32 +02:00
pancake
84bd6df03f Fix asm.filter in pi command 2015-10-20 23:48:34 +02:00
Álvaro Felipe Melchor
81da404c4e Fix #3527 2015-10-20 22:54:20 +00:00
jvoisin
c4a930aeff Implement iLj 2015-10-20 14:30:52 +02:00
Riccardo Schirone
8e6eaf2f71 core/graph: remove eprintf for @Maijin 2015-10-20 11:04:21 +02:00
Jeffrey Crowell
08b8ced5a2 fix the rop search w/o regexp
this was broken for ages, wtf...
2015-10-20 05:02:18 -04:00
Riccardo Schirone
0951d51a45 core/anal: use r_bin_get_vaddr instead of raw vaddr and paddr fields 2015-10-20 00:39:19 +02:00
jvoisin
1d485ea927 coverifix 2015-10-19 23:31:36 +02:00
pancake
ff83c0eb48 asm.calls=false by default, handle BRK/STP/LDP in arm64 analysis 2015-10-19 15:10:26 +02:00
pancake
45c7c923af Better dtc, demangling support. Handle RABIN2_LANG, and more c++ autodetect
* r_name_filter(len:-1) strlens the string
* Show symbol names in `dtc` (calltracer)
2015-10-19 13:21:12 +02:00
Jeffrey Crowell
58ee21e776 make dcu <flag> work on PIE binaries 2015-10-19 05:08:50 -04:00
pancake
0cfddf6961 Add more autocompletion for S command 2015-10-19 03:18:19 +02:00
pancake
e9672f5fbc Fix dbt symbols 2015-10-19 03:13:42 +02:00
pancake
52ffe7b44b Autocomplete 'fs' 2015-10-19 02:51:30 +02:00
pancake
1b5cd887ce Disobey rabin2 -B if bin is not pie, enhace dmm* and mach0 2015-10-19 02:41:21 +02:00
pancake
6a317977ae Fix #3470 - Implement mkdir -p 2015-10-19 00:33:22 +02:00
pancake
6ed80ae39b Update sdb and rename rmkdir->mkdirp 2015-10-19 00:25:39 +02:00
pancake
c02d30fc12 Fix #3507 - infinite a2f loop 2015-10-18 23:48:29 +02:00
pancake
b111057798 Fix #3505 - analyze cmovs a bit 2015-10-18 22:14:06 +02:00