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
utils
strings_util.cpp
Go to the documentation of this file.
1
#include "
strings_util.h
"
2
3
#include <algorithm>
4
#include <cstring>
5
6
std::string
pesieve::util::to_lowercase
(std::string str)
7
{
8
std::transform(str.begin(), str.end(), str.begin(), tolower);
9
return
str;
10
}
11
12
bool
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
}
pesieve::util::to_lowercase
std::string to_lowercase(std::string)
Definition
strings_util.cpp:6
pesieve::util::is_cstr_equal
bool is_cstr_equal(char const *a, char const *b, const size_t max_len)
Definition
strings_util.cpp:12
strings_util.h
Generated by
1.12.0