1648 Commits

Author SHA1 Message Date
pancake
664e8800d6 Remove all the deprecated abi apis 2022-04-19 15:40:29 +02:00
pancake
41a2d144e5 Add afci command and improve afc? help message
* Document `afcll` command.
2022-04-19 15:40:29 +02:00
pancake
a9c8b8914c Show proper error when no function found in afv ##shell 2022-04-19 15:40:29 +02:00
pancake
f933c5e86c Show args before vars in afv summary also in pd ##disasm 2022-04-18 23:47:18 +02:00
mdolmen
a58b8d4e2e
Fix aeabj output which returned different information than aeab ##json 2022-04-17 01:01:49 +02:00
Apkunpacker
6d0bf405ac
Lowercase all the help messages for consistency ##shell 2022-04-11 11:09:41 +02:00
pancake
b023f737bb Use standard help api for aeim too ##shell 2022-04-10 18:20:18 +02:00
pancake
7821ddb04b
Skip more types of call instructions on linear emulation ##analysis 2022-04-08 23:16:38 +02:00
pancake
708e59b8a1
Add r_core_return_code() and use it ##shell
* Still WIP, but good to go if passing tests
* It's a macro that is only used internally for code clarity
* Ship RCmd.returnValue into RCore.num.value in some situations
2022-04-08 23:15:39 +02:00
pancake
6ffe920cf9
Add missing 'direction' field in the output of aoj ##analysis 2022-04-02 13:42:46 +02:00
Sergi Àlvarez i Capilla
9857ac6d4e Add tests for return value emulation 2022-03-30 17:56:35 +02:00
Sergi Àlvarez i Capilla
d479933909 Fix aeim on --without-debugger builds ##emulation 2022-03-30 00:04:30 +02:00
condret
c01f010b8b Fix misleading help msg (aho is not deprecated) 2022-03-29 15:38:55 +02:00
condret
a5987118c5 Fix string representation of optypes of aho command 2022-03-29 15:38:55 +02:00
Sergi Àlvarez i Capilla
fd1c5bd07e ar command using ->anal, otherwise for non-debug builds that fails ##analysis 2022-03-29 15:35:27 +02:00
Sergi Àlvarez i Capilla
3dfe264004 Fix 'aeb' emulating the right instructions ##esil 2022-03-29 15:35:27 +02:00
pancake
982daa3d54
Allow abt to handle addresses in the middle of basic blocks ##analysis 2022-03-29 11:35:38 +02:00
Sergi Àlvarez i Capilla
4431b392e3 Handle addresses in the middle of basic blocks in abf ##analysis 2022-03-29 01:15:25 +02:00
Sergi Àlvarez i Capilla
90caf26cb2 Fix null deref in abf 2022-03-29 01:08:30 +02:00
Sergi Àlvarez i Capilla
aa85fb154b Implement 'abf' command to list incoming bbs ##analysis 2022-03-29 01:02:40 +02:00
pancake
691bdd0472 Initial implementation of the aavr command ##search
* Find relative references using Apple's Swift pointer mangling
* Add aav? help message
2022-03-27 12:23:58 +02:00
pancake
467a2ecaab Run 'aap' before 'aae' on arm64 binaries in 'aaa' ##analysis
* No need for `aaaa` to get more functions and xrefs!
* aaef is executed instead of `aae`. so it will miss refs
2022-03-24 14:55:20 +01:00
Sergi Àlvarez i Capilla
607134947e Honor esil.maxsteps in more commands and stop earlier when no =PC ##esil 2022-03-23 13:02:55 +01:00
Sergi Àlvarez i Capilla
969e1c141e Break emulation when register profiles don't provide enough info 2022-03-23 13:02:55 +01:00
Sergi Àlvarez i Capilla
50b8813f1d Fix w64blob artifact name for the release
* Fix meson -Dplugins=arm reg profile issue
* Fix an infinite loop when emulating with no valid regprofile
2022-03-22 20:06:43 +01:00
pancake
db253cab01 Fix #19833 - Fix asserts in aor 2022-03-22 14:56:02 +01:00
pancake
19ae07accf Implement 'aeb' using APIs instead of commands ##esil 2022-03-22 12:01:50 +01:00
pancake
df6c68e150 Add aaepa command to set all unknown imports as ret0 ##esil 2022-03-16 16:38:08 +01:00
pancake
3020803a39 Fix aecs and add test emulating hello world without libc ##esil 2022-03-16 15:33:03 +01:00
pancake
c7f9503e72 Add aaep and extend aep to support pin specific commands ##esil
* Implemented few basic libc calls in pure r2 commands
2022-03-16 15:33:03 +01:00
pancake
cffad47c88 Improve help message for psz, aek, aae, aep, aer and aex commands ##shell 2022-03-16 15:33:03 +01:00
pancake
f8a35da205
Dont use != NULL as its implicit in C, even for bool casts ##refactor
$ find binr libr -name "*.c" -exec sed -i -e 's/ != NULL//g' {} \;
2022-03-15 19:54:04 +01:00
Sergi Àlvarez i Capilla
f44932aafa Add afiq for quiet functino info and refactor the anal/abi.inc ##analysis 2022-03-15 11:40:03 +01:00
Lazula
d507bda91c Remove R_EMPTY and R_EMPTY2 2022-03-13 11:26:10 +01:00
aandersonl
947cae8599 Adds afva in all fcns flags (if any) ##analysis
* Analyze vars only if variable `anal.vars` is set adds some tests for variable/arguments analysis fix in anal/mips
* Fix get_config as boolean and use expressions for analyze all functions
2022-03-09 16:56:07 +01:00
Sergi Àlvarez i Capilla
9b124ff09e Skip afva on functions with signature registered ##analysis 2022-03-09 16:56:07 +01:00
Dennis Goodlett
5690f1c1e7 Add mermaid output to all ag commands ##anal 2022-03-05 09:48:57 +01:00
pancake
cf780fd055
Add an* and fix many other conceptually broken logics in an ##analysis 2022-03-04 10:08:39 +01:00
Lazula
b5a26e0c0c
Significantly reduce memory leaks in anal tests (#19759) 2022-02-27 14:57:58 -06:00
pancake
3cc4e1c9e5 Add aot command to show instruction types (like /atl) ##shell 2022-02-27 20:20:24 +01:00
pancake
76f868166b Add proper help for the aom command 2022-02-27 20:03:04 +01:00
Dennis Goodlett
b6b56e700a Handle jump tables in agfm ##anal 2022-02-20 14:10:26 +01:00
Dennis Goodlett
f36e518cde
Add agfma to get assembly in mermaid graphs ##anal 2022-02-20 09:59:42 +01:00
Dennis Goodlett
eccee9beb7
Add agfm command to print cfg graphs using mermaid syntax ##analysis 2022-02-18 12:31:32 +01:00
Sergi Àlvarez i Capilla
46a69a5014 Fix all the latest covs which spotted new findings 2022-02-15 12:05:50 +01:00
Dennis Goodlett
249222cfe7 Simpler var counting API ##analysis 2022-01-31 01:46:54 +01:00
pancake
5d564eff75 Fix helps for aan? aaf? and aes? ##help 2022-01-21 20:26:37 +01:00
pancake
e5b1ca27ac Fix help for the 'aaa' subcommands ##help 2022-01-21 20:26:37 +01:00
pancake
f2995c2949
Introduce r_strf and stop using sdb_fmt ##util 2022-01-18 18:35:31 +01:00
Lazula
40c119e20a Free fi in cmd_esil_mem() 2022-01-15 16:42:34 +01:00