Commit graph

634 commits

Author SHA1 Message Date
Dennis Goodlett
83418323e0
Bestmatch ##signatures (#16977)
* implment basic concept signature bestmatch
* bestmatch works without zignspace
* zb shows top n closet matches
* add tests for zb command
* return list from r_sign_find_closest_sig

Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
Co-authored-by: pancake <pancake@nowsecure.com>
2020-06-12 10:58:27 +08:00
Alexis Ehret
fa7b8ea87b
Move DT_NEEDED in RBinElfDynamicInfo and remove dyn_buf (#17009) ##elf 2020-06-11 10:50:54 +02:00
Khairul Azhar Kasmiran
a934a39236
pfc: Support n# (#17011) ##print 2020-06-08 19:29:21 +08:00
Khairul Azhar Kasmiran
f3c227ee88
elf64 pf.elf_header: w -> N2 for phnum, shnum, shstrndx, ehsize, phentsize and shentsize (#16992)
* elf64 pf.elf_header: w -> N2 for phnum, shnum, shstrndx, ehsize, phentsize and shentsize
* Add support for 'N' to pfc
2020-06-02 10:27:58 +08:00
Khairul Azhar Kasmiran
fc4ea0f9a6
elf32 pf.elf_header: w -> N2 for phnum, shnum, shstrndx, ehsize, phentsize and shentsize (#16978)
* elf32 pf.elf_header: w -> N2 for phnum, shnum and shstrndx
* elf32 pf.elf_header: w -> N2 for ehsize, phentsize and shentsize
2020-06-01 12:33:42 +08:00
Khairul Azhar Kasmiran
1cb18df8b4
ahi 10 does signed decimal with 32-bit gp regs + ahi 10u for unsigned decimal (#16970)
* ahi 10 does signed decimal with x86 32-bit regs + ahi 10u for unsigned decimal
* Use arch-independent r_reg api instead
2020-05-30 01:31:22 +08:00
Khairul Azhar Kasmiran
c9eceab2d6
Fix prc handling of single-char flags (#16942)
* Base test output

* Fix prc handling of single-char flags

* Remove unneeded name and *name checks
2020-05-25 23:05:37 +08:00
GustavoLCR
146c788fa0
Improve BP vars/args detection ##anal (#16935)
* Take into account initial BP position in stackframe
* Add reg name to RAnalVarAccess
* Add `anal.vars.stackname` config variable
* Fix riscv op/src imm info filling
* Fix getting BP vars if it is set with LEA
* Fix arg detection for functions that call __chkstk
* Fix tests

Signed-off-by: GustavoLCR <gugulcr@gmail.com>
2020-05-25 12:55:31 +08:00
Khairul Azhar Kasmiran
fea70914e8
Fix @@s 'to' param so that it's inclusive (#16936)
* Fix @@s 'to' param so that it's inclusive

* Fix newshell
2020-05-22 22:43:58 +08:00
Sylvain Pelissier
cb586c8ced
Update woE and woD functions (#16920)
* Update woE and woD functions
* Correct arugments of r_core_write_at
2020-05-21 12:16:11 +08:00
Khairul Azhar Kasmiran
055ee0474a
Add pxe test + convert prc_256.py to pure r2 (#16838) 2020-05-18 15:52:18 +02:00
GustavoLCR
95ba22b5c2
Detect register args used only by callee ##anal (#16830)
* Detect register args used only by callee ##anal
* Fill src/dst op info for RISC-V
* Use op src/dst info in extract_arg
* Fix for reg arg detection on arm/riscv
* Fix test
* Fix SPARC reg profile
* Get op->dst/src from RReg for x86
* Detect variadic functions for AMD64 CC
* Don't get args from callee if it is variadic
2020-05-17 12:08:49 +08:00
pancake
ecb3fc4b13
Fix crash in 'C{fd..}.', reproducible with r2dec (#16823) 2020-05-14 11:02:41 +02:00
Paul I
ae45c06ae3
Reset anal regs in every iteration of aaft (4-10% faster) (#16786) ##anal
* Also removes aeim-;aei- calls at the end of the loop
2020-05-14 02:47:36 +02:00
pancake
c6597bb34e
Implement the pci command print the C byte array + instruction comments ##disasm (#16792) 2020-05-13 18:44:02 +02:00
pancake
89cfe05d2d
Add axv and afvx and afv= to visualize var R/W accesses ##anal (#16516) 2020-05-13 15:59:05 +02:00
Sylvain Pelissier
941d03a6aa
Add one more word in AES key search and merge Sbox (#16811) 2020-05-12 11:58:26 +08:00
GustavoLCR
0b231619ab
Match args name/types from function definition ##anal (#16795)
* Fix type propagation with mixed stack/reg args
* Change r_type_get_bitsize to return ut64
2020-05-10 19:41:51 +02:00
Florian Märkl
edf1be10d1
Refactor Meta out of SDB (#16716) 2020-05-09 20:49:28 +02:00
GustavoLCR
4fa630cbed
Add default_cc to RBinInfo (#16773)
This fixes having to use afc=ms to set the correct cc to 64bit PE files
Add test for detecting cc on 64bit PE
2020-05-06 12:00:46 +08:00
Francesco Tamagni
e1ae1c7e5c Tweak tests for DWARF 2020-05-05 18:47:23 +02:00
Óscar Carrasco
990a6dfa23
Fix #16343 - Do not generate numeric structs from unnamed typedefs in "ts" ##types (#16485) 2020-05-05 15:51:17 +02:00
Florian Märkl
d7258113d9
Add Tests for MSVC VTables and RTTI (#16754) 2020-05-02 18:34:03 +02:00
Khairul Azhar Kasmiran
4ba026258e
bin.str.enc=utf8: Assume ASCII first 🇺🇸 + add some more tests (#16735) ##bin 2020-05-02 18:15:13 +02:00
Khairul Azhar Kasmiran
670e087795
Fix #16543 - bin.str.enc affects izz + ascii is now alias for latin1 (#16720) 2020-04-26 22:17:41 +08:00
Florian Märkl
b935803385
Refactor Variable comments from SDB into RAnalVar (#16715) 2020-04-25 17:23:36 +02:00
Riccardo Schirone
8e9bbc9b15
Support relative temporary seek in cfg.newshell (#16693)
* Support relative temporary seek in cfg.newshell
* Add test for relative temporary seek
2020-04-24 11:23:55 +02:00
karliss
ccb3ae0fac
Don't start panel mode when noninteractive. (#16701) 2020-04-23 23:34:02 +03:00
Riccardo Schirone
2d3be881cb
Handle 'q' to interrumpt prompt in newshell ##newshell (#16681) 2020-04-22 21:48:43 +02:00
Riccardo Schirone
c00fabddc5
Enforce newshell build from now on (#16639) 2020-04-19 21:00:06 +02:00
Riccardo Schirone
784aa48c05
Fix cmd_substitution in grep_specifier ##newshell (#16625)
* Allow cmd_substitution in grep_specifier and set core->tmpseek
2020-04-18 11:07:25 +02:00
Florian Märkl
dcf0c7049f
Chop Basic Blocks instead of re-analyzing in noreturn propagation (#16612) 2020-04-17 19:51:47 +02:00
Florian Märkl
dae5bb43ee
Add a test for noreturn propagation (#16611) 2020-04-16 18:48:20 +02:00
pancake
346eb5bd38
Move test/new/* into test/ ##tests (#16511) 2020-04-13 19:49:23 +02:00