aboutsummaryrefslogtreecommitdiff
path: root/client/src/util/syscalls.cpp
diff options
context:
space:
mode:
authorauth12 <[email protected]>2020-08-01 11:15:55 -0700
committerauth12 <[email protected]>2020-08-01 11:15:55 -0700
commit5bbda279685f52693d4f5d9cb1500e295e06fc1e (patch)
tree87cc4aa993afe879f8b5dffbbe7013dcf8e5dc44 /client/src/util/syscalls.cpp
parentAdded server support for both x64 and x32 images with automatic selection. (diff)
downloadloader-5bbda279685f52693d4f5d9cb1500e295e06fc1e.tar.xz
loader-5bbda279685f52693d4f5d9cb1500e295e06fc1e.zip
Started security.
Diffstat (limited to 'client/src/util/syscalls.cpp')
-rw-r--r--client/src/util/syscalls.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/util/syscalls.cpp b/client/src/util/syscalls.cpp
index 96036a3..a755d22 100644
--- a/client/src/util/syscalls.cpp
+++ b/client/src/util/syscalls.cpp
@@ -9,9 +9,9 @@ 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));
+ io::log("syscalls call table : {:x}", uintptr_t(m_call_table));
- static auto nt = pe::virtual_image("ntdll.dll");
+ static auto nt = pe::ntdll();
for (auto& exp : nt.exports()) {
auto addr = exp.second;