视角:理解 C标准库/运行时库函数用于逆向分析,在IDA中见到时要明确函数的作用机制
1. strcmp
https://learn.microsoft.com/zh-cn/cpp/c-runtime-library/reference/strcmp-wcscmp-mbscmp?view=msvc-170
功能:比较字符串(逆向中,检查字符串是否与要求的字符串相同)
int strcmp(
const char *string1,
const char *string2
);
返回值:
| 值 | string1 和 string2 的关系 |
| 0 |
|
| < 0 |
|
| > 0 |
|
用例场景:检查是否和要求的字符串相同(相同时,eax返回值=0);
2. strlen
功能:获取字符串的长度;
返回值:返回str中的字符数;
size_t strlen(
const char *str
);

3万+

被折叠的 条评论
为什么被折叠?



