Rizin
unix-like reverse engineering framework and cli tools
rz_str_search.h
Go to the documentation of this file.
1 #ifndef RZ_STR_SEARCH_H
2 #define RZ_STR_SEARCH_H
3 
4 #include <rz_util/rz_str.h>
5 #include <rz_util/rz_assert.h>
6 #include <rz_util/rz_buf.h>
7 #include <rz_list.h>
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
16 typedef struct {
17  char *string;
23 
27 typedef struct {
28  size_t buf_size;
29  size_t max_uni_blocks;
30  size_t min_str_length;
34 
36 
38  const ut64 from, const ut64 to, RzStrEnc type);
40  const ut64 from, const ut64 to, RzStrEnc type);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif // RZ_STR_SEARCH_H
#define RZ_API
uint32_t ut32
voidpf void * buf
Definition: ioapi.h:138
uint8_t ut8
Definition: lh5801.h:11
static void list(RzEgg *egg)
Definition: rz-gg.c:52
int type
Definition: mipsasm.c:17
RzStrEnc
Definition: rz_str.h:19
RZ_API int rz_scan_strings(RZ_NONNULL RzBuffer *buf_to_scan, RZ_NONNULL RzList *list, RZ_NONNULL const RzUtilStrScanOptions *opt, const ut64 from, const ut64 to, RzStrEnc type)
Look for strings in an RzBuffer.
Definition: str_search.c:525
RZ_API int rz_scan_strings_raw(RZ_NONNULL const ut8 *buf, RZ_NONNULL RzList *list, RZ_NONNULL const RzUtilStrScanOptions *opt, const ut64 from, const ut64 to, RzStrEnc type)
Look for strings in an RzBuffer.
Definition: str_search.c:362
RZ_API void rz_detected_string_free(RzDetectedString *str)
Definition: str_search.c:73
#define RZ_NONNULL
Definition: rz_types.h:64
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr from
Definition: sfsocketcall.h:123
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr socklen_t static fromlen const void const struct sockaddr to
Definition: sfsocketcall.h:125
RzStrEnc type
String type.
Definition: rz_str_search.h:21
ut32 length
Length of string in chars.
Definition: rz_str_search.h:20
char * string
Pointer to the string.
Definition: rz_str_search.h:17
ut64 addr
Address of the string in the RzBuffer.
Definition: rz_str_search.h:18
ut32 size
Size of buffer containing the string in bytes.
Definition: rz_str_search.h:19
size_t min_str_length
Minimum string length.
Definition: rz_str_search.h:30
size_t max_uni_blocks
Maximum number of unicode blocks.
Definition: rz_str_search.h:29
bool check_ascii_freq
If true, perform check on ASCII frequencies when looking for false positives.
Definition: rz_str_search.h:32
size_t buf_size
Maximum size of a detected string.
Definition: rz_str_search.h:28
bool prefer_big_endian
True if the preferred endianess for UTF strings is big-endian.
Definition: rz_str_search.h:31
ut64(WINAPI *w32_GetEnabledXStateFeatures)()