Commit Graph

252 Commits

Author SHA1 Message Date
pancake
0b9fe83605 Fix more bugs in /ck tire ##search 2024-08-19 10:40:04 +02:00
pancake
1e1053af22
Better bin.str.(min/max) defaults ##bin 2024-08-17 20:29:40 +02:00
pancake
b3b7cc0650 Fix oobread in /ck for search/tire ##search 2024-08-17 20:19:58 +02:00
Sylvain Pelissier
3270166fa3
Add ed25519 private key search ##search 2024-08-14 17:39:14 +02:00
satk0
ebd8bf9042
Replace r_return_val_if_fail with uppercase alternative 2024-08-05 12:26:32 +02:00
pancake
3b18a26b43 Show offset of the truncated large strings ##search 2024-06-11 09:20:51 +02:00
pancake
4134dfd6fe Fix stack overflow in strings search ##crash 2024-05-31 01:43:39 +02:00
pancake
c9469af1fd Fix non-null terminated string in string search hits 2023-06-06 22:37:03 +02:00
pancake
2d37fdf7a4 String search no longer requires a keyword ##search 2023-06-04 04:05:38 +02:00
pancake
0a7030ff1d Apply section formats in a second iteration ##bin
* Fixes the case when maps are required for the command
2023-06-04 04:05:38 +02:00
Lazula
22d71f931a Remove RList.get_top and RList.get_bottom 2023-03-03 10:14:51 +01:00
pancake
854add556e Fix XDG path for Windows 2023-02-18 01:25:38 +01:00
pancake
699f9d8651 Add lint for ==' to improve code readability 2023-01-16 13:43:38 +01:00
Dennis Goodlett
4ac061a046
Implement tire algorithm in ##search (#21245)
* Use tire search for /ck
2023-01-15 00:46:34 +01:00
pancake
12875deeb9 Add the arch.preludes() callback and new RSearchKeyword constructor ##arch 2022-12-18 23:24:44 +01:00
pancake
19a377bbda Fix and move failing tests, reorder lib build ##arch 2022-11-30 15:43:54 +01:00
pancake
aa536ce554 Speedup tcc builds by not using -g ##build 2022-11-23 11:22:43 +01:00
pancake
9cef5d68ee
Fix /w and /wi, add tests, minor code cleanup ##search 2022-10-29 01:17:08 +02:00
pancake
b757488cf8 More linting rules 2022-10-09 01:04:13 +02:00
Sylvain Pelissier
9eb97ec14b Separate SM4 algorithm from plugin ##crypto 2022-09-15 16:28:38 +02:00
Sylvain Pelissier
4a01f475f3 /ca update help message and add block cipher parameter
/ca initial SM4 key search implementation

Add SM4 key search test

Refactor cmd_search.c to have common code for key search.
2022-09-15 16:28:38 +02:00
Alex Bender
12ea8be2ed Change the way TODO messages are printed from eprintf to R_LOG_TODO 2022-09-15 04:07:29 +02:00
pancake
0c26327f9d Remove all global variables in rahash2 ##tools 2022-09-10 11:11:43 +02:00
pancake
7a35f03471 More source spacing linting 2022-08-18 14:37:29 +02:00
pancake
a538b2b700 Add =0 and =1 lintings 2022-08-18 13:58:40 +02:00
pancake
52a22ab995 Add lint for \tfree( 2022-08-18 10:27:06 +02:00
pancake
41cf0bcf39 Add the 'i<' lint 2022-08-18 10:27:00 +02:00
Richard Patel
b78855c38d Refactor a few eprintf 'Cannot …' to R_LOG_ERROR 2022-08-01 16:46:46 +02:00
pancake
fec0a64b41 Fix #20439 - rafind2 -V search for values like in /v ##tools 2022-07-31 19:56:39 +02:00
Richard Patel
363df75c06
Replace some instances of eprintf with R_LOG_ 2022-06-28 02:49:42 +02:00
Sylvain Pelissier
5718360c03 Improve /ca speed and add JSON output for crypto function 2022-04-25 14:19:54 +02:00
pancake
c8ae21f68f
Only build library archives when -Dblob is provided ##build
* Lowers the amount of objects from 2400 to 1500
2022-03-22 11:59:13 +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
Lazula
d507bda91c Remove R_EMPTY and R_EMPTY2 2022-03-13 11:26:10 +01:00
Sergi Àlvarez i Capilla
aef278ee9c Make -Dblob=true statically link all r2 libraries ##build 2022-03-02 11:30:28 +01:00
Dennis Goodlett
2a117d5f4f
Add Rabin Karp algorythm to ##search 2021-12-30 10:30:30 +01:00
Dennis Goodlett
d76bb693f2 Add r_search_maps to ##search 2021-12-30 10:30:13 +01:00
Dennis Goodlett
f8f9599154
Move /e to new search API ##search
* Move global var to struct
* Add r_cons_is_breaked
* Use RConsBind
2021-12-23 00:36:51 +01:00
Lazula
ad749a0b1a Fix static/R_API function definition formatting
* Remove spaces before parens
* Remove spaces after asterisks
2021-12-21 20:58:12 +01:00
pancake
575c26f329 Fix some format string warnings in the mingw ci job 2021-12-21 00:31:28 +01:00
Dennis Goodlett
df77191f9d
Fix bug in regex searching ##search 2021-12-19 16:56:09 +01:00
Dennis Goodlett
847f567be7
Add longest field to RSearch ##search 2021-12-16 12:47:23 +01:00
Dennis Goodlett
df32fd1725
Add r_search_upate_read API ##search 2021-12-16 12:45:48 +01:00
Sergi Àlvarez i Capilla
f50678328b Address dead code in widechar search spotted by coverity 2021-12-13 23:43:29 +01:00
Dennis Goodlett
25fa4328db
Cleanup public API for ##search (#19477)
* Remove unsed API
* Remove r_search_update_i
* Implementation of r_search_update_i was just returning r_search_update.
* Remove unused r_search_xrefs_update
* Remove r_search_magic_update from public API
* Move update functions out of public API
* Remove unused r_search_bmh API
* Rename search update functions
* Add R_IPI to internal functions
2021-12-12 11:46:46 +01:00
Dennis Goodlett
56c35e0015
Update defines how data is free'd ##search 2021-12-06 12:06:25 +01:00
pancake
e6f2cd0b2a
Remove trailing spaces (#19460)
$ git grep ' $' | grep -v ^test/ | cut -d : -f 1 | sort -u > /tmp/trailing
$ for a in `cat /tmp/trailing` ; do sed -i -e 's/ *$//' $a ; done
2021-12-02 17:39:59 +01:00
Lazula
2255bf8b5d Many indentation style fixes
* Change several 8-space indents to tabs
* Apply tab indent style when breaking long lines
* Move operators from EOL to start of next line
* Fix ternary formatting
2021-11-18 10:43:52 +01:00
pancake
9046aa2ebf
find | mv s/-/_/g (#19302) 2021-10-24 23:46:02 +02:00
pancake
d6624b4257 Add /cg command to search for GPG artifacts ##search 2021-07-30 01:29:01 +02:00