From 23cb317be5a8fb26ac2d21fda01bfa08c0ea6d64 Mon Sep 17 00:00:00 2001 From: John Doe Date: Mon, 20 Dec 2021 22:43:53 -0800 Subject: [PATCH] still configuring the project how i like it --- .gitmodules | 6 ++++++ deps/cmake.toml | 12 ++++++++++++ deps/linux-pe | 1 + deps/zydis | 1 + include/vmctx.hpp | 3 +-- include/vmlocate.hpp | 2 +- include/vmprofiler.hpp | 6 +++--- include/vmutils.hpp | 0 src/vmctx.cpp | 1 + src/vmutils.cpp | 0 10 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 deps/cmake.toml create mode 160000 deps/linux-pe create mode 160000 deps/zydis create mode 100644 include/vmutils.hpp create mode 100644 src/vmctx.cpp create mode 100644 src/vmutils.cpp diff --git a/.gitmodules b/.gitmodules index e69de29..15c31f2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "deps/linux-pe"] + path = deps/linux-pe + url = https://github.com/can1357/linux-pe.git +[submodule "deps/zydis"] + path = deps/zydis + url = https://github.com/zyantific/zydis diff --git a/deps/cmake.toml b/deps/cmake.toml new file mode 100644 index 0000000..df2cdfb --- /dev/null +++ b/deps/cmake.toml @@ -0,0 +1,12 @@ +[options] +ZYDIS_BUILD_SHARED_LIB = false +ZYDIS_BUILD_EXAMPLES = false +ZYDIS_BUILD_TOOLS = false +ZYDIS_FUZZ_AFL_FAST = false +ZYDIS_LIBFUZZER = false + +[subdir.zydis] + +[target.linux-pe] +type = "interface" +include-directories = ["linux-pe/includes/"] diff --git a/deps/linux-pe b/deps/linux-pe new file mode 160000 index 0000000..ce24224 --- /dev/null +++ b/deps/linux-pe @@ -0,0 +1 @@ +Subproject commit ce24224dc0f52b2073a28437abd8a8faddbb111a diff --git a/deps/zydis b/deps/zydis new file mode 160000 index 0000000..4756724 --- /dev/null +++ b/deps/zydis @@ -0,0 +1 @@ +Subproject commit 4756724a505d5514eed1f2351336e4d77bfb406f diff --git a/include/vmctx.hpp b/include/vmctx.hpp index 3e81070..52aa86e 100644 --- a/include/vmctx.hpp +++ b/include/vmctx.hpp @@ -1,6 +1,5 @@ #pragma once -#include -#include +#include namespace vm { struct ctx_t { diff --git a/include/vmlocate.hpp b/include/vmlocate.hpp index 983c7aa..eb6013c 100644 --- a/include/vmlocate.hpp +++ b/include/vmlocate.hpp @@ -1,6 +1,6 @@ #pragma once #include -#include +#include #define PUSH_4B_IMM "\x68\x00\x00\x00\x00" #define PUSH_4B_MASK "x????" diff --git a/include/vmprofiler.hpp b/include/vmprofiler.hpp index 5305960..224ec8a 100644 --- a/include/vmprofiler.hpp +++ b/include/vmprofiler.hpp @@ -1,4 +1,4 @@ #pragma once -#include -#include -#include \ No newline at end of file +#include +#include +#include \ No newline at end of file diff --git a/include/vmutils.hpp b/include/vmutils.hpp new file mode 100644 index 0000000..e69de29 diff --git a/src/vmctx.cpp b/src/vmctx.cpp new file mode 100644 index 0000000..0964846 --- /dev/null +++ b/src/vmctx.cpp @@ -0,0 +1 @@ +#include \ No newline at end of file diff --git a/src/vmutils.cpp b/src/vmutils.cpp new file mode 100644 index 0000000..e69de29