RoboDBG
Loading...
Searching...
No Matches
util.h
Go to the documentation of this file.
1
5
6#ifndef UTIL_H
7#define UTIL_H
8
9#include "debugger.h"
10
15namespace RoboDBG::Util {
16
27 uintptr_t injectDLL(HANDLE hProcess, const char* dllPath);
28
39 std::string getDllName(HANDLE hProcess, LPVOID lpImageName, BOOL isUnicode);
40
49 DWORD findProcessId(const std::string& processName);
50
61 bool executeRemote(HANDLE hProcessGlobal, const std::vector<BYTE>& shellcode);
62
73 DWORD_PTR getEntryPoint(HANDLE hProcess, LPVOID baseAddress);
74
83}
84
85#endif
Main Debugger file.
Utility helper functions for more high-level stuff.
Definition util.cpp:4
DWORD_PTR getEntryPoint(HANDLE hProcess, LPVOID baseAddress)
Gets the entry point address of a loaded module in a remote process.
Definition util.cpp:190
bool EnableDebugPrivilege()
Enables the SeDebugPrivilege privilege for the current process.
Definition util.cpp:149
DWORD findProcessId(const std::string &processName)
Finds the process ID of a process by name.
Definition util.cpp:122
std::string getDllName(HANDLE hProcess, LPVOID lpImageName, BOOL isUnicode)
Retrieves the name of a DLL from a remote process.
Definition util.cpp:55
bool executeRemote(HANDLE hProcessGlobal, const std::vector< BYTE > &shellcode)
Executes shellcode in a remote process.
Definition util.cpp:93
uintptr_t injectDLL(HANDLE hProcess, const char *dllPath)
Injects a DLL into the specified process.
Definition util.cpp:5