aboutsummaryrefslogtreecommitdiff
path: root/client/src/util/syscalls.cpp
diff options
context:
space:
mode:
authorauth12 <[email protected]>2020-07-28 08:09:02 -0700
committerauth12 <[email protected]>2020-07-28 08:09:02 -0700
commitd4e2fe3f1a1d6d89e9110fa1361e942f57812e51 (patch)
tree2e602ce164be6baf0281ed73086701cb8ae0ff11 /client/src/util/syscalls.cpp
parentProcess class redesign. (diff)
downloadloader-d4e2fe3f1a1d6d89e9110fa1361e942f57812e51.tar.xz
loader-d4e2fe3f1a1d6d89e9110fa1361e942f57812e51.zip
Added server support for both x64 and x32 images with automatic selection.
Diffstat (limited to 'client/src/util/syscalls.cpp')
-rw-r--r--client/src/util/syscalls.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/util/syscalls.cpp b/client/src/util/syscalls.cpp
index e877932..96036a3 100644
--- a/client/src/util/syscalls.cpp
+++ b/client/src/util/syscalls.cpp
@@ -9,6 +9,8 @@ syscalls::syscalls() {
m_call_table = VirtualAlloc(0, 0x100000, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
std::memset(m_call_table, 0x90, 0x100000);
+ io::log("syscalls call table : {:#x}", uintptr_t(m_call_table));
+
static auto nt = pe::virtual_image("ntdll.dll");
for (auto& exp : nt.exports()) {
auto addr = exp.second;