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
path_util.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <windows.h>
4
#include <sstream>
5
#include <iomanip>
6
7
namespace
pesieve
{
8
namespace
util{
9
10
char
*
get_subpath_ptr
(
char
*modulePath,
char
* searchedPath);
11
12
// Add escape characters to path separators
13
std::string
escape_path_separators
(std::string path);
14
15
// Get system drive letter, i.e. "C:"
16
std::string
get_system_drive
();
17
18
bool
dir_exists
(
const
char
* path);
19
20
bool
create_dir_recursively
(
const
std::string& path);
21
22
// Find given prefix in the string, and remove it if found. Case insensitive.
23
std::string
strip_prefix
(std::string path, std::string prefix);
24
};
25
};
pesieve::util::dir_exists
bool dir_exists(const char *path)
Definition
path_util.cpp:65
pesieve::util::create_dir_recursively
bool create_dir_recursively(const std::string &path)
Definition
path_util.cpp:73
pesieve::util::get_subpath_ptr
char * get_subpath_ptr(char *modulePath, char *searchedPath)
Definition
path_util.cpp:5
pesieve::util::strip_prefix
std::string strip_prefix(std::string path, std::string prefix)
Definition
path_util.cpp:94
pesieve::util::get_system_drive
std::string get_system_drive()
Definition
path_util.cpp:46
pesieve::util::escape_path_separators
std::string escape_path_separators(std::string path)
Definition
path_util.cpp:27
pesieve
Definition
pesieve.py:1
Generated by
1.12.0