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
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
7namespace 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};
bool dir_exists(const char *path)
Definition path_util.cpp:65
bool create_dir_recursively(const std::string &path)
Definition path_util.cpp:73
char * get_subpath_ptr(char *modulePath, char *searchedPath)
Definition path_util.cpp:5
std::string strip_prefix(std::string path, std::string prefix)
Definition path_util.cpp:94
std::string get_system_drive()
Definition path_util.cpp:46
std::string escape_path_separators(std::string path)
Definition path_util.cpp:27