Commit Graph

24911 Commits

Author SHA1 Message Date
pancake
ccd79d9e36 Add a dummy bpf pseudo plugin ##disasm
* rename Parse.justify() to Str.fixSpaces()
* Fixes portability of testsuite
2022-10-06 20:32:30 +02:00
pancake
29362b4c71 Handle -HH in r2pm for verbose env listing and remove unused R2PM_GITSKIP ##r2pm 2022-10-06 20:32:30 +02:00
pancake
fac19dcc2a Add RParse.justify() to easily fix commas and spaces ##disasm 2022-10-06 20:32:30 +02:00
pancake
22bec6b0e0 Also trim the trailing spaces on the x86 pseudo 2022-10-06 20:32:30 +02:00
pancake
ccd4fd7911 Fixes pull/install/uninstall on windows ##r2pm 2022-10-06 20:32:30 +02:00
pancake
72903225b2 Better spacing in arm.pseudo parse plugin ##disasm
* Ensure proper spacing after commas and no trailing space
2022-10-06 20:32:30 +02:00
pancake
361a6ea47a Fix arm64 plugin to work well with latest arm64 changes in capstone ##arch 2022-10-06 20:32:30 +02:00
pancake
e1ba0de188 Fix race condition in x86.esil generation, fix crappy C
* last gcc reported warnings in this code
* it was not really possible to overflow the buffer
* but the global variable and sprintf+strcpy code was pure crap
2022-10-06 17:06:43 +02:00
pancake
44d1fcf05b Honor bin.minsz in /az is no argument is provided ##search 2022-10-06 16:33:05 +02:00
pancake
bc229b8f77 Implement /azq to search for assembly strings and add tests ##search 2022-10-06 16:33:05 +02:00
pancake
ba39542666 Implement the new /az command to find assembly constructed strings ##search 2022-10-06 16:33:05 +02:00
pancake
0749272434 Warn about unpatched relocs when no bin.cache is set for macho fixups ##bin
* Use R_LOG for elf and rel fileformats
2022-10-06 14:15:45 +02:00
pancake
712f9f8d94 Code cleanup using RStrBuf instead of Rbuf in the java demangler 2022-10-06 14:00:02 +02:00
pancake
8aeae89831 Fix console history log path regression ##cons 2022-10-06 13:10:19 +02:00
Francesco Tamagni
49f9dddf47 Keep structs aligned 2022-10-06 12:07:49 +02:00
Francesco Tamagni
d67e569ace Add support for 32bit Mach-O fixups ##bin 2022-10-06 12:07:49 +02:00
pancake
c21bb3b999 Add base64 support to the T and T* commands ##logs 2022-10-06 12:06:28 +02:00
pancake
ee8b803c4e Implement Tv command and use it from VT ##visual
* Visual textlogs are now a thing!
2022-10-06 12:06:03 +02:00
pancake
9f6afce36d Fix return code when doing r2pm -U 2022-10-06 12:05:30 +02:00
pancake
2fc42f9a7d Initial implementation of ?ie ##shell
* Require scr.interactive in `?ip`
2022-10-06 11:48:33 +02:00
pancake
23ff2b4247 Add missing help for the '?i?' command ##shell 2022-10-06 11:42:20 +02:00
pancake
228afa6344 r2pm -Ui can be combined now and fix extras package building ##r2pm 2022-10-05 23:18:38 +02:00
pancake
dfa4e4096e Honor R2PM_DBDIR env var ##r2pm 2022-10-05 22:58:45 +02:00
pancake
b59112bc6c Honor -f in r2pm -U to force clean the r2pm db ##r2pm
* Dont copy files up and down, just use the repo
2022-10-05 22:58:45 +02:00
pancake
2e61d2b4f4 Add RStr.ansiStrip() and RStr.insert() ##util 2022-10-05 22:12:52 +02:00
pancake
48378ddab9 Fix memleak in the reloc fixups patcher 2022-10-04 19:00:55 +02:00
pancake
4d31bbb7fe Minor RLOG/bool changes spotted in visual and heap code 2022-10-04 19:00:55 +02:00
pancake
0960ef4586 Expose the macho reloc fixups and use internal buffer for parsing ##bin
* 7x faster, remove 4 globals, fix uaf, stack exhaustion and race condition bugs
2022-10-04 15:53:05 +02:00
pancake
643c2439eb Use more R_LOG in RBin.macho 2022-10-04 15:53:05 +02:00
pancake
c0b50cb084 Improve internal RBuffer API checks ##util 2022-10-04 15:53:05 +02:00
condret
2fbe002ddd Handle reloc maps properly in r_io_map_remap and r_io_map_resize ##io 2022-10-04 11:07:18 +02:00
pancake
e372505a3b Fix obf and add tests for it ##bin 2022-10-04 11:05:29 +02:00
condret
840020a5e9 Fix reloc map memleak ##io 2022-10-04 10:25:11 +02:00
Dennis Goodlett
25f4f51384 Add log error when pj depth limit reached ##util 2022-10-03 23:21:46 +02:00
condret
1070465967 Add rio reloc maps ##io 2022-10-03 21:17:07 +02:00
condret
20942d1a2e Copy anal_amd29k.c to rarch ##arch 2022-10-03 13:05:30 +02:00
condret
db1a5d132b Change arch plugin definition ##arch 2022-10-03 09:17:33 +02:00
condret
a2298af23b Add some more arch config vars ##arch 2022-10-03 09:17:33 +02:00
condret
727c766a3a Introduce arch.endian config var ##arch 2022-10-03 09:17:33 +02:00
condret
799b1939d9 Avoid using RArchConfig->big_endian ##refactor 2022-10-03 09:17:33 +02:00
condret
4e92945241 Instantiate RArch in anal ##arch 2022-10-03 09:17:33 +02:00
Dennis Goodlett
1181497bfc
Fix long1,long4 pickle opcodes ##anal 2022-10-01 11:43:58 +02:00
pancake
32e947ba1e Add missing rvc.h for the meson.build 2022-10-01 01:29:50 +02:00
pancake
f0b4fff1cf Fix Cd4[ invalid syntax used in macho _const section ##bin
* Causes a silent warning, bug found via log.level=10
2022-10-01 01:29:50 +02:00
pancake
0af589c194 Expose the id_dylib macho command info into the bin kv ##bin
* Fix "unknown command" harmless warnings on some binaries
2022-10-01 01:11:02 +02:00
pancake
5d6ae50e2d Fix last covs 2022-09-30 14:07:45 +02:00
pancake
ae108d7a69 Add R_UNUSED_RESULT and use it to avoid unnecessary -Wunused-result warnings 2022-09-30 12:48:29 +02:00
pancake
a9fb40057b Fix r2 -d foo\bar.exe and r2 -d bar.exe on windows ##debug 2022-09-30 11:41:54 +02:00
pancake
b3ba7a0d2e Support XDG on r2pm and expose the PKG_CONFIG_PATH ##r2pm 2022-09-30 11:36:02 +02:00
Sylvain Pelissier
ce9fd67796 EVM: use sdb_num_nget and sdb_num_nset functions 2022-09-29 18:48:22 +02:00