From 27543e1ad39c4a06ec381df2b5bb8cb48377e33b Mon Sep 17 00:00:00 2001 From: auth12 <67507608+auth12@users.noreply.github.com> Date: Wed, 22 Jul 2020 12:40:54 -0700 Subject: Injection and server changes. --- server/src/image/pe.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/src/image') diff --git a/server/src/image/pe.h b/server/src/image/pe.h index 1ccd91f..fdd8a97 100644 --- a/server/src/image/pe.h +++ b/server/src/image/pe.h @@ -153,6 +153,9 @@ class image { auto j = nlohmann::json::parse(imports.data()); for (auto &[mod, funcs] : m_imports) { for (auto &func : funcs) { + if(j[func.name].is_null()) { + continue; + } *reinterpret_cast(image.data() + func.rva) = j[func.name]; } } -- cgit v1.2.3