PE-sieve
Scans all running processes. Recognizes and dumps a variety of potentially malicious implants (replaced/implanted PEs, shellcodes, hooks, in-memory patches).
Loading...
Searching...
No Matches
strings_util.cpp
Go to the documentation of this file.
1#include "strings_util.h"
2
3#include <algorithm>
4#include <cstring>
5
6std::string pesieve::util::to_lowercase(std::string str)
7{
8 std::transform(str.begin(), str.end(), str.begin(), tolower);
9 return str;
10}
11
12bool pesieve::util::is_cstr_equal(char const *a, char const *b, const size_t max_len)
13{
14 for (size_t i = 0; i < max_len; ++i) {
15 if (tolower(a[i]) != tolower(b[i])) {
16 return false;
17 }
18 if (tolower(a[i]) == '\0') break;
19 }
20 return true;
21}
std::string to_lowercase(std::string)
bool is_cstr_equal(char const *a, char const *b, const size_t max_len)