Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_util/rz_str.h>
#include <rz_util/rz_assert.h>
#include <rz_util/rz_buf.h>
#include <rz_list.h>
Go to the source code of this file.
Classes | |
struct | RzDetectedString |
struct | RzUtilStrScanOptions |
Functions | |
RZ_API void | rz_detected_string_free (RzDetectedString *str) |
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. More... | |
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. More... | |
RZ_API void rz_detected_string_free | ( | RzDetectedString * | str | ) |
Free a RzDetectedString
Definition at line 73 of file str_search.c.
References free(), and cmd_descs_generate::str.
Referenced by rz_scan_strings_raw(), and to_bin_string().
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.
buf_to_scan | Pointer to a RzBuffer to scan |
list | Pointer to a list that will be populated with the found strings |
opt | Pointer to a RzUtilStrScanOptions that specifies search parameters |
from | Minimum address to scan |
to | Maximum address to scan |
type | Type of strings to search |
Used to look for strings in a give RzBuffer. The function can also automatically detect string types.
Definition at line 525 of file str_search.c.
References calloc(), count, free(), from, len, list(), PFMT64x, rz_buf_read_at(), RZ_LOG_ERROR, rz_return_val_if_fail, rz_scan_strings_raw(), rz_str_enc_as_string(), RZ_STRING_ENC_BASE64, RZ_STRING_ENC_MUTF8, to, type, and ut64().
Referenced by meta_string_guess_add().
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.
buf | Pointer to a raw buffer to scan |
list | Pointer to a list that will be populated with the found strings |
opt | Pointer to a RzUtilStrScanOptions that specifies search parameters |
from | Minimum address to scan |
to | Maximum address to scan |
type | Type of strings to search |
Used to look for strings in a give RzBuffer. The function can also automatically detect string types.
Definition at line 362 of file str_search.c.
References calloc(), can_be_ebcdic(), can_be_utf16_be(), can_be_utf16_le(), can_be_utf32_be(), can_be_utf32_le(), count, free(), from, i, list(), NULL, PFMT64x, process_one_string(), rz_detected_string_free(), rz_list_append(), RZ_LOG_ERROR, RZ_MIN, rz_return_val_if_fail, rz_rune_is_printable(), rz_str_ibm037_to_unicode(), RZ_STRING_ENC_8BIT, RZ_STRING_ENC_GUESS, RZ_STRING_ENC_IBM037, RZ_STRING_ENC_UTF16BE, RZ_STRING_ENC_UTF16LE, RZ_STRING_ENC_UTF32BE, RZ_STRING_ENC_UTF32LE, RZ_STRING_ENC_UTF8, rz_utf8_decode(), s, score(), RzDetectedString::size, to, type, and ut64().
Referenced by rz_scan_strings(), and string_scan_range().